//** Begin Veiwimg image magnifier popup scripting
//** This script is from Featured Content Slider script- (c) Dynamic Drive DHTML code library: http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm
//** It is split out here for use on pages without slide shows, but needs to be loaded for Content Slider to work

function viewimg(n, img, w, h){
  foto1= new Image();
  foto1.src=(img);
  viewFotos(n, img, w, h);
}

function viewFotos(name, img, w, h){

var blurDiv = document.createElement("div");
blurDiv.id = "blurDiv";
//blurDiv.style.cssText = "position:absolute; top:0; right:0; width:" + screen.width + "px; height:" + screen.height + "px; background-color: #000000; opacity:0.5; filter:alpha(opacity=50)";
blurDiv.style.cssText = "position:absolute; top:0; right:0; width:100%; height:200%; background-color: #000000; opacity:0.5; -moz-opacity: 0.5; filter:alpha(opacity=50); z-index:9000;";
document.getElementsByTagName("body")[0].appendChild(blurDiv);

 features = 
    "toolbar=no,location=no,directories=no,status=no,menubar=no," +
    "scrollbars=yes,resizable=yes,width=" + w + ",height=" + h;
 dlg = window.open ("","Details",features);
 dlg.document.write("<html><head><title>" + name + " Zoom</title>");
 dlg.document.write("<script type='text/javascript'> function ungrayout() {");
 dlg.document.write("var blurDiv = window.opener.document.getElementById('blurDiv');");
 dlg.document.write("blurDiv.parentNode.removeChild(blurDiv);}</script>");
 dlg.document.write("</head>");
 dlg.document.write("<body bgcolor=white onBeforeUnload='ungrayout()'><center>"); 
 dlg.document.write("<a href=# onClick=window.close();>");
 dlg.document.write("<table width=100% height=100%>");
 dlg.document.write("<tr><td align=center valign=middle>");
 
 dlg.document.write("<img src=" + img + ">");
 dlg.document.write("</td></tr>");
 dlg.document.write("<tr><td align=center valign=middle>");
 dlg.document.write("<a href=# onClick=window.close(); style='text-decoration:none;font:bold 12px/20px arial'>");
 dlg.document.write("<img src='/lib/greatgolf/icon-20-win-close.gif' width='20' height='20' alt='close'  style='border:none;vertical-align:middle;' /> Close Window</a>");
 dlg.document.write("</td></tr>");
 dlg.document.write("</table></body></html>");
}

//** End Veiwimg image magnifier popup scripting
