//External js file for VW index
//Detect if browser is 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";

 //over buttons
 //the first line sets condition for browser version, and if true
 //the img section creates the image object and the source

 if (br == "n3") {

	img1on = new Image();
	img1on.src = "imgs/buttonover.jpg"

	img2on = new Image();
	img2on.src = "imgs/buttonover2.jpg"

	img3on = new Image();
	img3on.src = "imgs/buttonover3.jpg"

	img4on = new Image();
	img4on.src = "imgs/buttonover4.jpg"

	img5on = new Image();
	img5on.src = "imgs/buttonover5.jpg"


//normal buttons

	img1off = new Image();
	img1off.src = "imgs/button.jpg"

	img2off = new Image();
	img2off.src = "imgs/button2.jpg"

	img3off = new Image();
	img3off.src = "imgs/button3.jpg"

	img4off = new Image();
	img4off.src = "imgs/button4.jpg"

	img5off = new Image();
	img5off.src = "imgs/button5.jpg"
 }

 //function to active images

 function imgAct(imgName) {
	if(br == "n3") {
	document[imgName].src = eval(imgName + "on.src");
 }
 }

 //function to inactive images

 function imgInact(imgName) {
	if(br == "n3") {
	document[imgName].src = eval(imgName + "off.src");
 }
 }


