//var oOldMenu = null; 
function menuClick(oMenu) {
	if (getE(oMenu).style.display == "none") {
		getE(oMenu).style.display = "block";
	} else {
		getE(oMenu).style.display = "none";
	}
	/*
	if (!oOldMenu) {
		oOldMenu = oMenu;
	} else if ( oOldMenu != oMenu ) { 
		oOldMenu.style.display = "none"; 
		oOldMenu = oMenu; 
	}
	*/
}

function popupWindow(sUrl, iWidth, iHeight) {
	var iTop  = (screen.height - iHeight) / 2 ;
	var iLeft = (screen.width  - iWidth)  / 2 ;
	window.open(sUrl,'','scrollbars=yes,resizable=yes,width='+iWidth+',height='+iHeight+',left='+iLeft+',top='+iTop);
}

function jumpToSelLink(oSel) {
	with (oSel) {
		if (options[selectedIndex].value.length != 0)
			window.location = options[selectedIndex].value;
	}
}

function addToFavorite(sUrl, sSiteName) {
	window.external.AddFavorite(sUrl, sSiteName);
}

function setAsHomePage(obj, sUrl) {
	var strHref = window.location.href;
	obj.style.behavior = 'url(#default#homepage)';
	obj.setHomePage(sUrl);
}


function getE(elementId) {
	return document.getElementById(elementId);
}

function isIE() {
	return navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
}
