var nome=(navigator.appName=='Netscape')?true:false;
function showPopup(thePopup) {
	if (window.innerHeight)
	{
		  pos = window.pageYOffset
	}
	else if (document.documentElement && document.documentElement.scrollTop)
	{
		pos = document.documentElement.scrollTop
	}
	else if (document.body)
	{
		  pos = document.body.scrollTop
	}
	pos = pos+20;
	if (document.layers){
            document.layers["CatPopup" + thePopup].style.top=pos;
            document.layers["CatPopup" + thePopup].visibility="show";
        } else if (document.getElementById) {
			document.getElementById("CatPopup" + thePopup).style.top=pos;
			document.getElementById("CatPopup" + thePopup).style.visibility="visible";
		} else if (document.all) {
	        document.all["CatPopup" + thePopup].style.top=pos;
	        document.all["CatPopup" + thePopup].style.visibility="visible";
		} else {
			alert("Sorry, your browser is not supported.");
        }
}
function hidePopup(thePopup) {
        if (document.layers){
            document.layers["CatPopup" + thePopup].visibility="hide"
        } else if (document.getElementById) {
			document.getElementById("CatPopup" + thePopup).style.visibility="hidden";
		} else if (document.all) {
	        document.all["CatPopup" + thePopup].style.visibility="hidden";
        }
}
function displayPopup(thePopup) {
	if (document.layers){
            document.layers["CatPopup" + thePopup].display="inline";
        } else if (document.getElementById) {
			document.getElementById("CatPopup" + thePopup).style.display="inline";
		} else if (document.all) {
	        document.all["CatPopup" + thePopup].style.display="inline";
		} else {
			alert("Sorry, your browser is not supported.");
        }
}
function unDisplayPopup(thePopup) {
	if (document.layers){
            document.layers["CatPopup" + thePopup].display="none";
        } else if (document.getElementById) {
			document.getElementById("CatPopup" + thePopup).style.display="none";
		} else if (document.all) {
	        document.all["CatPopup" + thePopup].style.display="none";
		} else {
			alert("Sorry, your browser is not supported.");
        }
}

function togglePopup(thePopup) {
	if (document.layers){
		if (document.layers["CatPopup" + thePopup].display=="none") {
            document.layers["CatPopup" + thePopup].display="inline";
			//document.images["CatCorner" + thePopup].src="img/topbar_exit.gif";
		} else {
            document.layers["CatPopup" + thePopup].display="none";
			//document.images["CatCorner" + thePopup].src="img/shim.gif";
		}
	} else if (document.getElementById) {
		if (document.getElementById("CatPopup" + thePopup).style.display=="none") {
			document.getElementById("CatPopup" + thePopup).style.display="inline";
			//document.images["CatCorner" + thePopup].src="img/topbar_exit.gif";
			//document.getElementById("CatLabel" + thePopup).style.color="#FFFFFF";
			//document.getElementById("CatBox" + thePopup).style.backgroundColor="#FE8C01";
		} else {
			document.getElementById("CatPopup" + thePopup).style.display="none";
			//document.images["CatCorner" + thePopup].src="img/shim.gif";
			//document.getElementById("CatBox" + thePopup).style.backgroundColor="#FFFFFF";
			//document.getElementById("CatLabel" + thePopup).style.color="#FE8C01";
		}
	} else if (document.all) {
		if (document.all["CatPopup" + thePopup].style.display=="none") {
			document.all["CatPopup" + thePopup].style.display="inline";
			//document.images["CatCorner" + thePopup].src="img/topbar_exit.gif";
			//document.all["CatLabel" + thePopup].style.color="#FFFFFF";
			document.all["CatBox" + thePopup].style.backgroundColor="#FE8C01";
		} else {
			document.all["CatPopup" + thePopup].style.display="none";
			//document.images["CatCorner" + thePopup].src="img/topbar_open.gif";
			//document.all["CatLabel" + thePopup].style.color="#FE8C01";
			//document.all["CatBox" + thePopup].style.backgroundColor="#FFFFFF";
		}
	} else {
		alert("Sorry, your browser is not supported.");
	}
}

