<!--
//-- This script detects browser type and preloads all images for the mouseovers.
//list of images with corresponding pages
	// 1 - home
	// 2 - about
	// 3 - products
	// 4 - contact
	
// Use this syntax to call this function:
// <a href="" onmouseover="imgAct('img1')" onmouseout="imgInact('img1')"><img name="img1" border="0" width="" height="" src="" alt="">

// Is browser Netscape 3 + or IE 4 +.
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);

if ((bName == "Netscape" && bVer >= 3) || (bName == "Microsoft Internet Explorer" && bVer >= 4)) br = "n3"; 
else br = "n2";

if (br== "n3") { 
	// on images
	img1on = new Image();
	img2on = new Image();
	img3on = new Image();
	img4on = new Image();
	img1on.src = "_images/navigation/menu_home_on.gif";
	img2on.src = "_images/navigation/menu_about_on.gif";
	img3on.src = "_images/navigation/menu_products_on.gif";
	img4on.src = "_images/navigation/menu_contact_on.gif";
	
	// off images
	img1off = new Image();
	img2off = new Image();
	img3off = new Image();
	img4off = new Image();
	img1off.src = "_images/navigation/menu_home_off.gif";
	img2off.src = "_images/navigation/menu_about_off.gif";
	img3off.src = "_images/navigation/menu_products_off.gif";
	img4off.src = "_images/navigation/menu_contact_off.gif";
}

// Function to activate images.
function imgAct(imgName){if (br == "n3"){document[imgName].src = eval(imgName + "on.src");}}

// Function to deactivate images.
function imgInact(imgName){if (br == "n3"){document[imgName].src = eval(imgName + "off.src");}}
//-->