  Menu1 = new Image(90,50) 
  Menu1.src = "images/nav_home.png" 
  Menu2 = new Image(90,50) 
  Menu2.src = "images/nav_home_X.png"
  Menu3 = new Image(97,50) 
  Menu3.src = "images/nav_about.png" 
  Menu4 = new Image(97,50) 
  Menu4.src = "images/nav_about_X.png" 
  Menu5 = new Image(97,50) 
  Menu5.src = "images/nav_location.png" 
  Menu6 = new Image(97,50) 
  Menu6.src = "images/nav_location_X.png" 
  Menu7 = new Image(97,50) 
  Menu7.src = "images/nav_advice.png" 
  Menu8 = new Image(97,50) 
  Menu8.src = "images/nav_advice_X.png" 
  Menu9 = new Image(106,50) 
  Menu9.src = "images/nav_contact.png" 
  Menu10 = new Image(106,50) 
  Menu10.src = "images/nav_contact_X.png" 
  Menu11 = new Image(224,28) 
  Menu11.src = "images/nav_bdr.jpg" 
  Menu12 = new Image(224,28) 
  Menu12.src = "images/nav_bdr_X.jpg"
  Menu13 = new Image(224,28) 
  Menu13.src = "images/nav_ml.jpg" 
  Menu14 = new Image(224,28) 
  Menu14.src = "images/nav_ml_X.jpg" 
  Menu15 = new Image(224,28) 
  Menu15.src = "images/nav_wep.jpg" 
  Menu16 = new Image(224,28) 
  Menu16.src = "images/nav_wep_X.jpg" 
  Menu17 = new Image(224,28) 
  Menu17.src = "images/nav_el.jpg" 
  Menu18 = new Image(224,28) 
  Menu18.src = "images/nav_el_X.jpg" 
  Menu19 = new Image(224,28) 
  Menu19.src = "images/nav_mc.jpg" 
  Menu20 = new Image(224,28) 
  Menu20.src = "images/nav_mc_X.jpg" 
  Menu21 = new Image(224,28) 
  Menu21.src = "images/nav_pi.jpg" 
  Menu22 = new Image(224,28) 
  Menu22.src = "images/nav_pi_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(100,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="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+'.gif 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>");
}

function showHideAnswer() {
    var numericID = this.id.replace(/[^\d]/g,'');
    var obj = document.getElementById('answr' + numericID);
    if(obj.style.display=='block') {
          obj.style.display='none';
    } else {
          obj.style.display='block';
    }               
}
        
function initShowHideContent() {
    var divs = document.getElementsByTagName('DIV');
    for(var no=0;no<divs.length;no++) {
           if(divs[no].className=='question') {
                  divs[no].onclick = showHideAnswer;
           }       
    }       
}

