function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i>a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function openWinZoom1(URL) {
aWindow=window.open(URL,"pop","toolbar=no,width=495,height=294,left=10,top=10,status=no,scrollbars=no,resize=no,menubar=no");
}
function openWinReticle1(URL) {
aWindow=window.open(URL,"pop","toolbar=no,width=625,height=400,left=10,top=10,status=no,scrollbars=yes,resize=yes,menubar=no");
}
function openPopQ(URL) {
aWindow=window.open(URL,"pop","toolbar=no,width=365,height=500,left=10,top=10,status=no,scrollbars=yes,resize=no,menubar=no");
}
function openPop2(URL) {
aWindow=window.open(URL,"pop","toolbar=no,width=360,height=400,left=100,top=25,status=no,scrollbars=no,resize=no,menubar=no");
aWindow.document.open();
aWindow.document.write (" <head><title>Product Zoom - Excel Technologies, Inc.</title></head> \
<table width=100% height=100%><tr><td align=center valign=center><img src=");
aWindow.document.write (URL);
aWindow.document.write (" ></td></tr></table>");
aWindow.document.close();
}
function openPopForm1(URL) {
aWindow=window.open(URL,"pop","toolbar=no,width=600,height=180,left=174,top=527,status=no,scrollbars=no,resize=no,menubar=no");
aWindow.document.open();
aWindow.document.write (" \
<head><title>Quick Contact - Excel Technologies, Inc.</title><link rel=stylesheet href=../../style/xlcss.css type=text/css></head> \
<table align=center width=580 border=1 cellspacing=0 cellpadding=5> \
  <caption><b class=nikon>QUICK CONTACT from Excel Technologies, Inc.</b></caption> \
  <tr> \
    <td valign=middle align=center> \
		  <form class=dentist name=quickquote method=post action='http://66.40.162.254/cgi-bin/webform.cgi'> \
		  <input type=hidden name=product value='");
aWindow.document.write (URL);
aWindow.document.write ("'>\
		  <input type=hidden name=recipient value='qq@microscopedealer.com'> \
		  <input type=hidden name=redirect value='http://www.microscopedealer.com/confirm_quikquote.htm'> \
		  <input type=hidden name=subject value='Quick Contact Results From Excel Technologies'> \
		  <h4 class=nikon>Do you need information (pricing, set up a demo, etc) immediately regarding the \
		  <b class=smz>");
aWindow.document.write (URL);
aWindow.document.write ("</b>? If so enter your information below and someone will contact within 48 hours.<br></h4> \
		  <input class=quick type=text name=Name size=15 value='(Name)' tabindex=1 onFocus=if(this.value=='(Name)')this.value='';> \
		  <input class=quick type=text name=Company size=15 value='(Company)' tabindex=2 onFocus=if(this.value=='(Company)')this.value='';> \
		  <input class=quick type=text name=EMail size=10 value='(EMail)' tabindex=3 onFocus=if(this.value=='(EMail)')this.value='';> \
		  <input class=quick type=text name=Zip size=10 value='(ZipCode)' tabindex=4 onFocus=if(this.value=='(ZipCode)')this.value='';> \
		  <input class=quick type=text name=Phone size=10 value='(Phone)' tabindex=5 onFocus=if(this.value=='(Phone)')this.value='';> \
		  <input class=quick type=text name=Extension size=5 value='(Ext.)' tabindex=6 onFocus=if(this.value=='(Ext.)')this.value='';> \
		  <input class=quick type=submit name=Submit value='Send!' tabindex=7 onFocus=if(this.value=='(Company)')this.value='';></form> \
	</td> \
  </tr> \
</table>");
aWindow.document.close();
}
function openPopForm3(URL) {
aWindow=window.open(URL,"pop","toolbar=no,width=600,height=180,left=20,top=25,status=no,scrollbars=no,resize=no,menubar=no");
aWindow.document.open();
aWindow.document.write (" \
<head><title>Literature Request - Excel Technologies, Inc.</title><link rel=stylesheet href=../../style/xlcss.css type=text/css></head> \
<table align=center width=580 border=1 cellspacing=0 cellpadding=5> \
  <caption><b class=nikon>LITERATURE REQUEST from Excel Technologies, Inc.</b></caption> \
  <tr> \
    <td valign=middle align=center> \
		  <form class=dentist name=quickquote method=post action='http://66.40.162.254/cgi-bin/webform.cgi'> \
		  <input type=hidden name=product value='");
aWindow.document.write (URL);
aWindow.document.write ("'>\
		  <input type=hidden name=recipient value='qq@microscopedealer.com'> \
		  <input type=hidden name=redirect value='http://www.microscopedealer.com/confirm_lit.htm'> \
		  <input type=hidden name=subject value='Literature Request From Excel Technologies'> \
		  <h4 class=nikon>The \
		  <b class=smz>");
aWindow.document.write (URL);
aWindow.document.write ("</b> literature download is not currently available online. To receive this literature submit your information below and someone will contact you promptly, thank you.<br></h4> \
		  <input class=quick type=text name=Name size=15 value='(Name)' tabindex=1 onFocus=if(this.value=='(Name)')this.value='';> \
		  <input class=quick type=text name=Company size=15 value='(Company)' tabindex=2 onFocus=if(this.value=='(Company)')this.value='';> \
		  <input class=quick type=text name=EMail size=10 value='(EMail)' tabindex=3 onFocus=if(this.value=='(EMail)')this.value='';> \
		  <input class=quick type=text name=Zip size=10 value='(ZipCode)' tabindex=4 onFocus=if(this.value=='(ZipCode)')this.value='';> \
		  <input class=quick type=text name=Phone size=10 value='(Phone)' tabindex=5 onFocus=if(this.value=='(Phone)')this.value='';> \
		  <input class=quick type=text name=Extension size=5 value='(Ext.)' tabindex=6 onFocus=if(this.value=='(Ext.)')this.value='';> \
		  <input class=quick type=submit name=Submit value='Send!' tabindex=7 onFocus=if(this.value=='(Company)')this.value='';></form> \
	</td> \
  </tr> \
</table>");
aWindow.document.close();
}

function openPopForm2(URL) {
aWindow=window.open(URL,"pop","toolbar=no,width=600,height=180,left=20,top=25,status=no,scrollbars=no,resize=no,menubar=no");
aWindow.document.open();
aWindow.document.write (" \
<head><title>Quick Contact - Excel Technologies, Inc.</title><link rel=stylesheet href=style/xlcss.css type=text/css></head> \
<table align=center width=580 border=1 cellspacing=0 cellpadding=5> \
  <caption><b class=nikon>QUICK CONTACT from Excel Technologies, Inc.</b></caption> \
  <tr> \
    <td valign=middle align=center> \
		  <form class=dentist name=quickquote method=post action='http://66.40.162.254/cgi-bin/webform.cgi'> \
		  <input type=hidden name=product value='");
aWindow.document.write (URL);
aWindow.document.write ("'>\
		  <input type=hidden name=recipient value='qq@microscopedealer.com'> \
		  <input type=hidden name=redirect value='http://www.microscopedealer.com/confirm_quikquote.htm'> \
		  <input type=hidden name=subject value='Quick Contact Results From Excel Technologies'> \
		  <h4 class=nikon>Do you need information (pricing, set up a demo, etc) immediately regarding the \
		  <b class=smz>");
aWindow.document.write (URL);
aWindow.document.write ("</b>? If so enter your information below and someone will contact within 48 hours.<br></h4> \
		  <input class=quick type=text name=Name size=15 value='(Name)' tabindex=1 onFocus=if(this.value=='(Name)')this.value='';> \
		  <input class=quick type=text name=Company size=15 value='(Company)' tabindex=2 onFocus=if(this.value=='(Company)')this.value='';> \
		  <input class=quick type=text name=EMail size=10 value='(EMail)' tabindex=3 onFocus=if(this.value=='(EMail)')this.value='';> \
		  <input class=quick type=text name=Zip size=10 value='(ZipCode)' tabindex=4 onFocus=if(this.value=='(ZipCode)')this.value='';> \
		  <input class=quick type=text name=Phone size=10 value='(Phone)' tabindex=5 onFocus=if(this.value=='(Phone)')this.value='';> \
		  <input class=quick type=text name=Extension size=5 value='(Ext.)' tabindex=6 onFocus=if(this.value=='(Ext.)')this.value='';> \
		  <input class=quick type=submit name=Submit value='Send!' tabindex=7 onFocus=if(this.value=='(Company)')this.value='';></form> \
	</td> \
  </tr> \
</table>");
aWindow.document.close();
}
function openWinMap(URL) {
aWindow=window.open(URL,"pop","toolbar=no,width=450,height=500,status=no,scrollbars=yes,resize=no,menubar=no");
}

function hideLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "hidden";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "hidden";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "hidden";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "visible";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "visible";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "visible";
}

}

function handleClick(whichClick) {

if (whichClick == "hide it") {
// then the user wants to hide the layer
hideLayer("qquote");

}
else if (whichClick == "show it") {
// then the user wants to show the layer
showLayer("qquote");
}

}