	var appN = navigator.appName; var appV = navigator.appVersion.substring(0,1);
	var ie = (appN=="Microsoft Internet Explorer" && appV >= 4) ? true : false;
	var ns = (appN=="Netscape" && (appV >= 4 && appV < 5)) ? true : false;
	var nsix = (appN=="Netscape" && appV >= 5) ? true : false;
	var curMnuId = "";
	var curMnuPId = "";
	
	function divOn(i, p, child) {
		try { clearTimeout(bdyTimer); }
		catch (ex) { }
		if ((curMnuId != "") && (curMnuPId != "")) {
			divOffAfterPause(curMnuId, curMnuPId);
		}
		curMnuId = i;
		curMnuPId = p;
		if ( (i == p) && (document.getElementById('arr' + p) != null) )
	   		document.getElementById('arr' + p).style.display = "none";
		if (child == 'True') {
			document.getElementById('mnu' + i + 'td').style.backgroundColor = "e2f6fc";
			document.getElementById('mnu' + i + 'td').style.color = "00A5E4";
		}
		else 
	   	{
			document.getElementById('mnu' + i + 'td').style.backgroundColor = "e2f6fc";
	   		document.getElementById('mnu' + i + 'td').style.color = "00A5E4";
		}
		
	   	if (document.getElementById('mnu' + i) != null)
	   	{
	     	document.getElementById('mnu' + i).style.left = getOffsetLeft(document.getElementById('mnu' + i + 'td'), i);
	   		document.getElementById('mnu' + i).style.top = 305;
	   		document.getElementById('mnu' + i).style.display = "block";
	   	}
	}
	function divOff(i, p) {
		bdyTimer = setTimeout("divOffAfterPause('"+i+"', '"+p+"')", 500);
	}
	
	function divOffAfterPause(i, p) {
		try { clearTimeout(bdyTimer); }
		catch (ex) { }
		if (i == p){
			document.getElementById('mnu' + p + 'td').style.backgroundColor = "00A5E4";
		} else 
			document.getElementById('mnu' + i + 'td').style.backgroundColor = "30B457";
		document.getElementById('mnu' + i + 'td').style.color = "FFFFFF";
		if (document.getElementById('mnu' + i) != null)
		{
			document.getElementById('mnu' + i).style.display = "none";
		}
		if (document.getElementById('arr' + p) != null) 
			document.getElementById('arr' + p).style.display = "block";
	}
	
	function getOffsetLeft(el, i)
	{ 
		var eltemp = el;
		var ol = el.offsetLeft; 
		while((eltemp = eltemp.offsetParent) != null) 
		ol += eltemp.offsetLeft;
		return ol;
	}

	function fnFindTopPos(obj) {
		var curtop = 0;
		if (obj.offsetParent) {
			curtop = obj.offsetTop
			while (obj = obj.offsetParent) {
				curtop += obj.offsetTop
			}
		}
		return [curtop];
	}

	function fnFindTopLeft(obj) {
		var curleft = 0;
		if (obj.offsetParent) {
			curleft = obj.offsetLeft
			while (obj = obj.offsetParent) {
				curleft += obj.offsetLeft
			}
		}
		return [curleft];
	}

	function showLink(nMenuItem)
	{
		var szItem = "div_link_" + nMenuItem;
		var objMap = document.getElementById(szItem);
		objMap.style.display = (objMap.style.display == "block" ? "none" : "block");	
	}
	
	function calculatePrice(nPersons)
	{
		var result
		if (!isNaN(nPersons))
		{
			result = Math.ceil((nPersons / 11))*100 +(nPersons*11);
			window.frames[0].location.href = "xt_Caculate.asp?id=" + result
		}
	}
	function popup(url) 
	{
		window.open(url, "", "width=625,height=475,top=200,left=300,resizable=no,scrollbars=no,status=no");
	}