<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
	
		main_nav_01_over = newImage("images/main_nav_01-over.gif");
		main_nav_02_over = newImage("images/main_nav_02-over.gif");
		main_nav_03_over = newImage("images/main_nav_03-over.gif");
		main_nav_04_over = newImage("images/main_nav_04-over.gif");
		
		main_nav_hp_01_over = newImage("images/main_nav_hp_01-over.gif");
		main_nav_hp_02_over = newImage("images/main_nav_hp_02-over.gif");
		main_nav_hp_03_over = newImage("images/main_nav_hp_03-over.gif");
		
		hp_intro_07_over = newImage("images/hp-intro_07-over.gif");
		hp_intro_09_over = newImage("images/hp-intro_09-over.gif");
		hp_intro_10_over = newImage("images/hp-intro_10-over.gif");
		hp_intro_11_over = newImage("images/hp-intro_11-over.gif");				
		
		preloadFlag = true;
	}
}



///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////


var mnuSelected = ''; 
var lastMenuClicked = '';
var mnuSection = '';

var dom=(document.getElementById)
if (dom) {var selects = (document.getElementsByTagName("select"))}

function noErrorMessages () { return true; }
window.onerror = noErrorMessages;

function changeURL(url){
location.href= url
}

function showMenu(menu){

	if (window.loaded){

		if(mnuSelected != ''){
		hideMenu(mnuSelected);
		}

		if (dom) {
		document.getElementById(menu).style.visibility = 'visible';
		}
	}
	
mnuSelected = menu;
}
	
function hideMenu(){
	if(window.loaded){
		if(dom){
			if(mnuSelected!=''){
			document.getElementById(mnuSelected).style.visibility = 'hidden';
			}
		}
	}
}

function menuchange(which,scheme){
var agt=navigator.userAgent.toLowerCase();
	
	if(agt.indexOf("msie") != -1 && agt.indexOf("opera") == -1){
		cursorApp = "hand"
	} else {
		cursorApp = "pointer"
	}

	switch (scheme){
		case ("menu") : table_color="ECEBEB"; font_color="1D2E74"; font_weight="normal"; font_style=""; cursor=cursorApp;
		break;
		case ("menu_off") : table_color= "ECEBEB"; font_color="1D2E74"; font_weight="normal"; font_style=""; cursor="normal";
		break;
	}
	
	//which.style.backgroundColor = table_color;
	which.style.fontWeight = font_weight;
	//which.style.color = font_color;
	which.style.textDecoration = font_style;
	which.style.cursor = cursorApp;
	
}



// -->
