var menuNames = new Array('services','about');
var IE = document.all;
compatable = (IE || parseInt(navigator.appVersion) > 4);

function nothing () {
	return;	
}

function setProperty (objID, sProp) {
	if (!compatable) { return null; }
	if (IE) eval('document.all("' + objID + '").'+sProp+';');
	else eval('document.getElementById("'+objID+'").'+sProp+';');
}

function getProperty(objID,sProp) {
	if (!compatable) { return null; }
	return eval('document.getElementById("'+objID+'").'+sProp+';');
}

function hideMenus() {
	if (!compatable) { return null; }
	var i = 0;
	while (i < menuNames.length) {
		setProperty('menu_' + menuNames[i],"style.visibility='hidden'");
		i++;	
	}
}

function showMenu (mnu) {
	if (!compatable) { return null; }
	setProperty('menu_' + mnu,"style.visibility='visible'");
}	

function launchWin(url) {
	var w = 450;
	var h = 400;
	var x = (screen.width / 2) - (w / 2);
	var y = (screen.height / 2) - (h / 2) - 40;
	window.open(url,'popwin','width='+w+',height='+h+',left='+x+',top='+y+',scrollbars');
}
