var j=jQuery.noConflict();j(function(){var a=c_currentGeoCode;getGeoData(a);j("#change-city > a").click(function(){j("#citySelect").show();centerPopup();j("#CS_background").css({opacity:"0.7"});j("#CS_background").show()});j("#dclose, #CS_background").click(function(){j("#citySelect").hide();j("#CS_background").hide()});j("#lastlevel").live("click",function(){})});function getGeoData(geoCode){j("#location").html("");j.ajax({type:"POST",url:"ajax_geo.php",data:"act=getchild&location="+geoCode,success:function(data){var jsonData=eval(data);setLocation(jsonData)}})}function setLocation(a){j(a).each(function(b,c){var d="";if(c.status!=2){d="<li id='"+c.geo_code+"'><a href='#' onclick='getGeoData("+c.geo_code+")'>"+c.display_name+"</a></li>"}else{d="<li id='"+c.geo_code+"'><a href='http://"+c.domain+".cuncun8.com/cunwu/'>"+c.display_name+"</a></li>"}j("#location").append(d);j("#sjzc-adderss-a ul").append(d)});if(c_currentGeoCode!=""||c_currentGeoCode==0){str="<a href='http://cunwu.cuncun8.com'>返回总站</a>";j("#location").append(str);j("#sjzc-adderss-a ul").append(str)}}function centerPopup(){var a=document.documentElement.clientWidth;var b=window.document.body.offsetHeight;j("#citySelect").css({position:"absolute",top:"148px",left:a/2-150});j("#CS_background").css({width:a,height:b})};