if (document.images) {

		header_homeon = new Image();
    header_homeon.src = "images/header_home_on.gif";
    header_homeoff = new Image();
    header_homeoff.src = "images/header_home_off.gif";
		
		header_showroomon = new Image();
    header_showroomon.src = "images/header_showroom_on.gif";
    header_showroomoff = new Image();
    header_showroomoff.src = "images/header_showroom_off.gif";
		
    header_specson = new Image();
    header_specson.src = "images/header_specs_on.gif";
    header_specsoff = new Image();
    header_specsoff.src = "images/header_specs_off.gif";
		
		header_quoteon = new Image();
    header_quoteon.src = "images/header_quote_on.gif";
    header_quoteoff = new Image();
    header_quoteoff.src = "images/header_quote_off.gif";
		
		header_contacton = new Image();
    header_contacton.src = "images/header_contact_on.gif";
    header_contactoff = new Image();
    header_contactoff.src = "images/header_contact_off.gif";
		  
}

// Function to 'activate' images.
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
           
           
        }
}



// Function to 'deactivate' images.
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
            
          
        }
}




//new window for gallery pics
function newWindow(imageSource,windowName,winWidth,winHeight) {

// Open window without scrollbars
  windowName = window.open('', '', 'toolbar=no,location=no,directories=no,menubar=no,scrollbars=no,width='+winWidth+',height='+winHeight)
  windowName.document.open();
  windowName.document.writeln("<html><head>") 
  windowName.document.writeln("<title>Clearly Frameless</title>");
  windowName.document.writeln("</head>");
  windowName.document.writeln("<body topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'>");
  windowName.document.writeln("<center><table border=0 cellpadding=0 cellspacing=0 width=100%><tr><td align=center>");
  windowName.document.writeln("<img src='images/" + imageSource + "' border=0>");
  windowName.document.writeln("</td></tr></table></center>");
  windowName.document.writeln("</body></html>");
  windowName.document.close();
  windowName.focus();
}

