  Menu1 = new Image(63,30) 
  Menu1.src = "images/nav_home.gif" 
  Menu2 = new Image(63,30) 
  Menu2.src = "images/nav_home_X.gif"
  Menu3 = new Image(74,47) 
  Menu3.src = "images/nav_items.gif" 
  Menu4 = new Image(74,47) 
  Menu4.src = "images/nav_items_X.gif" 
  Menu5 = new Image(63,47) 
  Menu5.src = "images/nav_kleen_logo.gif" 
  Menu6 = new Image(63,47) 
  Menu6.src = "images/nav_kleen_logo_X.gif" 

function switchimage(imgDocID,imgObjName) { 
   document[imgDocID].src = eval(imgObjName + ".src"); 
}

function GetFormattedDate() {
  var mydate=new Date();
  var year=mydate.getYear();
  if (year < 1000)
  year+=1900;
  var day=mydate.getDay();
  var month=mydate.getMonth();
  var daym=mydate.getDate();
  if (daym<10)
  daym="0"+daym;
  var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
  var montharray=new  Array("January","February","March","April","May","June","July","August","September","October","November","December");
  document.write(montharray[month]+" "+daym+", "+year);
}

function popImage(imageName){
// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)
defaultWidth  = 430;
defaultHeight = 430;

// Set the horizontal and vertical position for the popup
var scrn;
if (navigator.appName == "Netscape")
   scrn = screen;
else
   scrn = window.screen;
var winleft = (scrn.width - defaultWidth) / 2;
var winUp = (scrn.height - defaultHeight) / 2;


// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows
var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+winleft+',top='+winUp;
var optIE='scrollbars=no,width=150,height=100,left='+winleft+',top='+winUp;


 if (isNN){
    imgWin=window.open('about:blank','',optNN);}
 if (isIE){
    imgWin=window.open('about:blank','',optIE);}

 with (imgWin.document){
    writeln('<html><head><title>Loading....</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
    writeln('var isNN,isIE;');
    writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
    writeln('isNN=(navigator.appName=="Netscape")?1:0;');
    writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
    writeln('function reSizeToImage(){');
    writeln('if (isIE){');writeln('window.resizeTo(220,100);');
      writeln('width=100-(document.body.clientWidth-document.images[0].width);');
      writeln('height=100-(document.body.clientHeight-document.images[0].height)+20;');
      writeln('window.resizeTo(width,height);}');
    writeln('if (isNN){');       
      writeln('window.innerWidth=document.images["eSet"].width;');
      writeln('window.innerHeight=document.images["eSet"].height+20;}}');
    writeln('function doTitle(){document.title="ZoomIn Window";}');writeln('</sc'+'ript>');
    writeln('<META HTTP-EQUIV="imagetoolbar" CONTENT="no"><link rel="stylesheet" type="text/css" href="styles.css">');
    if (!AutoClose) writeln('</head><body bgcolor="#AB9F85" scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
    else writeln('</head><body bgcolor="#AB9F85" scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
    writeln('<img name="eSet" src=gallery/'+imageName+'.jpg style="display:block"><DIV CLASS="smallbrown" ALIGN="RIGHT" VALIGN="CENTER"><A HREF="javascript:window.close();" CLASS="zoominlink">[x] close window</A>&nbsp;&nbsp;</DIV></body></html>');
    close();            
  }
}

function GenerateMailToLink(name, domain, suffix, style, linkText) {
   var emailAddress = name + "\u0040" + domain + "." + suffix;
   var url = "mailto:" + emailAddress;
   var styleText = "CLASS=\"smalltan\" onmouseover=\"this.style.textDecoration='underline'\" onmouseout=\"this.style.textDecoration='none'\"";

   if(! linkText){
      linkText = emailAddress;
   }

   if(! style){
      style = styleText;
   }

   document.write("<a href=\"" + url + "\"" + style + ">" + linkText + "</a>");
}
