function getAbsoluteLeft( ob ){
if(!ob){return null;}
    var mendingOb = ob;
    var mendingLeft = mendingOb .offsetLeft;
    while( mendingOb != null && mendingOb .offsetParent != null && mendingOb .offsetParent.tagName != "BODY" ){
      mendingLeft += mendingOb .offsetParent.offsetLeft;
      mendingOb = mendingOb .offsetParent;
    }
return mendingLeft ;
}

// get absolute TOP position
function getAbsoluteTop( ob ){
if(!ob){return null;}
var mendingOb = ob;
var mendingTop = mendingOb .offsetTop;
	while( mendingOb != null && mendingOb .offsetParent != null && mendingOb .offsetParent.tagName != "BODY" ){
		mendingTop += mendingOb .offsetParent.offsetTop;
		mendingOb = mendingOb .offsetParent;
	}
return mendingTop ;
}
function showRecommendDiv(str){
	/*initializeSuggestFramework()*/
//document.getElementById('frame').style.display='none';
/*	if(document.getElementById('agencyname_list')!=null){
		document.getElementById('agencyname_list').style.display='none';
	}
	if(document.getElementById('key_list')!=null){
		document.getElementById('key_list').style.display='none';
	}*/
document.getElementById("displayRecommendDiv").style.display = "block";
var left = 550;
var top = 904;
var key = "key";
var str = "<div class=\"tck1\" style='position:absolute;top:" + top + "px;left:" + left + "px;z-index:99999;'>";
str +="<!--div style=\"margin:0 auto;width:338px;height:25px;background-color:#F9F9F9;border:1px solid #CCCCCC;line-height:180%;margin-bottom:13px;margin-top:12px;\">";
str +="&nbsp;&nbsp;输入中文/拼音或在下列关键字中选择";
str +="</div-->";
str +="<div style=\"margin-left:13px; padding-bottom:10px; border-bottom:1px dashed #000; width:337px;margin-top:20px;\"><div style='float:left;width:310px;'><b>境内旅游</b></div><div style='width:10px;float:left;'><img onClick=\"hiddenRecommendDiv();\" style='cursor:hand' src='/images/closediv.gif' border='0'/></div></div>";
str +="<div class=\"tck2\">";
str +="<ul>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"上海\";hiddenRecommendDiv(); style='cursor:hand'>上海</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"江苏\";hiddenRecommendDiv();   style='cursor:hand'>江苏</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"浙江\";hiddenRecommendDiv();   style='cursor:hand'>浙江</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"安徽\";hiddenRecommendDiv();   style='cursor:hand'>安徽</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"福建\";hiddenRecommendDiv();   style='cursor:hand'>福建</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"江西\";hiddenRecommendDiv();   style='cursor:hand'>江西</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"山东\";hiddenRecommendDiv();   style='cursor:hand'>山东</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"重庆\";hiddenRecommendDiv();   style='cursor:hand'>重庆</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"四川\";hiddenRecommendDiv();   style='cursor:hand'>四川</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"贵州\";hiddenRecommendDiv();   style='cursor:hand'>贵州</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"云南\";hiddenRecommendDiv();   style='cursor:hand'>云南</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"西藏\";hiddenRecommendDiv();   style='cursor:hand'>西藏</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"北京\";hiddenRecommendDiv();   style='cursor:hand'>北京</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"天津\";hiddenRecommendDiv();   style='cursor:hand'>天津</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"河北\";hiddenRecommendDiv();   style='cursor:hand'>河北</a></li>";
str +="<li><a onClick=document.getElementById('" + key + "').value=\"山西\";hiddenRecommendDiv();   style='cursor:hand'>山西</a></li>";
 str +="     <li><a onClick=document.getElementById('" + key + "').value=\"河南\";hiddenRecommendDiv();   style='cursor:hand'>河南</a></li>";
 str +="     <li><a onClick=document.getElementById('" + key + "').value=\"湖北\";hiddenRecommendDiv();   style='cursor:hand'>湖北</a></li>";
 str +="     <li><a onClick=document.getElementById('" + key + "').value=\"湖南\";hiddenRecommendDiv();   style='cursor:hand'>湖南</a></li>";
 str +="     <li><a onClick=document.getElementById('" + key + "').value=\"广东\";hiddenRecommendDiv();   style='cursor:hand'>广东</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"广西\";hiddenRecommendDiv();   style='cursor:hand'>广西</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"海南\";hiddenRecommendDiv();   style='cursor:hand'>海南</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"陕西\";hiddenRecommendDiv();   style='cursor:hand'>陕西</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"甘肃\";hiddenRecommendDiv();   style='cursor:hand'>甘肃</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"青海\";hiddenRecommendDiv();   style='cursor:hand'>青海</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"宁夏\";hiddenRecommendDiv();   style='cursor:hand'>宁夏</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"新疆\";hiddenRecommendDiv();   style='cursor:hand'>新疆</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"辽宁\";hiddenRecommendDiv();   style='cursor:hand'>辽宁</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"黑龙江\";hiddenRecommendDiv();   style='cursor:hand'>黑龙江</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"吉林\";hiddenRecommendDiv();   style='cursor:hand'>吉林</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"内蒙古\";hiddenRecommendDiv();   style='cursor:hand'>内蒙古</a></li>";
 str +="   </ul>";
str +="  </div>";
str +="  <div style=\"padding-top:10px; margin-left:13px; padding-bottom:10px; border-bottom:1px dashed #000; width:337px; clear:both\"><b>境外旅游</b></div>";
str +="  <div class=\"tck2\">";
str +="    <ul>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"亚洲\";hiddenRecommendDiv();   style='cursor:hand'>亚洲</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"欧洲\";hiddenRecommendDiv();   style='cursor:hand'>欧洲</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"美洲\";hiddenRecommendDiv();   style='cursor:hand'>美洲</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"非洲\";hiddenRecommendDiv();   style='cursor:hand'>非洲</a></li>";
 str +="     <li><a onClick=document.getElementById('" + key + "').value=\"大洋洲\";hiddenRecommendDiv();   style='cursor:hand'>大洋洲</a></li>";
str +="      <li><a href=\"#\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"香港\";hiddenRecommendDiv();   style='cursor:hand'>香港</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"澳门\";hiddenRecommendDiv();   style='cursor:hand'>澳门</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"台湾\";hiddenRecommendDiv();   style='cursor:hand'>台湾</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"东南亚\";hiddenRecommendDiv();   style='cursor:hand'>东南亚</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"日本\";hiddenRecommendDiv();   style='cursor:hand'>日本</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"韩国\";hiddenRecommendDiv();   style='cursor:hand'>韩国</a></li>";
str +="    </ul>";
str +="  </div>";
str +="  <div style=\"padding-top:10px; margin-left:13px; padding-bottom:10px; border-bottom:1px dashed #000; width:337px; clear:both\"><b>你的喜好</b></div>";
str +="  <div class=\"tck2\">";
str +="    <ul>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"特惠团\";hiddenRecommendDiv();   style='cursor:hand'>特惠团</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"纯玩团\";hiddenRecommendDiv();   style='cursor:hand'>纯玩团</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"度假村\";hiddenRecommendDiv();   style='cursor:hand'>度假村</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"邮轮\";hiddenRecommendDiv();   style='cursor:hand'>邮轮</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"名山\";hiddenRecommendDiv();   style='cursor:hand'>名山</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"名城\";hiddenRecommendDiv();   style='cursor:hand'>名城</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"乐园\";hiddenRecommendDiv();   style='cursor:hand'>乐园</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"高档休闲\";hiddenRecommendDiv();   style='cursor:hand'>高档休闲</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"海边\";hiddenRecommendDiv();   style='cursor:hand'>海边</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"非常玩法\";hiddenRecommendDiv();   style='cursor:hand'>非常玩法</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"老年游\";hiddenRecommendDiv();   style='cursor:hand'>老年游</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"古镇\";hiddenRecommendDiv();   style='cursor:hand'>古镇</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"亲子游\";hiddenRecommendDiv();   style='cursor:hand'>亲子游</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"采摘\";hiddenRecommendDiv();   style='cursor:hand'>采摘</a></li>";
str +="      <li><a onClick=document.getElementById('" + key + "').value=\"自由行\";hiddenRecommendDiv();   style='cursor:hand'>自由行</a></li>";
str +="   </ul>";
str +="  </div>";
str +="</div>";

document.getElementById("displayRecommendDiv").innerHTML = str;
}
function hiddenRecommendDiv(){
	document.getElementById("displayRecommendDiv").style.display = "none";
	//document.getElementById('frame').style.display='none';
}