		var link1 = new Image();
		var link2 = new Image();
		var link3 = new Image();
		var link4 = new Image();
		var link5 = new Image();
		var link6 = new Image();
		var link7 = new Image();
		var link8 = new Image();
		var link13 = new Image();
		var link14 = new Image();
		
		var link15 = new Image();
		var link16 = new Image();
		var link17 = new Image();
		var link18 = new Image();
		var link19 = new Image();
		var link20 = new Image();
		var link21 = new Image();
		var link22 = new Image();


		
		link1.src = "/images/home.gif";
		link2.src = "/images/profile.gif";
		link3.src = "/images/product.gif";
		link4.src = "/images/contact.gif";
		link5.src = "/images/home_over.gif";
		link6.src = "/images/profile_over.gif";
		link7.src = "/images/product_over.gif";
		link8.src = "/images/contact_over.gif";
		link13.src = "/images/black_arrow.gif";
		link14.src = "/images/spacer.gif";
		
		link15.src = "/images/profile_home.gif";
		link16.src = "/images/profile_home_over.gif";
		link17.src = "/images/profile_profile.gif";
		link18.src = "/images/profile_profile_over.gif";
		link19.src = "/images/profile_product.gif";
		link20.src = "/images/profile_product_over.gif";
		link21.src = "/images/profile_contact.gif";
		link22.src = "/images/profile_contact_over.gif";

var MENU_FOCUSED = false;
var MENU_NAME = '';

IE4 = (document.all) ? 1 : 0;       // browser is Internet Explorer 4
NS4 = (document.layers) ? 1 : 0;    // browser is Netscape 4

ver4 = (IE4 || NS4) ? 1 : 0;  // know that we have version 4 browser
                              // this will be required for non-dhtml browsers

function hoverMenu(whichElement,status) {
//arrayOfLayers = ['services1','services2'];
arrayOfLayers = ['services2'];
maxNbrOfLayers = 1;
	if (status == true) {
		setMenuFocused()
	    vis = 'visible';
	}
	else if (status == false) {
	   vis = 'hidden';
	}


	  // checking which browser
	  if (IE4) {
    	 for (i=0;i<maxNbrOfLayers;i++) {
        	 layerName = arrayOfLayers[i];
	         if (layerName == whichElement) {
    	        // get its index first
        	    layerIndex = i;
            	theElement = eval('document.all.'+arrayOfLayers[i]+'.style');
	            theElement.visibility=vis;
    	     } // check if layer exists
        	 else {
	            theElement = eval('document.all.'+arrayOfLayers[i]+'.style');
    	        theElement.visibility='hidden'; 
        	 } // set other layers to hidden

	     } // end if for loop
 	  } // end of IE4

	  else if (NS4) { // netscape or similar browser
	     for (i=0;i<maxNbrOfLayers;i++) {
    	     layerName = arrayOfLayers[i];
	         if (layerName == whichElement) {
    	        // get its index first
	            layerIndex = i;
    	        theElement = eval("document." + arrayOfLayers[i]);
	            theElement.visibility=vis; 
    	     } // check if layer exists
	         else {
	            theElement = eval("document." + arrayOfLayers[i]);         
    	        theElement.visibility='hidden'; 
        	 } // set other layers to hidden
        
        	 
	     } // end if for loop
	  } // end of NS
	  else { // for Opera browser
	     for (i=0;i<maxNbrOfLayers;i++) {
    	     layerName = arrayOfLayers[i];
        	 if (layerName == whichElement) {
	            // get its index first
    	        layerIndex = i;
        	    theElement = eval(document.getElementById(arrayOfLayers[i])).style;  
	            theElement.visibility=vis; 
    	     } // check if layer exists
	         else {
    	        theElement = eval(document.getElementById(arrayOfLayers[i])).style;  
        	    theElement.visibility='hidden'; 
	         } // set other layers to hidden

	     } // end if for loop
	  } // end of Opera
	         
} // end hoverOver function

function startHideMenu(whichElement) {
	MENU_FOCUSED = false;
	MENU_NAME = whichElement;
	setTimeout("hideMenu()",500);
	return;
} // end startHideMenu()

function hideMenu() {
	if (!MENU_FOCUSED) hoverMenu(MENU_NAME,false);
	return;
} // end hideMenu()

function setMenuFocused() {
	MENU_FOCUSED = true;
} // end setMenuFocused


//check contact form 
function ValidateContactForm(){
	
	var name = document.contact.name.value;	
	var email = document.contact.email.value;	
	var comments = document.contact.comments.value;
	
	
	
	if (name == ''){
		alert('Please enter your name');
		document.contact.name.focus();
		return false;
	}
	
	if (email == ''){
		alert('Please enter your email');
		document.contact.email.focus();
		return false;
	}	
	if (comments == ''){
		alert('Please enter your comments/orders');
		document.contact.comments.focus();
		return false;
	}
}
function resetContactForm(){
	
	document.contact.name.value = '';	
	document.contact.email.value = '';	
	document.contact.comments.value = '';
}
