﻿	var	crossobj_zooeselect
	
	var	bPageLoaded_zooeselect=false

	var bShow_zooeselect = false;

	if (document.getElementById)
	{
	document.write ("<div id='SearchWST' style='cursor:move;'><div onclick='bShow_zooeselect=true' id='DestinationSelect' style='z-index:+979;position:absolute;visibility:hidden;' onmousedown='MDown(DestinationSelect)'><table width='450' height='350' style='font-family:arial;font-size:12px;border-width:1;border-style:solid;border-color:#a0a0a0;font-family:arial; font-size:12px}' bgcolor='#ffffff'><tr bgcolor='#eeeeee'><td height='25'><table border=0 width='100%'><tr><td><div> <img src='../Images/GArrow.jpg' align='absmiddle'> <b>请选择目的地城市 Select Destination City</b></div></td><td><div align=right width='100%' style='padding-top:3px;padding-bottom:3px;'><a href='javascript:hideDestinationSelect()'><IMG SRC='../images/close.gif' WIDTH='15' HEIGHT='13' BORDER='0' ALT='Close'></a></div></td></tr></table></td></tr><tr><td style='padding:5px' bgcolor=#ffffff><span id='content'><div id='ALALSelect' style='margin-right:0px;padding:5px;width:450px;'><iframe src='../plane/plane_city.html' style='border:0;width:100%;height:350px;' name='SelectLoadIframe'></iframe><div align=right><input type='button' value='ReLoad' onclick='ReSelectAreaList()' class=WorldTicketOrder><input type='button' value='Close' onclick='HiddenSelectAreaStyle()' class=WorldTicketOrder></div></div></span></td></tr></table></div></div>")
	}

	function initDestinationSelect()	{
		if (!document.layers)
		{
			crossobj_zooeselect=(document.getElementById)?document.getElementById("DestinationSelect").style : document.all? document.all.DestinationSelect : document.DestinationSelect
			hideDestinationSelect()
			bPageLoaded_zooeselect=true
		}
	}

	function hideDestinationSelect()	{
		crossobj_zooeselect.visibility="hidden"
	}

	function popDestinationSelect(ctl) {
		var	leftpos=0
		var	toppos=0

		if (bPageLoaded_zooeselect)
		{
			if ( crossobj_zooeselect.visibility ==	"hidden" ) {
				

				aTag = ctl
				do {
					aTag = aTag.offsetParent;
					leftpos	+= aTag.offsetLeft;
					toppos += aTag.offsetTop;
				} while(aTag.tagName!="BODY");

				crossobj_zooeselect.left =	ctl.offsetLeft	+ leftpos 
				crossobj_zooeselect.top = ctl.offsetTop +	toppos + ctl.offsetHeight +	2
				crossobj_zooeselect.visibility=(document.getElementById||document.all)? "visible" : "show"

				bShow_zooeselect = true;
			}
			else
			{
				//hideDestinationSelect()
			}
		}
	}

	//if(document.all)
	//{
	//	initDestinationSelect()
	//}
	//else
	//{
	//	window.onload=initDestinationSelect
	//}



	function toBeExecute()
	{
	if (document.readyState!="complete") return;
		//页面加载完后执行的代码
		initDestinationSelect();
	}
	//页面加载状态改变时执行的方法
	document.onreadystatechange=toBeExecute;
