activateMenu = function(nav) {
	if (document.all && document.getElementById(nav).currentStyle) {  
		var navroot = document.getElementById(nav);
		var lis=navroot.getElementsByTagName("LI");  
		for (i=0; i<lis.length; i++) {
			if(lis[i].lastChild.tagName=="UL"){
				lis[i].onmouseover=function() {		
				   this.lastChild.style.display="block";
				}
				lis[i].onmouseout=function() {                       
					this.lastChild.style.display="none";
				}
			}
		}
	}
}

window.onload= function(){
   activateMenu('nav');  
}
if (document.images){
	index=new Image
	index_x=new Image
	
	index.src="images/home.jpg"
	index_x.src="images/home_H.jpg"

}

if (document.images){
	contactus=new Image
	contactus_x=new Image
	
	contactus.src="images/contactus.jpg"
	contactus_x.src="images/contactus_H.jpg"

}

if (document.images){
	send=new Image
	send_x=new Image
	
	send.src="images/send.jpg"
	send_x.src="images/send_H.jpg"

}

if (document.images){
	aboutus=new Image
	aboutus_x=new Image
	
	aboutus.src="images/aboutus.jpg"
	aboutus_x.src="images/aboutus_H.jpg"

}

if (document.images){
	why=new Image
	why_x=new Image
	
	why.src="images/why.jpg"
	why_x.src="images/why_H.jpg"

}

if (document.images){
	industriesserved=new Image
	industriesserved_x=new Image
	
	industriesserved.src="images/industry.jpg"
	industriesserved_x.src="images/industry_H.jpg"

}

if (document.images){
	quality=new Image
	quality_x=new Image
	
	quality.src="images/quality.jpg"
	quality_x.src="images/quality_H.jpg"

}

function chgImg(imgField,newImg) {
	if (document.images){
		document.getElementById(imgField).src = eval(newImg + ".src")
	}
}
