// Spring trip 2006 website, Vladimir Dzhuvinov, 2006

function init() {

	// Image swapping script adapted from http://www.groan-zone.net/jscript/mouseover.html
		
	//detect browser:
	browserName = navigator.appName;
	browserVer = parseInt(navigator.appVersion);
	if (browserName == "Netscape" && browserVer >= 3) browserVer = "1";
	else if (browserName == "Microsoft Internet Explorer" && browserVer >= 4) browserVer = "1";
	else browserVer = "2";

	//preload images:
	if (browserVer == 1) {
		menu_01_off = new Image(70,126);
		menu_01_off.src = "img/menu-bg-01b-off.png";
		menu_01_on = new Image(70,126);
		menu_01_on.src = "img/menu-bg-01b-on.png";
			
		menu_02_off = new Image(70,88);
		menu_02_off.src = "img/menu-bg-02b-off.png";
		menu_02_on = new Image(70,88);
		menu_02_on.src = "img/menu-bg-02b-on.png";
		
		menu_03_off = new Image(70,109);
		menu_03_off.src = "img/menu-bg-03b-off.png";
		menu_03_on = new Image(70,109);
		menu_03_on.src = "img/menu-bg-03b-on.png";
		
		menu_04_off = new Image(70,102);
		menu_04_off.src = "img/menu-bg-04b-off.png";
		menu_04_on = new Image(70,102);
		menu_04_on.src = "img/menu-bg-04b-on.png";
		
		menu_05_off = new Image(70,120);
		menu_05_off.src = "img/menu-bg-05b-off.png";
		menu_05_on = new Image(70,120);
		menu_05_on.src = "img/menu-bg-05b-on.png";
		
		menu_06_off = new Image(70,142);
		menu_06_off.src = "img/menu-bg-06b-off.png";
		menu_06_on = new Image(70,142);
		menu_06_on.src = "img/menu-bg-06b-on.png";
		
		menu_07_off = new Image(70,143);
		menu_07_off.src = "img/menu-bg-07b-off.png";
		menu_07_on = new Image(70,143);
		menu_07_on.src = "img/menu-bg-07b-on.png";
		
		menu_08_off = new Image(70,117);
		menu_08_off.src = "img/menu-bg-08b-off.png";
		menu_08_on = new Image(70,117);
		menu_08_on.src = "img/menu-bg-08b-on.png";
		
		menu_09_off = new Image(70,90);
		menu_09_off.src = "img/menu-bg-09b-off.png";
		menu_09_on = new Image(70,90);
		menu_09_on.src = "img/menu-bg-09b-on.png";
		
		menu_10_off = new Image(70,85);
		menu_10_off.src = "img/menu-bg-10b-off.png";
		menu_10_on = new Image(70,85);
		menu_10_on.src = "img/menu-bg-10b-on.png";
		
		menu_11_off = new Image(70,117);
		menu_11_off.src = "img/menu-bg-11b-off.png";
		menu_11_on = new Image(70,117);
		menu_11_on.src = "img/menu-bg-11b-on.png";
		
		menu_12_off = new Image(70,164);
		menu_12_off.src = "img/menu-bg-12b-off.png";
		menu_12_on = new Image(70,164);
		menu_12_on.src = "img/menu-bg-12b-on.png";
	}
}
	
//image swapping function:
function hiLite(imgDocID, imgObjName) {

	if (browserVer == 1) {
		document.images[imgDocID].src = eval(imgObjName + ".src");
	}
}
