if (document.images) {
	var arrRollovers = Array();
	arrRollovers[0] = new Image();
	arrRollovers[0].src = "images/nav-home.gif";
	arrRollovers[1] = new Image();
	arrRollovers[1].src = "images/nav-home-on.gif";
	arrRollovers[2] = new Image();
	arrRollovers[2].src = "images/nav-company.gif";
	arrRollovers[3] = new Image();
	arrRollovers[3].src = "images/nav-company-on.gif";
	arrRollovers[4] = new Image();
	arrRollovers[4].src = "images/nav-products-services.gif";
	arrRollovers[5] = new Image();
	arrRollovers[5].src = "images/nav-products-services-on.gif";
	arrRollovers[6] = new Image();
	arrRollovers[6].src = "images/nav-brochure.gif";
	arrRollovers[7] = new Image();
	arrRollovers[7].src = "images/nav-brochure-on.gif";
	arrRollovers[8] = new Image();
	arrRollovers[8].src = "images/nav-contact.gif";
	arrRollovers[9] = new Image();
	arrRollovers[9].src = "images/nav-contact-on.gif";
	arrRollovers[10] = new Image();
	arrRollovers[10].src = "images/nav-our-mission.gif";
	arrRollovers[11] = new Image();
	arrRollovers[11].src = "images/nav-our-mission-on.gif";
	arrRollovers[12] = new Image();
	arrRollovers[12].src = "images/nav-manuf-facility.gif";
	arrRollovers[13] = new Image();
	arrRollovers[13].src = "images/nav-manuf-facility-on.gif";
	arrRollovers[14] = new Image();
	arrRollovers[14].src = "images/nav-our-team.gif";
	arrRollovers[15] = new Image();
	arrRollovers[15].src = "images/nav-our-team-on.gif";
	arrRollovers[16] = new Image();
	arrRollovers[16].src = "images/nav-design-services.gif";
	arrRollovers[17] = new Image();
	arrRollovers[17].src = "images/nav-design-services-on.gif";
	arrRollovers[18] = new Image();
	arrRollovers[18].src = "images/nav-cab-wood.gif";
	arrRollovers[19] = new Image();
	arrRollovers[19].src = "images/nav-cab-wood-on.gif"
	arrRollovers[20] = new Image();
	arrRollovers[20].src = "images/nav-commercial.gif";
	arrRollovers[21] = new Image();
	arrRollovers[21].src = "images/nav-commercial-on.gif"
	arrRollovers[22] = new Image();
	arrRollovers[22].src = "images/nav-furniture.gif";
	arrRollovers[23] = new Image();
	arrRollovers[23].src = "images/nav-furniture-on.gif";
}
	
function ChangeImage(strImageName, objImageSrc) {
	if (document.images) {
		document.images[strImageName].src = objImageSrc;
	}
}

function UFcheckBrowser(){
	this.ver = navigator.appVersion;
	this.agent = navigator.userAgent.toLowerCase();
	this.dom = document.getElementById ? 1 : 0;
	this.all = document.all ? 1 : 0;
	this.layers = document.layers ? 1 : 0;
	this.images = document.images ? 1 : 0;
	this.IE = (navigator.appName=="Microsoft Internet Explorer") ? 1 : 0;
	this.NS = (navigator.appName=="Netscape") ? 1 : 0;
	this.MAC = (this.agent.indexOf("mac")!=-1);
	return this;
}

oUFBrowser = UFcheckBrowser();

function HideLayer(sLayerName) {
	if (oUFBrowser.dom) {
		document.getElementById(sLayerName).style.visibility = "hidden";
		document.getElementById(sLayerName).style.zIndex = 0;
	} else if (oUFBrowser.layers) {
		if (document.layers[sLayerName]) {
		        document.layers[sLayerName].visibility = 'hide';
				document.layers[sLayerName].zIndex = 0;
		}
	} else if (oUFBrowser.all)  {
	        document.all[sLayerName].style.visibility = 'hidden';
        	document.all[sLayerName].style.zIndex = 0;
	}
	return;
}

function ShowLayer(sLayerName) {

	if (oUFBrowser.dom) {
		document.getElementById(sLayerName).style.visibility = "visible";
		document.getElementById(sLayerName).style.zIndex = 100;
	} else if (oUFBrowser.layers) {
		if (document.layers[sLayerName]) {
		        document.layers[sLayerName].visibility = 'visible';
				document.layers[sLayerName].zIndex = 100;
		}
	}  else if (oUFBrowser.all) { // Internet Explorer
	        document.all[sLayerName].style.visibility = 'visible';
	        document.all[sLayerName].style.zIndex = 100;
	}
	return;
}

function HideNav() {
HideLayer('ProductsServices');
HideLayer('Company');
}

/*
function initPrimaryNav(sSection, sSubSection) { 
   if (sSection == 'ProductsServices') {
   ShowLayer('ProductsServicesSecondary'); 
   ShowLayer('ProductsServices_on');
   } else if (sSection == 'Company') {
   ShowLayer('Company'); 
   ShowLayer('Company_on');
   }
}
*/

//----------------------------------------
/* SECTION VARIABLES FOR NAVIGATION: (strSection, strSub)
home
company
	our-mission
	manuf-facility
	our-team
products-services
	design-services
	cab-wood
	commercial
	furniture
brochure
contact
*/

//-----------------------------------
//PRODUCTS AND SERVICES/COMPANY NAVIGATION AND SUBNAV:
//-----------------------------------
function printPSCCNav() {
	//Company Div
	if (strSection=="company") {
		document.write('<div name="Company" id="Company" style="position:absolute; visibility:visible; left:267px; top:81px; width:456px; height:20px; z-index:2;">');
	}
	else {
		document.write('<div name="Company" id="Company" style="position:absolute; visibility:hidden; left:267px; top:81px; width:456px; height:20px; z-index:2;" onmouseover="ShowLayer(\'Company\'); ShowLayer(\'CompanyOn\');" onmouseout="HideLayer(\'Company\'); HideLayer(\'CompanyOn\');">');
	}
	document.write('<table width="253" height="20" cellspacing="0" cellpadding="0" border="0">');
	document.write('<tr><td><nobr><img src="images/nav-left.gif" width="57" height="20" alt="" border="0">');
	if (strSub=="our-mission") {
		document.write('<img src="images/nav-our-mission-on.gif" width="72" height="20" alt="our mission" border="0" name="our-mission">');
	}
	else {
		document.write('<a href="our-mission.html" onMouseOver="ChangeImage(\'our-mission\', arrRollovers[11].src);" onMouseOut="ChangeImage(\'our-mission\', arrRollovers[10].src);"><img src="images/nav-our-mission.gif" width="72" height="20" alt="our mission" border="0" name="our-mission"></a>');
	}
	if (strSub=="manuf-facility") {
		document.write('<img src="images/nav-manuf-facility-on.gif" width="121" height="20" alt="manufacturing facility" border="0" name="manuf-facility">');
	}
	else {
		document.write('<a href="manuf-facility.html" onMouseOver="ChangeImage(\'manuf-facility\', arrRollovers[13].src);" onMouseOut="ChangeImage(\'manuf-facility\', arrRollovers[12].src);"><img src="images/nav-manuf-facility.gif" width="121" height="20" alt="manufacturing facility" border="0" name="manuf-facility"></a>');
	}
	if (strSub=="our-team") {
		document.write('<img src="images/nav-our-team-on.gif" width="60" height="20" alt="our team" border="0" name="our-team">');
	}
	else {
		document.write('<a href="our-team.html" onMouseOver="ChangeImage(\'our-team\', arrRollovers[15].src);" onMouseOut="ChangeImage(\'our-team\', arrRollovers[14].src);"><img src="images/nav-our-team.gif" width="60" height="20" alt="our team" border="0" name="our-team"></a>');
	}
	document.write('<img src="images/nav-right.gif" width="146" height="20" alt="" border="0"></nobr></td></tr></table></div>');
	
	//Products and Services Div
	if (strSection=="products-services") {
		document.write('<div name="ProductsServices" id="ProductsServices" style="position:absolute; visibility:visible; left:267px; top:81px; width:456px; height:20px; z-index:2;">');
	}
	else {
		document.write('<div name="ProductsServices" id="ProductsServices" style="position:absolute; visibility:hidden; left:267px; top:81px; width:456px; height:20px; z-index:2;" onmouseover="ShowLayer(\'ProductsServices\'); ShowLayer(\'ProductsServicesOn\');" onmouseout="HideLayer(\'ProductsServices\'); HideLayer(\'ProductsServicesOn\');">');
	}
	document.write('<table width="399" height="20" cellspacing="0" cellpadding="0" border="0">');
	document.write('<tr><td><nobr><img src="images/nav-left.gif" width="57" height="20" alt="" border="0">');
	if (strSub=="design-services") {
		document.write('<img src="images/nav-design-services-on.gif" width="91" height="20" alt="design services" border="0">');
	}
	else {
		document.write('<a href="design-services.html" onMouseOver="ChangeImage(\'design-services\', arrRollovers[17].src);" onMouseOut="ChangeImage(\'design-services\', arrRollovers[16].src);"><img src="images/nav-design-services.gif" width="91" height="20" alt="design services" border="0" name="design-services"></a>');
	}
	if (strSub=="cab-wood") {
		document.write('<img src="images/nav-cab-wood-on.gif" width="117" height="20" alt="cabinetry and woodwork" border="0" name="cab-wood">');
	}
	else {
		document.write('<a href="cab-wood.html" onMouseOver="ChangeImage(\'cab-wood\', arrRollovers[19].src);" onMouseOut="ChangeImage(\'cab-wood\', arrRollovers[18].src);"><img src="images/nav-cab-wood.gif" width="117" height="20" alt="cabinetry and woodwork" border="0" name="cab-wood"></a>');
	}
	if (strSub=="commercial") {
		document.write('<img src="images/nav-commercial-on.gif" width="133" height="20" alt="commercial installations" border="0" name="commercial">');
	}
	else {
		document.write('<a href="commercial.html" onMouseOver="ChangeImage(\'commercial\', arrRollovers[21].src);" onMouseOut="ChangeImage(\'commercial\', arrRollovers[20].src);"><img src="images/nav-commercial.gif" width="133" height="20" alt="commercial installations" border="0" name="commercial"></a>');
	}
	if (strSub=="furniture") {
		document.write('<img src="images/nav-furniture-on.gif" width="58" height="20" alt="furniture" border="0" name="furniture">');
	}
	else {
		document.write('<a href="furniture.html" onMouseOver="ChangeImage(\'furniture\', arrRollovers[23].src);" onMouseOut="ChangeImage(\'furniture\', arrRollovers[22].src);"><img src="images/nav-furniture.gif" width="58" height="20" alt="furniture" border="0" name="furniture"></a>');
	}
	document.write('</nobr></td></tr></table></div>');
	
	//Products & Services Rollover On Div
	document.write('<div name="ProductsServicesOn" id="ProductsServicesOn" style="position:absolute; visibility:hidden; left:448px; top:59px; width:144px; height:22px; z-index:100;" onmouseover="ShowLayer(\'ProductsServicesOn\'); ShowLayer(\'ProductsServices\');" onmouseout="HideLayer(\'ProductsServicesOn\'); HideLayer(\'ProductsServices\');"><img src="images/nav-products-services-on.gif" width="144" height="22" alt="Products & Services" border="0"></div>');

	//Company Rollover On Div
	document.write('<div name="CompanyOn" id="CompanyOn" style="position:absolute; visibility:hidden; left:352px; top:59px; width:96px; height:22px; z-index:100;" onmouseover="ShowLayer(\'CompanyOn\'); ShowLayer(\'Company\');" onmouseout="HideLayer(\'CompanyOn\'); HideLayer(\'Company\');"><img src="images/nav-company-on.gif" width="96" height="22" alt="Company" border="0"></div>');

	//main nav images
	document.write('<a href="index.html" onMouseOver="ChangeImage(\'home\', arrRollovers[1].src);" onMouseOut="ChangeImage(\'home\', arrRollovers[0].src);"><img src="images/nav-home.gif" width="86" height="22" alt="Home" border="0" name="home"></a>');
	if (strSection=="products-services") {
		document.write('<img src="images/nav-company.gif" width="96" height="22" alt="Company" border="0" onmouseover="ShowLayer(\'Company\'); ShowLayer(\'CompanyOn\');">');
		document.write('<img src="images/nav-products-services-on.gif" width="144" height="22" alt="Products and Services" border="0">');
	}
	else if (strSection=="company") {
		document.write('<img src="images/nav-company-on.gif" width="96" height="22" alt="Company" border="0">');
		document.write('<img src="images/nav-products-services.gif" width="144" height="22" alt="Products and Services" border="0" onmouseover="ShowLayer(\'ProductsServices\'); ShowLayer(\'ProductsServicesOn\');">');
	}
	else {
		document.write('<img src="images/nav-company.gif" width="96" height="22" alt="Company" border="0" onmouseover="HideLayer(\'ProductsServices\'); ShowLayer(\'Company\'); ShowLayer(\'CompanyOn\');">');
		document.write('<img src="images/nav-products-services.gif" width="144" height="22" alt="Products and Services" border="0" onmouseover="HideLayer(\'Company\'); ShowLayer(\'ProductsServices\'); ShowLayer(\'ProductsServicesOn\');">');
	}
	if (strSection=="brochure") {
		document.write('<img src="images/nav-brochure-on.gif" width="89" height="22" alt="Brochure" border="0">');
	}
	else {
		document.write('<a href="brochure.html" onMouseOver="ChangeImage(\'brochure\', arrRollovers[7].src);" onMouseOut="ChangeImage(\'brochure\', arrRollovers[6].src);"><img src="images/nav-brochure.gif" width="89" height="22" alt="Brochure" border="0" name="brochure"></a>');
	}
	if (strSection=="contact") {
		document.write('<img src="images/nav-contact-on.gif" width="79" height="22" alt="Contact" border="0">');
	}	
	else {
		document.write('<a href="contact.html" onMouseOver="ChangeImage(\'contact\', arrRollovers[9].src);" onMouseOut="ChangeImage(\'contact\', arrRollovers[8].src);"><img src="images/nav-contact.gif" width="79" height="22" alt="Contact" border="0" name="contact"></a>');
	}
	
}
//END--------------------------------


//-----------------------------------
//FOOTER NAVIGATION:
//-----------------------------------
function printFooter() {
	document.write('<span class="footer">&copy; 2005, Wilkerson Company, Inc.</span>');
}
//END--------------------------------

