<!--
var SecWin;
var winFeatures="";

function launchPopup(targetDoc,width,height) {
 height+=20;
	var htmlFile = (targetDoc.indexOf(".html")>=0) ? true : false;
 winfeatures="width="+width+",height="+height+",toolbar=no,menubar=no,location=no,status=no,resizable=yes,scrollbars=no";
  if(!SecWin||SecWin.closed){ //Check for the existence of the secondary window.
		  if(htmlFile){ //Load an HTML page
	    SecWin=window.open(targetDoc,"SecWin",winfeatures);
				}else{ //Load other file formats
	    SecWin=window.open("","SecWin",winfeatures);
					writePopup(targetDoc,width,height);
				}
    if (HM_IE) { //Ensure that the window resizes correctly.
     SecWin.resizeTo(width+12,height+36); //MSIE and other browsers
 	  }
	  }else{
    if (HM_IE) { //Ensure that the window resizes correctly.
     SecWin.resizeTo(width+12,height+36); //MSIE and other browsers
   }else{
     SecWin.innerHeight=height; //Netscape
     SecWin.innerWidth=width;
   }
	  if(htmlFile){ //Load an HTML page
	   SecWin.location=targetDoc;
			}else{ //Load other file formats
				writePopup(targetDoc,width,height);
			}
  }
 setTimeout("SecWin.focus()",100); //The timeout is necessary for Internet Explorer.
}

function writePopup(targetDoc,w,h){
 var DocString="";
 h-=30;
 DocString+="<HTML>" + "\n" + "<HEAD>" + "\n";
 DocString+="<TITLE>Garden Island Images</TITLE>" + "\n";
 DocString+="</HEAD>" + "\n" + "<BODY LEFTMARGIN='0' TOPMARGIN='0' MARGINWIDTH='0' MARGINHEIGHT='0' BGCOLOR='#000000'>" + "\n";
 DocString+="<TABLE CELLPADDING='0' CELLSPACING='0' BORDER='0'><TR><TD>" + "\n";
 DocString+="<IMG SRC='" + targetDoc + "' ALT='' WIDTH='" + w + "' HEIGHT='" + h + "' BORDER='0'>";
 DocString+="</TD></TR>" + "\n";
 DocString+="<TR><TD ALIGN='center'>" + "\n";
 DocString+="<IMG SRC='./support/images/shim_trans.gif' WIDTH='1' HEIGHT='3' ALT=''></TD></TR>" + "\n";
 DocString+="<TR><TD ALIGN='center' CLASS='body1'>" + "\n";
 DocString+="<A HREF='javascript:window.close();'><IMG SRC='support/images/close.gif' ALT='Close Window' WIDTH='56' HEIGHT='20' VSPACE='4' BORDER='0'></A>" + "\n";
 DocString+="</TD></TR></TABLE>" + "\n";
 DocString+="</BODY>" + "\n" + "</HTML>";
 SecWin.document.open("text/html");
 SecWin.document.write(DocString);
 SecWin.document.close();
}

-->