﻿// JScript File

function RunHeader()
{
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="681" height="191" />\n');
   document.write('<param name="movie" value="flash/header_Flash7.swf?button=0" /> \n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="menu" value="false" />\n');
   document.write('</object>\n');
   
 
   if (navigator.userAgent.indexOf("Firefox")!=-1)
   {
        //so it seems safari no longer needs this below, it actually causes the header to mess up, firefox however needs this...google chrome ignores it and just uses a jpg...commented out rb 2/2/2011 
       document.write('<!--[if !IE]> <-->');
       document.write('<object data="flash/header_Flash7.swf?button=0" width="681" height="191" type="application/x-shockwave-flash" />');
       document.write('<param name="quality" value="high" />');
       document.write('<param name="menu" value="false" />');
       document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />');
       document.write('FAIL (the browser should render some flash content, not this).');
       document.write('</object>');
       document.write('<!--> <![endif]-->');
   }
}


function RunNoSoundHeader()
{
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="681" height="191" />\n');
   document.write('<param name="movie" value="flash/nosound_header_Flash7.swf?button=0" /> \n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="menu" value="false" />\n');
   document.write('</object>\n');
   
   if (navigator.userAgent.indexOf("Firefox")!=-1)
   {
        //so it seems safari no longer needs this below, it actually causes the header to mess up, firefox however needs this...google chrome ignores it and just uses a jpg...commented out rb 2/2/2011 
        document.write('<!--[if !IE]> <-->');
        document.write('<object data="flash/nosound_header_Flash7.swf?button=0" width="681" height="191" type="application/x-shockwave-flash" />');
        document.write('<param name="quality" value="high" />');
        document.write('<param name="menu" value="false" />');
        document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />');
        document.write('FAIL (the browser should render some flash content, not this).');
        document.write('</object>');
        document.write('<!--> <![endif]-->');
   }
}

function RunNav()
{
   document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="681" height="37" />\n');
   document.write('<param name="movie" value="flash/menu_Flash7.swf?button=0" /> \n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="menu" value="false" />\n');
   document.write('</object>\n');
   
   if (navigator.userAgent.indexOf("Firefox")!=-1)
   {
       //so it seems safari no longer needs this below, it actually causes the header to mess up, firefox however needs this...google chrome ignores it and just uses a jpg...commented out rb 2/2/2011 
        document.write('<!--[if !IE]> <-->');
        document.write('<object data="flash/menu_Flash7.swf?button=0" width="681" height="37" type="application/x-shockwave-flash" />');
        document.write('<param name="quality" value="high" />');
        document.write('<param name="menu" value="false" />');
        document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer" />');
        document.write('FAIL (the browser should render some flash content, not this).');
        document.write('</object>');
        document.write('<!--> <![endif]-->');
   }
}

<!--
if (document.images) {
   var aboutusoff = new Image();
   aboutusoff.src = "images/navaboutus_off.gif";
   var aboutuson = new Image();
   aboutuson.src = "images/navaboutus_on.gif";
   var homeoff = new Image();
   homeoff.src = "images/navhome_off.gif";
   var homeon = new Image();
   homeon.src = "images/navhome_on.gif";
   var careersoff = new Image();
   careersoff.src = "images/navcareers_off.gif";
   var careerson = new Image();
   careerson.src = "images/navcareers_on.gif";
   var servicesoff = new Image();
   servicesoff.src = "images/navservices_off.gif";
   var serviceson = new Image();
   serviceson.src = "images/navservices_on.gif";
   var contractsoff = new Image();
   contractsoff.src = "images/navcontracts_off.gif";
   var contractson = new Image();
   contractson.src = "images/navcontracts_on.gif";
   var contactusoff = new Image();
   contactusoff.src = "images/navcontactus_off.gif";
   var contactuson = new Image();
   contactuson.src = "images/navcontactus_on.gif";
   var newsoff = new Image();
   newsoff.src = "images/navnews_off.gif";
   var newson = new Image();
   newson.src = "images/navnews_on.gif";
}

function swapimage(img) {
	if (document.images) {
	    if(img=='aboutus'){
		    document[img].src = aboutuson.src;
		}
		if(img=='home'){
		    document[img].src = homeon.src;
		}
		if(img=='careers'){
		    document[img].src = careerson.src;
		}
		if(img=='services'){
		    document[img].src = serviceson.src;
		}
		if(img=='contracts'){
		    document[img].src = contractson.src;
		}
		if(img=='contactus'){
		    document[img].src = contactuson.src;
		}
		if(img=='contactus'){
		    document[img].src = contactuson.src;
		}
		if(img=='news'){
		    document[img].src = newson.src;
		}
		
	}
}

function restoreimage(img) {
	if (document.images) {
		if(img=='aboutus'){
		    document[img].src = aboutusoff.src;
		}
		if(img=='home'){
		    document[img].src = homeoff.src;
		}
		if(img=='careers'){
		    document[img].src = careersoff.src;
		}
		if(img=='services'){
		    document[img].src = servicesoff.src;
		}
		if(img=='contracts'){
		    document[img].src = contractsoff.src;
		}
		if(img=='contactus'){
		    document[img].src = contactusoff.src;
		}
		if(img=='contactus'){
		    document[img].src = contactusoff.src;
		}
		if(img=='news'){
		    document[img].src = newsoff.src;
		}
	}
}	
//-->


