  Menu1 = new Image(73,27) 
  Menu1.src = "images/nav_home.jpg" 
  Menu2 = new Image(73,27) 
  Menu2.src = "images/nav_home_X.jpg"
  Menu3 = new Image(133,27) 
  Menu3.src = "images/nav_pricing.jpg" 
  Menu4 = new Image(133,27) 
  Menu4.src = "images/nav_pricing_X.jpg" 
  Menu5 = new Image(115,27) 
  Menu5.src = "images/nav_directions.jpg" 
  Menu6 = new Image(115,27) 
  Menu6.src = "images/nav_directions_X.jpg" 
  Menu7 = new Image(134,27) 
  Menu7.src = "images/nav_contact.jpg" 
  Menu8 = new Image(134,27) 
  Menu8.src = "images/nav_contact_X.jpg" 

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 = 327;

// 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=220-(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="Headturner Salon Coupon";}');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="#FFFFFF" scroll="no" onload="reSizeToImage();doTitle();self.focus()">');
    writeln('<img name="eSet" src=images/'+imageName+'.jpg style="display:block"><TABLE WIDTH="100%"><TR>');
    writeln('<TD CLASS="smalldarkgrey" ALIGN="LEFT" VALIGN="CENTER">&nbsp;&nbsp;<IMG SRC="images/printericon.gif" WIDTH="10" HEIGHT="10"> <a href="javascript:if (window.print) window.print();" CLASS="zoominlink">click to print</a></TD>');
    writeln('<TD CLASS="smalldarkgrey" ALIGN="RIGHT" VALIGN="CENTER"><A HREF="javascript:window.close();" CLASS="zoominlink">[x] close window</A>&nbsp;&nbsp;</TD></TR></TABLE></body></html>');
    close();            
  }
}

function GenerateMailToLink(name, domain, suffix, style, linkText) {
   var emailAddress = name + "\u0040" + domain + "." + suffix;
   var url = "mailto:" + emailAddress;
   var styleText = "CLASS=\"smallblack\" 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>");
}

