var isNav, isIE, isNN6;

if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		isNav = true;
		if(document.getElementById){
			isNN6=true;
		}
		else {
			isNN6=false;
		}
		
	} else {
		isIE = true;
	}
}

	NS4 = document.layers;
	if (NS4) {
 				origWidth = innerWidth;
 				origHeight = innerHeight;
	}

	function reDo() {
 				if (innerWidth != origWidth || innerHeight != origHeight)
    			location.reload();
	}

	if (NS4) onresize = reDo;

	function goCategory(strCategory,opennew) {
		if(opennew == 1) {
			window.open(strCategory, '_new', '');
		}
		else {
			window.location = strCategory;
			window.status=strCategory;
		}
	}
	
	function showStatus(msg) {
		window.status = msg;
	return true;
	}
function getIExko ( obj ) {
  if ( obj == document.body ) return obj.offsetLeft
  else return obj.offsetLeft +getIExko( obj.offsetParent );
}; //end getIExKo ( object ) -> int

function getIEyko ( obj ) {
  if ( obj == document.body ) return obj.offsetTop
  else return obj.offsetTop +getIEyko( obj.offsetParent );
}; //end getIEyko 

function Show(Name,MenuName)
{
	var MItem=document.getElementById('IDM_'.concat(Name));
	var width;
	
	if(isIE)
		width= MItem.offsetWidth;
	else if(isNav)
		{
		if(isNN6)
			{
			width= 130;//Padocument.defaultView.getComputedStyle(MItem, "").getPropertyValue("width");
			}
		else
			{
			width= 130;
			}
		}
	openRootMenu(MenuName, getIExko(MItem)+width-1, getIEyko(MItem)-23, 0, Name);
//	var MItem=document.getElementById('IDM_'.concat(Name));
//	if (MItem.innerHTML=='')
//		{
//		MItem.innerHTML = MItem.abbr;
//		MItem.abbr = '';
//		if(MenuOpen!='') Hide(MenuOpen);
//		MenuOpen= Name;
//		}
}


