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="http://www.griffinsecurities.com/" + 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_header") : table_color="ffffff"; font_color="000000"; font_weight="normal"; font_style=""; cursor=cursorApp;
		break;
		case ("menu_header_off") : table_color= "ffffff"; font_color="000000"; font_weight="normal"; font_style=""; cursor="normal";
		break;	
		case ("menu") : table_color="cccccc"; font_color="000000"; font_weight="normal"; font_style=""; cursor=cursorApp;
		break;
		case ("menu_off") : table_color= "ffffff"; font_color="000000"; font_weight="normal"; font_style=""; cursor="normal";
		break;
		default : color=which.style.color; font_color=which.style.backgroundColor; cursor="normal" ;
	}
	
	which.style.backgroundColor = table_color
	which.style.fontWeight = font_weight
	which.style.color = font_color
	which.style.textDecoration = font_style
	which.style.cursor = cursorApp
	
}

