
function IsIE() {
	//return (!document.all ? false : true);
	return ((navigator.appName == 'Microsoft Internet Explorer') ? true : false);
}

function Menu_Mouse_Over(obj) {
	if (IsIE()) {
		obj.className = 'Menu_Over';
	} else {
		obj.setAttribute('class', 'Menu_Over');
	}
}
function Menu_Mouse_Out(obj) {
	if (IsIE()) {
		obj.className = 'Menu_Normal';
	} else {
		obj.setAttribute('class', 'Menu_Normal');
	}
}

function Menu_Select(sIframe, sPage) {
	var obj = null; 
	if (IsIE()) {
		obj = frames[sIframe];
		obj.location.href = sPage + '.aspx';
	} else {
		obj = document.getElementById(sIframe);
		obj.style.height = '100px'; // Need to set it smaller than the pages, otherwise resize won't work
		obj.src = sPage + '.aspx';
	}
	//obj.src = sPage + '.aspx';
}

function Iframe_Resize(ifr) {
	//if (ifr.document) {
	if (IsIE()) {
		ifr.style.height = (ifrContent.document.body.scrollHeight + 5).toString() + 'px';
	} else if (ifr.contentDocument) {
	//alert('called');
		ifr.style.height = (ifr.contentDocument.body.scrollHeight).toString() + 'px';
	}
}

function Img_Swap(btnImgId, btnOverImgId) {
	var imgNorm = document.getElementById(btnImgId);
	var imgOver = document.getElementById(btnOverImgId);
	imgNorm.style.visibility = 'hidden';
	imgNorm.style.display = 'none';
	imgOver.style.visibility = 'visible';
	imgOver.style.display = 'block';
	
}
