﻿// -->
var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;
function hidelayer(lay) {
if (ie4) {document.all[lay].style.visibility = "hidden";}
if (ns4) {document.layers[lay].visibility = "hide";}
if (ns6) {document.getElementById([lay]).style.display = "none";}
}
function showlayer(lay) {
if (ie4) {document.all[lay].style.visibility = "visible";}
if (ns4) {document.layers[lay].visibility = "show";}
if (ns6) {document.getElementById([lay]).style.display = "block";}
}
function writetolayer(lay,txt) {
if (ie4) {
document.all[lay].innerHTML = txt;
}
if (ns4) {
// doesn't work
//document[lay].document.write(txt);
//document[lay].document.close();
}
if (ns6) {
over = document.getElementById([lay]);
range = document.createRange();
range.setStartBefore(over);
domfrag = range.createContextualFragment(txt);
while (over.hasChildNodes()) {
over.removeChild(over.lastChild);
}
over.appendChild(domfrag);
   }
}

function changeCellColor(cellRef,colorRef){
	if (ie4) {document.all[cellRef].style.backgroundColor = colorRef;}
	if (ns4) {return false;}
	if (ns6) {document.getElementById([cellRef]).style.backgroundColor = colorRef;}
}
function resetCellColor(cellRef){
	if (ie4) {document.all[cellRef].style.backgroundColor = '';}
	if (ns4) {return false;}
	if (ns6) {document.getElementById([cellRef]).style.backgroundColor = '';}
}


//dhtml script 

// -->
//  End -->

var isMenuShowing=false;
		function checkPos(strItem) {
			interval=setTimeout("checkMenu("+strItem+")",10);
		}
		
		function checkMenu(strItem) {
			if(!isMenuShowing) rolloverOff(strItem);
			else rolloverOn(strItem);
		}
		
		if(window.event + "" == "undefined") event = null;
		function HM_f_PopUp(){return false};
		function HM_f_PopDown(){return false};
		popUp = HM_f_PopUp;
		popDown = HM_f_PopDown;	

		var ver = navigator.appName; 
		var num = parseInt(navigator.appVersion); 