
function nTabs(thisObj,Num){if(thisObj.className=="active")return;var tabObj=thisObj.parentNode.id;var tabList=document.getElementById(tabObj).getElementsByTagName("li");for(i=0;i<tabList.length;i++)
{if(i==Num)
{thisObj.className="active";document.getElementById(tabObj+"_Content"+i).style.display="block";}else{tabList[i].className="normal";document.getElementById(tabObj+"_Content"+i).style.display="none";}}
nTabs_send(Num);}
function nTabs_send(Num){var xmlhttp;try{xmlhttp=new XMLHttpRequest();}catch(e){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){xmlhttp.abort();}}
if(document.location.href.indexOf("beijing")>0)
xmlhttp.open("GET","/beijing/?"+Num,true);else
xmlhttp.open("GET","/?"+Num,true);xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.send();}
var $=function(node){return document.getElementById(node);}
function do_s_v(data_s,html_id){var xmlhttp,str="";try{xmlhttp=new XMLHttpRequest();}catch(e){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){var data=xmlhttp.responseText;if(data==null||data==''){$('shop_view').style.display='none';}else{$('shop_view').style.display='';$(html_id).innerHTML=data;}}}}
str="shopids="+data_s;xmlhttp.open("post","/getindex.php",true);xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');xmlhttp.send(str);}
function getCookie(name){var strCookie=document.cookie;var arrCookie=strCookie.split("; ");for(var i=0;i<arrCookie.length;i++){var arr=arrCookie[i].split("=");if(arr[0]==name)return arr[1];}
return"";}
function do_suggest(e,path,arraypara,hiddenspan){var keyc,xmlhttp,str="",num,join,transfer="";if(window.event){keyc=e.keyCode;}else if(e.which){keyc=e.which;}
if(keyc!=40&&keyc!=38){try{xmlhttp=new XMLHttpRequest();}catch(e){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){var data=xmlhttp.responseText;if(data==null||data=='')data='<div class="bangzhu_2" id="suggest_2" style="display:none;"><div class="bangzhu_left">当开始输入词语时将显示搜索帮助。</div><div class="bangzhu_right"> <a href="javascript:close();">关闭搜索帮助</a></div></div><div id="suggest" class="bangzhu_bottom_1" onclick="doSuggest();"></div>';$(hiddenspan).innerHTML=data;}}}}
xmlhttp.open("post",path,true);xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');var pararm=arraypara.split("+");var tmp_str=$(pararm[0]).value;for(num=0;num<pararm.length;num++){if(num==(pararm.length-1)){join="";}else{join="&";}
if(num==0){transfer=unescape($(pararm[num]).value).replace(/^\s+|\s+$/g,'');}else{transfer=$(pararm[num]).value;}
str+=pararm[num]+'='+transfer+join;}
xmlhttp.send(str);}
function getvalue(keyk,value){document.getElementById(keyk).value=value;document.getElementById("keywordlist").style.display="none";document.getElementById("suggest").className='bangzhu_bottom_1';document.getElementById("help").style.display='none';}
function close(){doSuggest();}
function _c_t(id){_r_c();$("c_"+id).className="hover";if(id==5)$("search_bt").className="anniu_2";if(id==4)$("search_bt").className="anniu_3";if(id==3)$("search_bt").className="anniu_4";if(id==2)$("search_bt").className="anniu_5";if(id==1)$("search_bt").className="anniu_6";if(id==7)$("search_bt").className="anniu_1";$("keyType").value=id;$("suggest_top").innerHTML='<div class="bangzhu_2" id="suggest_2" style="display:none;"><div class="bangzhu_left">当开始输入词语时将显示搜索帮助。</div><div class="bangzhu_right"> <a href="javascript:close();">关闭搜索帮助</a></div></div><div id="suggest" class="bangzhu_bottom_1" onclick="doSuggest();"></div>';}
function　_r_c(){$("c_1").className="";$("c_2").className="";$("c_3").className="";$("c_4").className="";$("c_5").className="";$("c_7").className="";}
function over(id,type){if(type==1){if(!document.getElementById("TU"))return;if(typeof(slideimages)=='undefined')return;document.getElementById("TU").src=slideimages[id-1];document.getElementById("TU_URL").href=picurl[id-1];for(var i=0;i<slideimages.length;i++){var shuzi=i+1;var strclassName="shuzi_"+shuzi;document.getElementById("TUshuzi_"+shuzi).className=strclassName;}
var overClassName="shuzi_"+id;document.getElementById("TUshuzi_"+id).className=overClassName+" "+overClassName+"_hover";}else if(type==2){if(!document.getElementById("TU2"))return;if(typeof(slideimages2)=='undefined')return;document.getElementById("TU2").src=slideimages2[id-1];document.getElementById("TU_URL2").href=picurl2[id-1];for(var i=0;i<slideimages2.length;i++){var shuzi=i+1;var strclassName="shuzi_"+shuzi;document.getElementById("TU2shuzi_"+shuzi).className=strclassName;}
var overClassName="shuzi_"+id;document.getElementById("TU2shuzi_"+id).className=overClassName+" "+overClassName+"_hover";}
if(type==3){if(!document.getElementById("spanyhtu"))return;if(typeof(slideimages3)=='undefined')return;var spanClassName="yhtu_"+id;document.getElementById("spanyhtu").style.backgroundImage='url('+slideimages3[id-1]+')';document.getElementById("TU_URL3").href=URL3[id-1];for(var i=0;i<yhtu;i++){var shuzi=i+1;var strclassName="shuzi_"+shuzi;document.getElementById("TU3shuzi_"+shuzi).className=strclassName;}
var overClassName="shuzi_"+id;document.getElementById("TU3shuzi_"+id).className=overClassName+" "+overClassName+"_hover";}}
function gjbload(index,type){over(index,type);var nextDivid=index+1;if(type==1){if(nextDivid<=slideimages.length){var modele="gjbload("+nextDivid+","+type+")";}else{var modele="gjbload("+1+","+type+")";}}
else if(type==2){if(nextDivid<=slideimages2.length){var modele="gjbload("+nextDivid+","+type+")";}else{var modele="gjbload("+1+","+type+")";}}else if(type==3){if(nextDivid<=yhtu){var modele="gjbload("+nextDivid+","+type+")";}else{var modele="gjbload("+1+","+type+")";}}}
function DownImage(ImgD){var image=new Image();image.src=ImgD.src;var data=arguments[1]?arguments[1]:106;var data2=arguments[2]?arguments[2]:1000;if(image.width>0&&image.height>0){if(image.width>=image.height&&image.width>data){ImgD.width=data;ImgD.height=(image.height*data)/image.width;}
if(image.height>=image.width&&image.height>data2){ImgD.height=data2;ImgD.width=(image.width*data2)/image.height;}}}
window.onload=function(){document.body.onclick=function(evt){var _target=evt?evt.target:event.srcElement;var _id=_target.id;var sls=document.getElementById('city').getElementsByTagName('a');for(i=0;i<sls.length;i++){if(sls[i]==_target){return;}}
if(_target==document.getElementById('asd')){return;}
document.getElementById('city').style.display='none';}}
function changecity(){document.getElementById('city').style.display='block';document.getElementById("as").className="hover";}
function changecolor(){document.getElementById("colorDiv").style.display="block";document.getElementById("cda").className="hover";}
var slideimages=new Array();var picurl=new Array();
	 slideimages[0]="http://img.gudumami.com/gu/attachment/Mon_1002/143942_fe26i9asF8sdZuX.gif";
     slideimages[1]="http://img.gudumami.com/gu/attachment/Mon_1002/143942_3vSgtGzpvUeidxL.gif";
	 slideimages[2]="http://img.gudumami.com/gu/attachment/Mon_1002/143942_gsrAZluwvecc0is.gif";
     picurl[0]="http://teji.gudumami.cn/xican/";
	 picurl[1]="http://teji.gudumami.cn/youhui/";
     picurl[2]="http://www.gudumami.cn/search/particular/PARTICULAR_5_14/Z1/";
	 var shwords=new Array();
	 shwords[0]=new Array();
	 shwords[0][0]="西餐";
	 shwords[0][1]="美食特辑 西餐";
	 shwords[1]=new Array();
	 shwords[1][0]="超值省薪";
	 shwords[1][1]="美食特辑 优惠";
	 shwords[2]=new Array();
	 shwords[2][0]="特别的优惠券";
	 shwords[2][1]="来自 餐饮店大全";
function randomshwords(){var write_str="";var write_obj=document.getElementById("SH_Today");if(write_obj){var rnd_num=Math.random();rnd_num*=slideimages.length;rnd_num=Math.round(rnd_num-0.5);write_str="<a href=\""+picurl[rnd_num]+"\"><img src=\""+slideimages[rnd_num]+"\">"+shwords[rnd_num][0]+"<br /></a>"+shwords[rnd_num][1]+"";write_obj.innerHTML=write_str;}}
var slideimages2=new Array();var picurl2=new Array();
     slideimages2[0]="http://img.gudumami.com/gu/attachment/Mon_1003/143942_Ap5EgwJ4OcwXcMc.jpg";
     slideimages2[1]="http://img.gudumami.com/gu/attachment/Mon_1002/143942_1XU2obiElk9bB5J.jpg";
     picurl2[0]="http://www.gudumami.cn/course/";
     picurl2[1]="http://www.gudumami.cn/course/riben/";
var yhtu=4;strin=function(){gjbload(1,1);document.body.onclick=function(evt){var _target=evt?evt.target:event.srcElement;var _id=_target.id;var sls=document.getElementById('city').getElementsByTagName('a');for(i=0;i<sls.length;i++){if(sls[i]==_target){return;}}
if(_target==document.getElementById('asd')){return;}
if(_id!='as'){document.getElementById('city').style.display='none';document.getElementById("as").className="";}
if(_id!='cd'){}
if(_id!='suggest'&&_id!='_id_close'&&document.getElementById("suggest").className=='bangzhu_bottom_2'){if(document.getElementById("keywordlist")!=null&&document.getElementById("keywordlist").style.display==''){document.getElementById("keywordlist").style.display="none";document.getElementById("suggest").className='bangzhu_bottom_1';document.getElementById("help").style.display="none";}}}}
window.onload=strin;function tagmove(obj){obj.className="over";}
function tagout(obj){obj.className="";}
function textkeyPress(obj){if(obj.value=='火锅')obj.value='';obj.style.color="#000";}
function doSuggest(){if(document.getElementById("suggest").className=='bangzhu_bottom_1'){if(document.getElementById("keywordlist")==null){document.getElementById("suggest_2").style.display="";document.getElementById("suggest").className='bangzhu_bottom_2';}else{document.getElementById("keywordlist").style.display="";document.getElementById("suggest").className='bangzhu_bottom_2';document.getElementById("help").style.display='';}}else if(document.getElementById("suggest").className=='bangzhu_bottom_2'){if(document.getElementById("keywordlist")==null){document.getElementById("suggest_2").style.display="none";document.getElementById("suggest").className='bangzhu_bottom_1';}else{document.getElementById("keywordlist").style.display="none";document.getElementById("suggest").className='bangzhu_bottom_1';document.getElementById("help").style.display="none";}}}
function visit(id){new Image().src="/visit.php?banner="+id;}
function visit_shop(shop_id){new Image().src="/visit_shop.php?shop_id="+shop_id;}
function AddFavorite(sURL,sTitle){if((typeof window.sidebar=='object')&&(typeof window.sidebar.addPanel=='function')){window.sidebar.addPanel(sTitle,sURL,"");}else{window.external.AddFavorite(sURL,sTitle);}}