var IndexAjaxObject={PageElement:null,PageBlock:"",IndexType:"",BrandType:"",LevelSpell:"",ItemID:0,CompareItemId:0,ItemName:"",DateType:"",DateYear:"",DateValue:"",CityID:0,AjaxPath:"/Interface/GetData.aspx"},IndexAjaxObject2={PageElement:null,PageBlock:"",IndexType:"",BrandType:"",LevelSpell:"",ItemID:0,DateType:"",DateYear:"",DateValue:"",CityID:0,AjaxPath:"/Interface/GetData.aspx"};
function AjaxDataObj(){this.PageElement=null;this.LevelSpell=this.BrandType=this.IndexType=this.PageBlock="";this.ItemID=0;this.DateValue=this.DateYear=this.DateType="";this.CityId=0;this.AjaxPath="/Interface/GetData.aspx";this.OnAjaxSuccess=function(a){if(this.PageElement)if(a.responseText.length==0){if(this.PageBlock!="IndexItemFlash"&&this.PageBlock!="PieChart")this.PageElement.innerHTML=""}else if(this.PageBlock=="IndexItemFlash"){if(compareData.BaseItemData.ItemData==null){compareData.BaseItemData.SetItemData(a.responseText);
compareData.BaseItemData.SetShowValue("1")}else for(var b=0;b<compareData.CompareDataList.length;b++)if(compareData.CompareDataList[b].ItemId==this.ItemID){compareData.CompareDataList[b].SetItemData(a.responseText);compareData.CompareDataList[b].SetShowValue("0");break}this.InsertFlashChart(710,252)}else if(this.PageBlock=="PieChart")InsertPieChart(this.PageElement,a.responseText,308,254);else if(this.PageBlock=="IndexItemSortList")this.SetCityRankList(a.responseText);else if(this.PageBlock=="selectList")this.UpdateSelectList(a.responseText);
else this.PageElement.innerHTML=a.responseText};this.SetIndexElement=function(){var a=this,b={parameters:"indexType="+this.IndexType+"&brandType="+this.BrandType+"&itemID="+this.ItemID+"&dateType="+this.DateType+"&dateValue="+this.DateValue+"&cityID="+this.CityId+"&dateYear="+this.DateYear+"&pageBlock="+this.PageBlock+"&levelSpell="+this.LevelSpell+"&"+Math.random(),method:"get",onSuccess:function(c){a.OnAjaxSuccess(c)}};new Ajax.Request(this.AjaxPath,b)};this.SetSelectList=function(){var a=this;
new Ajax.Request(this.AjaxPath,{parameters:"indexType="+this.IndexType+"&brandType="+this.BrandType+"&itemID="+this.ItemID+"&dateType="+this.DateType+"&pageBlock="+this.PageBlock,method:"get",onSuccess:function(b){a.OnAjaxSuccess(b)}})};this.SetCityRankList=function(a){if(a){var b=a.indexOf("$$");if(b>=0){var c=a.substr(b+2),d=$("totalRank");if(d)d.innerHTML=c;a=a.substr(0,b)}this.PageElement.innerHTML=a}};this.InsertFlashChart=function(a,b){this.PageElement.innerHTML="";var c=new FusionCharts("http://js.bitauto.com/dealer/Report/FlashChart/MSLine.swf",
"IndexTendFlash",a+"px",b+"px","0","0","","noScale","EN");c.setTransparent(true);a="<chart caption='' subcaption='' showBorder='0' showLegend='0' lineThickness='1' showValues='1' formatNumberScale='0'  divLineColor='326FB8' divLineAlpha='50' divLineIsDashed='1' showAlternateHGridColor='1' alternateHGridAlpha='5' alternateHGridColor='326FB8' shadowAlpha='40' numvdivlines='$numvdivlines$' chartRightMargin='30' yAxisValuesPadding='5' yAxisMaxValue='$maxValue$' canvasPadding='30' bgColor='FFFFFF' bgAngle='270' bgAlpha='10,10'>";
var d="";b=true;var e="";if(compareData.BaseItemData.ItemData!=null){var f=compareData.BaseItemData.ItemData.indexOf("</categories>"),g=-1,h="",j=0;g=null;if(f>-1){e=compareData.BaseItemData.ItemData.substring(0,f+13);d=0;for(g=/<category/g;(arr=g.exec(e))!=null;)d++;d-=2;if(d<0)d=0;g=/\$numvdivlines\$/g;a=a.replace(g,d);h=compareData.BaseItemData.ItemData.substring(f+13);g=h.indexOf("</dataset>");if(g>-1){j=parseInt(h.substring(g+10));h=h.substring(0,g+10)}d=h}for(var i=0;i<compareData.CompareDataList.length;i++){if(compareData.CompareDataList[i].ItemData==
null){b=false;break}f=compareData.CompareDataList[i].ItemData.indexOf("</categories>");if(f>-1){h=compareData.CompareDataList[i].ItemData.substring(f+13);g=h.indexOf("</dataset>");if(g>-1){f=parseInt(h.substring(g+10));if(f>j)j=f;h=h.substring(0,g+10)}d+=h}}g=/\$maxValue\$/g;a=a.replace(g,j)}else b=false;if(b){c.setDataXML(a+e+d+"<styles><definition><style name='CaptionFont' type='font' size='12'/></definition><application><apply toObject='CAPTION' styles='CaptionFont' /><apply toObject='SUBCAPTION' styles='CaptionFont' /></application></styles></chart>");
var k=this.PageElement.id;window.setTimeout(function(){c.render(k)},0.2)}};this.UpdateSelectList=function(a){for(a=eval("("+a+")");this.PageElement.firstChild;)this.PageElement.removeChild(this.PageElement.firstChild);if(this.BrandType=="serial"){var b=document.createElement("OPTION");b.setAttribute("value","0");b.appendChild(document.createTextNode("\u8bf7\u9009\u62e9\u5b50\u54c1\u724c"));this.PageElement.appendChild(b);for(var c=0;c<a.length;c++)if(a[c].SerialList.length!=0){b=null;if(a.length>
1){b=document.createElement("OPTGROUP");b.label=a[c].Name;b.style.fontStyle="normal";b.style.background="#CCCCCC";b.style.textAlign="center";this.PageElement.appendChild(b)}for(var d=0;d<a[c].SerialList.length;d++){var e=a[c].SerialList[d];b=document.createElement("OPTION");b.setAttribute("value",e.ID);b.appendChild(document.createTextNode(e.Name));this.PageElement.appendChild(b)}}}else{b=document.createElement("OPTION");b.setAttribute("value","0");this.BrandType=="changshang"?b.appendChild(document.createTextNode("\u8bf7\u9009\u62e9\u5382\u5546")):
b.appendChild(document.createTextNode("\u8bf7\u9009\u62e9\u54c1\u724c"));this.PageElement.appendChild(b);for(c=0;c<a.length;c++){b=document.createElement("OPTION");b.setAttribute("value",a[c].ID);b.appendChild(document.createTextNode(a[c].Name));this.PageElement.appendChild(b)}}}}
function SetIndexPieChart(a,b,c){var d=new AjaxDataObj;d.IndexType=IndexAjaxObject.IndexType;d.BrandType="changshang";d.PageElement=$("producerPieChart");d.PageBlock="PieChart";d.DateType=a;d.DateYear=b;d.DateValue=c;d.AjaxPath=IndexAjaxObject.AjaxPath;d.CityId=IndexAjaxObject.CityID;d.SetIndexElement();d=new AjaxDataObj;d.IndexType=IndexAjaxObject.IndexType;d.BrandType="pinpai";d.PageElement=$("brandPieCharte");d.PageBlock="PieChart";d.DateType=a;d.DateYear=b;d.DateValue=c;d.AjaxPath=IndexAjaxObject.AjaxPath;
d.CityId=IndexAjaxObject.CityID;d.SetIndexElement();if(document.getElementById("levelPieChart")){d=new AjaxDataObj;d.IndexType=IndexAjaxObject.IndexType;d.BrandType="level";d.PageElement=$("levelPieChart");d.PageBlock="PieChart";d.DateType=a;d.DateYear=b;d.DateValue=c;d.CityId=IndexAjaxObject.CityID;d.SetIndexElement()}}
function SetIndexSort(a,b,c){var d=new AjaxDataObj;d.IndexType=IndexAjaxObject.IndexType;d.BrandType=IndexAjaxObject.BrandType;d.ItemID=IndexAjaxObject.ItemID;d.AjaxPath=IndexAjaxObject.AjaxPath;d.PageElement=$("SortUL");d.PageBlock="IndexItemSort";d.DateType=a;d.DateYear=b;d.DateValue=c;d.SetIndexElement();if(a=="m"){IndexAjaxObject2.IndexType=IndexAjaxObject.IndexType;IndexAjaxObject2.BrandType=IndexAjaxObject.BrandType;IndexAjaxObject2.ItemID=IndexAjaxObject.ItemID;IndexAjaxObject2.AjaxPath=IndexAjaxObject.AjaxPath;
IndexAjaxObject2.BrandType!="changshang"&&IndexAjaxObject2.BrandType!="pinpai"&&SetSaleDataMap(b,c)}else $("mapArea").innerHTML=""}
function SetIndexCitySortList(a,b,c){var d=new AjaxDataObj;d.IndexType=IndexAjaxObject.IndexType;d.BrandType=IndexAjaxObject.BrandType;d.ItemID=IndexAjaxObject.ItemID;d.AjaxPath=IndexAjaxObject.AjaxPath;d.PageElement=$("sortListUL");d.PageBlock="IndexItemSortList";d.DateType=a;d.DateYear=b;d.DateValue=c;d.SetIndexElement();if(d.IndexType=="xiaoliang"&&d.BrandType=="serial")if(d.DateType=="m")SetSaleDataMap(b,c);else $("mapArea").innerHTML=""}
function SetSaleDataMap(a,b){var c=new AjaxDataObj;c.IndexType=IndexAjaxObject.IndexType;c.BrandType=IndexAjaxObject.BrandType;c.ItemID=IndexAjaxObject.ItemID;c.AjaxPath=IndexAjaxObject.AjaxPath;c.PageElement=$("mapArea");c.PageBlock="SaleDataMap";c.DateType="m";c.DateYear=a;c.DateValue=b;c.SetIndexElement()}
function SetIndexFlash(a,b){IndexAjaxObject.DateType=a;IndexAjaxObject.CityID=b;var c=new AjaxDataObj;c.IndexType=IndexAjaxObject.IndexType;c.BrandType=IndexAjaxObject.BrandType;c.ItemID=IndexAjaxObject.CompareItemId;c.AjaxPath=IndexAjaxObject.AjaxPath;c.PageElement=$("indexFlash");c.PageBlock="IndexItemFlash";c.DateType=a;c.CityId=b;c.SetIndexElement()}
function SetMultiLineFlash(a,b){compareData.BaseItemData.ItemData=null;for(var c=0;c<compareData.CompareDataList.length;c++)compareData.CompareDataList[c].ItemData=null;IndexAjaxObject.CompareItemId=compareData.BaseItemData.ItemId;SetIndexFlash(a,b);for(c=0;c<compareData.CompareDataList.length;c++){IndexAjaxObject.CompareItemId=compareData.CompareDataList[c].ItemId;SetIndexFlash(a,b)}}
function SetListMoreForLevel(a,b,c){IndexAjaxObject.PageElement=$("ListMoreUL");IndexAjaxObject.PageBlock="indexListMore";IndexAjaxObject.DateType=a;IndexAjaxObject.DateYear=b;IndexAjaxObject.DateValue=c;GetIndexDataBySelect()}function SetListMoreTop10(a,b,c){IndexAjaxObject.PageElement=$("ListTop10Div");IndexAjaxObject.PageBlock="indexPage";IndexAjaxObject.DateType=a;IndexAjaxObject.DateYear=b;IndexAjaxObject.DateValue=c;GetIndexDataBySelect()}
function SetMediaIndex(a,b,c,d,e){IndexAjaxObject.PageElement=$(d);IndexAjaxObject.PageBlock=e;IndexAjaxObject.DateType=a;IndexAjaxObject.DateYear=b;IndexAjaxObject.DateValue=c;GetIndexDataBySelect()}
function GetIndexDataBySelect2(a){CookieForSelectDate.setCookie("userSelectDate",a.DateType+","+a.DateYear+","+a.DateValue);var b={parameters:"indexType="+a.IndexType+"&brandType="+a.BrandType+"&itemID="+a.ItemID+"&dateType="+a.DateType+"&dateValue="+a.DateValue+"&cityID="+a.CityID+"&dateYear="+a.DateYear+"&pageBlock="+a.PageBlock+"&levelSpell="+a.LevelSpell+"&"+Math.random(),method:"get",onSuccess:onAjaxSuccess2};new Ajax.Request(a.AjaxPath,b)}
function onAjaxSuccess2(a){if(IndexAjaxObject2.PageElement)if(a.responseText.length==0){if(IndexAjaxObject2.PageBlock!="IndexItemFlash")IndexAjaxObject2.PageElement.innerHTML=""}else if(IndexAjaxObject2.PageBlock=="IndexItemFlash")InsertFlashChart(IndexAjaxObject2.PageElement,a.responseText,680,200,"");else if(IndexAjaxObject2.PageBlock=="PieChart")InsertPieChart(IndexAjaxObject2.PageElement,a.responseText,308,254);else IndexAjaxObject2.PageElement.innerHTML=a.responseText}
function GetIndexDataBySelect(){CookieForSelectDate.setCookie("userSelectDate",IndexAjaxObject.DateType+","+IndexAjaxObject.DateYear+","+IndexAjaxObject.DateValue);var a={parameters:"indexType="+IndexAjaxObject.IndexType+"&brandType="+IndexAjaxObject.BrandType+"&itemID="+IndexAjaxObject.ItemID+"&dateType="+IndexAjaxObject.DateType+"&dateValue="+IndexAjaxObject.DateValue+"&cityID="+IndexAjaxObject.CityID+"&dateYear="+IndexAjaxObject.DateYear+"&pageBlock="+IndexAjaxObject.PageBlock+"&levelSpell="+IndexAjaxObject.LevelSpell+
"&"+Math.random(),method:"get",onSuccess:onAjaxSuccess};new Ajax.Request(IndexAjaxObject.AjaxPath,a)}function onAjaxSuccess(a){if(IndexAjaxObject.PageElement)if(a.responseText.length==0){if(IndexAjaxObject.PageBlock!="IndexItemFlash")IndexAjaxObject.PageElement.innerHTML=""}else if(IndexAjaxObject.PageBlock=="IndexItemFlash")InsertFlashChart2(IndexAjaxObject.PageElement,a.responseText,680,180,"");else IndexAjaxObject.PageElement.innerHTML=a.responseText}
function InsertFlashChart(a,b,c,d,e){b='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"width="100%" height="'+d+'"><param name="movie" value="/flash/SellDataChart.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent"><param name="FlashVars" value="datavalue='+b+"&counvalue="+e+"&FlashRight="+c+'&FlashLeft=15" /><embed src="/flash/SellDataChart.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash" width="'+
c+'" height="'+d+'" flashvars="datavalue='+b+"&counvalue="+e+"&FlashRight="+(c-10)+'&FlashLeft=15"></embed></object>';if(a)a.innerHTML=b}function InsertFlashChart2(a,b,c,d,e){a.innerHTML="";var f=new FusionCharts("http://js.bitauto.com/dealer/Report/FlashChart/Line.swf","IndexTendFlash",c+"px",d+"px","0","0","","noScale","EN");f.setTransparent(true);f.setDataXML(b);window.setTimeout(function(){f.render(a.id)},0.2)}
function InsertPieChart(a,b,c,d){var e=new FusionCharts("http://js.bitauto.com/dealer/Report/FlashChart/Pie2d.swf","",c,d,"0","0");e.setTransparent(true);e.setDataXML(b);window.setTimeout(function(){e.render(a.id)},0.2)}function addLoadEvent(a){var b=window.onload;window.onload=typeof window.onload!="function"?a:function(){b();a()}}
var CookieForSelectDate={setCookie:function(a,b){document.cookie=a+"="+encodeURIComponent(b)+"; path=/;domain=.bitauto.com"},getCookie:function(a){a=document.cookie.match(new RegExp("(^| )"+a+"=([^;]*)(;|$)"));if(a!=null)return decodeURIComponent(a[2]);return null},clearCookie:function(a){if(CookieForSelectDate.getCookie(a))document.cookie=a+"=;path=/;domain=.bitauto.com"}};
function IndexData(a,b){this.ItemId=a;this.ItemData=b;this.ColorData=null;this.ItemName="";this.SetItemData=function(c){var d=/\$Color\$/g;this.ItemData=c.replace(d,this.ColorData.Color);d=/\$serialName\$/g;this.ItemData=this.ItemData.replace(d,this.ItemName)};this.SetShowValue=function(c){this.ItemData=this.ItemData.replace(/\$ShowValue\$/g,c)}}function LineColor(a,b){this.Color=a;this.ClassName=b}
function IndexCompareObj(a){this.BaseItemData=new IndexData(0,null);this.BrandType=a;this.CompareDataList=[];this.SelectList=this.EventButton=this.BrandListElement=null;this.ColorList=[];this.NoticeLabel=null;this.NoticeStr="";this.InitIndexCompareObj=function(){this.EventButton=$("btnAddToCompare");this.SelectList=$("ddlSelector");this.BrandListElement=$("brandList");this.NoticeLabel=$("noticeLabel");var b=this;if(this.EventButton){this.EventButton.onclick=function(){b.AddItem()};this.EventButton.disabled=
false}this.BrandType=this.BrandType=="changshang"?"\u5382\u5546":this.BrandType=="pinpai"||this.BrandType=="brand"?"\u54c1\u724c":"\u5b50\u54c1\u724c";if(this.NoticeLabel)this.NoticeStr=this.NoticeLabel.innerHTML;this.ColorList.push(new LineColor("006600","c1"));this.ColorList.push(new LineColor("CC6600","c2"));this.ColorList.push(new LineColor("CC0066","c3"));this.BaseItemData.ColorData=new LineColor("4E82BF","")};this.GetUnUsedColor=function(){for(var b=null,c=0;c<this.ColorList.length;c++){for(var d=
this.ColorList[c],e=false,f=0;f<this.CompareDataList.length;f++)if(d.Color==this.CompareDataList[f].ColorData.Color){e=true;break}if(!e){b=d;break}}return b};this.AddItem=function(){this.SelectList||alert("\u672a\u627e\u5230\u6570\u636e\u63a7\u4ef6\uff01");var b=this.SelectList.options[this.SelectList.options.selectedIndex].value;if(b==0)alert("\u8bf7\u9009\u62e9\u4e00\u4e2a"+this.BrandType+"!");else if(b==this.BaseItemData.ItemId)alert("\u4e0e\u672c"+this.BrandType+"\u4e00\u6837\uff0c\u4e0d\u80fd\u6bd4\u8f83\uff01");
else{for(var c=0;c<this.CompareDataList.length;c++)if(b==this.CompareDataList[c].ItemId){alert("\u6b64"+this.BrandType+"\u5df2\u7ecf\u52a0\u8fc7\u4e86\uff01");return}c=this.SelectList.options[this.SelectList.options.selectedIndex].text;if(this.BrandType!="\u5b50\u54c1\u724c")c=c.substr(2);var d=new IndexData(b,null);d.ColorData=this.GetUnUsedColor();d.ItemName=c;this.CompareDataList.push(d);var e=document.createElement("li");e.className=d.ColorData.ClassName;e.id="liItem_"+b;e.innerHTML=c+'<em onclick="compareData.DeleteItem('+
b+');">[\u5220\u9664]</em>';this.BrandListElement.appendChild(e);if(this.CompareDataList.length>=3){this.EventButton.disabled=true;this.EventButton.className="btn disable";if(this.NoticeLabel)this.NoticeLabel.innerHTML="\u6700\u591a\u5bf9\u6bd44\u9879\uff0c\u8bf7\u5220\u9664\u540e\u91cd\u65b0\u6dfb\u52a0\u3002"}IndexAjaxObject.CompareItemId=b;SetIndexFlash(IndexAjaxObject.DateType,IndexAjaxObject.CityID)}};this.DeleteItem=function(b){for(var c=[],d=0;d<this.CompareDataList.length;d++)this.CompareDataList[d].ItemId!=
b&&c.push(this.CompareDataList[d]);this.CompareDataList=c;(b=$("liItem_"+b))&&b.parentNode.removeChild(b);if(this.CompareDataList.length<3){this.EventButton.disabled=false;this.EventButton.className="btn";if(this.NoticeLabel)this.NoticeLabel.innerHTML=this.NoticeStr}b=new AjaxDataObj;b.PageElement=$("indexFlash");b.InsertFlashChart(710,252)}}var compareData=null;
function InitSelectList(){var a=new AjaxDataObj;a.IndexType=IndexAjaxObject.IndexType;a.BrandType=IndexAjaxObject.BrandType;a.ItemID=IndexAjaxObject.ItemID;a.AjaxPath=IndexAjaxObject.AjaxPath;if(a.BrandType=="serial"){a.BrandType="pinpai";a.PageElement=$("ddlSelectMaster");a.PageElement.onchange=InitSerialSelectList}else a.PageElement=$("ddlSelector");a.PageBlock="selectList";a.DateType=a.IndexType=="meiti"?"s":"m";a.SetSelectList();compareData=new IndexCompareObj(IndexAjaxObject.BrandType);compareData.InitIndexCompareObj();
compareData.BaseItemData.ItemId=IndexAjaxObject.ItemID;compareData.BaseItemData.ItemName=IndexAjaxObject.ItemName}function InitSerialSelectList(){var a=$("ddlSelectMaster");if(a){a=a.options[a.options.selectedIndex].value;var b=new AjaxDataObj;b.IndexType=IndexAjaxObject.IndexType;b.BrandType="serial";b.ItemID=a;b.AjaxPath=IndexAjaxObject.AjaxPath;b.PageElement=$("ddlSelector");b.PageBlock="selectList";b.DateType="m";b.SetSelectList()}}
var cityDic={city0:{Id:"0",Name:"\u5168\u56fd",Spell:"quanguo"},city201:{Id:"201",Name:"\u5317\u4eac",Spell:"beijing"},city2401:{Id:"2401",Name:"\u4e0a\u6d77",Spell:"shanghai"},city501:{Id:"501",Name:"\u5e7f\u5dde",Spell:"guangzhou"},city502:{Id:"502",Name:"\u6df1\u5733",Spell:"shenzhen"},city301:{Id:"301",Name:"\u798f\u5dde",Spell:"fuzhou"},city801:{Id:"801",Name:"\u6d77\u53e3",Spell:"haikou"},city601:{Id:"601",Name:"\u5357\u5b81",Spell:"nanning"},city1501:{Id:"1501",Name:"\u5357\u4eac",Spell:"nanjing"},
city1502:{Id:"1502",Name:"\u82cf\u5dde",Spell:"suzhou"},city3001:{Id:"3001",Name:"\u676d\u5dde",Spell:"hangzhou"},city3002:{Id:"3002",Name:"\u5b81\u6ce2",Spell:"ningbo"},city101:{Id:"101",Name:"\u5408\u80a5",Spell:"hefei"},city1001:{Id:"1001",Name:"\u90d1\u5dde",Spell:"zhengzhou"},city1601:{Id:"1601",Name:"\u5357\u660c",Spell:"nanchang"},city1201:{Id:"1201",Name:"\u6b66\u6c49",Spell:"wuhan"},city1301:{Id:"1301",Name:"\u957f\u6c99",Spell:"changsha"},city2501:{Id:"2501",Name:"\u6210\u90fd",Spell:"chengdu"},
city3101:{Id:"3101",Name:"\u91cd\u5e86",Spell:"chongqing"},city2901:{Id:"2901",Name:"\u6606\u660e",Spell:"kunming"},city701:{Id:"701",Name:"\u8d35\u9633",Spell:"guiyang"},city2301:{Id:"2301",Name:"\u897f\u5b89",Spell:"xian"},city401:{Id:"401",Name:"\u5170\u5dde",Spell:"lanzhou"},city1901:{Id:"1901",Name:"\u94f6\u5ddd",Spell:"yinchuan"},city2801:{Id:"2801",Name:"\u4e4c\u9c81\u6728\u9f50",Spell:"wulumuqi"},city2701:{Id:"2701",Name:"\u62c9\u8428",Spell:"lasa"},city2001:{Id:"2001",Name:"\u897f\u5b81",
Spell:"xining"},city2201:{Id:"2201",Name:"\u592a\u539f",Spell:"taiyuan"},city901:{Id:"901",Name:"\u77f3\u5bb6\u5e84",Spell:"shijiazhuang"},city2101:{Id:"2101",Name:"\u6d4e\u5357",Spell:"jinan"},city2102:{Id:"2102",Name:"\u9752\u5c9b",Spell:"qingdao"},city2601:{Id:"2601",Name:"\u5929\u6d25",Spell:"tianjin"},city1401:{Id:"1401",Name:"\u957f\u6625",Spell:"changchun"},city1701:{Id:"1701",Name:"\u6c88\u9633",Spell:"shenyang"},city1708:{Id:"1708",Name:"\u5927\u8fde",Spell:"dalian"},city1101:{Id:"1101",
Name:"\u54c8\u5c14\u6ee8",Spell:"haerbin"},city1801:{Id:"1801",Name:"\u547c\u548c\u6d69\u7279",Spell:"huhehaote"}};function GetCookie(){var a=CookieForSelectDate.getCookie("indexCityId");a||(a="0");a=parseInt(a);var b=document.getElementById("spanCity");if(a>0){IndexAjaxObject.CityID=a;var c="city"+a;if(cityDic[c]){if(b)b.innerText=cityDic[c].Name;SetIndexNavUrl(a)}}else{if(b)b.innerText="\u5168\u56fd";SetIndexNavUrl(0)}}
function SetIndexNavUrl(a){var b=cityDic["city"+a].Spell,c=document.getElementById("NavHome");if(c)c.href=a==0?"/":"/"+b+"/";if(c=document.getElementById("NavGuanzhu"))c.href=a==0?"/guanzhu/":"/guanzhu/"+b+"/";if(c=document.getElementById("NavDuibi"))c.href=a==0?"/duibi/":"/duibi/"+b+"/";if(c=document.getElementById("NavGouche"))c.href=a==0?"/gouche/":"/gouche/"+b+"/";if(c=document.getElementById("NavXiaoliang"))c.href=a==0?"/xiaoliang/":"/xiaoliang/"+b+"/"}
function RedirectUrl(){if(CookieForSelectDate.getCookie("indexCityId")==null)if(bit_locationInfo){var a=cityDic["city"+bit_locationInfo.cityId];if(a){var b=a.Spell;location.href="/"+a.Spell+"/"}}};

