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;

DOM_Check = (document.getElementById) ? true : false;
NS4_Check = (document.layers) ? true : false;
IE_Check = (document.all) ? true : false;
IE4_Check = IE_Check && !DOM_Check;

function HM_TopMenuOver(thisItem){
	if(document.getElementById(thisItem + "TD")){
		if(IE_Check){
			document.getElementById(thisItem + "TD").style.cursor='hand';
		}
		else{
			document.getElementById(thisItem + "TD").style.cursor='pointer';
		}
	}
	HM_CurrentTopItemID=thisItem;
}

function HM_TopMenuOut(thisItem){
	if(document.getElementById(thisItem + "TD")){
	}
}

function findPosX(obj) {
	var curleft = 0;
	if(obj.offsetParent)
		while(1) {
			curleft += obj.offsetLeft;
			if(!obj.offsetParent)
				break;
			obj = obj.offsetParent;
		}
	else if(obj.x)
		curleft += obj.x;
		return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if(obj.offsetParent)
		while(1)
		{
			curtop += obj.offsetTop;
			if(!obj.offsetParent)
				break;
			obj = obj.offsetParent;
		}
	else if(obj.y)
		curtop += obj.y;
	return curtop;
}

