/*---------------------------------------- 页面通用js -----------------------------------------*/ /* 页面位置定义 */ document.write( unescape("%3Cscript src='/skin/default/js/common.js' type='text/javascript'%3E%3C/script%3E") ); headerInit = function( hostAreaCode ) { newHeadInit(hostAreaCode); HeadDropList.init(); newMapInit("web_service"); NavSelectWhere(); return; } footerInit = function( LandTuStatus, kfNoShowFlag ) { document.write( unescape("%3Cscript src='/skin/default/js/jquery-1.8.3.min.js' type='text/javascript'%3E%3C/script%3E") ); searchObjInit(); SetReferer(); if( LandTuStatus!=1 ) { } return; } var _indexT = null; function newHeadInit(AreaCode) { hostAreaCode = AreaCode; try{ getElementById("city").onmouseover = function() { clearTimeout(_indexT); getElementById('citys').className = ''; } getElementById("city").onmouseout = function() { _indexT=setTimeout("getElementById('citys').className = 'dpn'",1000); } getElementById("citys").onmouseover = function() { this.className = ''; clearTimeout(_indexT); } getElementById("citys").onmouseout = function() { this.className = 'dpn'; } var tempObj = getElementById("cityC").getElementsByTagName("h1"); if(tempObj.length>0) { tempObj[0].style.cursor = "pointer"; } }catch(e){} return; } //新头部下拉菜单 var HeadDropList = { showDiv : null, showType : 0, //1首页模式 0其他 contentDiv : null, currId : 0, timer : null, second : 100, //隐藏延时 city_num : 1, //城市 divList : [], contentList : [], cateContent : '', init : function(){ if(city_num>0) this.city_num = city_num; if(typeof(_pageIndex)!='undefined' && _pageIndex==1){ if(!getElementById('cateMapD')) return; this.showType = 1; } if(!getElementById('_cateMapDiv')) return; this.cateContent = getElementById('_cateMapDiv').innerHTML; // getElementById('_cateMapDiv').style.display=''; // return; var cList = getElementById('_cateDetail').getElementsByTagName('DIV'); index = 0; for(i=0;i'+indexCateList[id]["title"]+'

'; var itemArr = indexCateList[id]["itemArr"]; var len = 0; for(var i in itemArr){ if(itemArr[i]["city"] && itemArr[i]["city"].substring(num,num+1)!='1') continue; len += itemArr[i]["title"].length+1; if(len>12){ str += '
'; len = itemArr[i]["title"].length + 1; } str += ''+itemArr[i]["title"]+''; } str += ''; } str += '

'; str += '
'; return str; }, showCateList : function(){ if(this.currId<0) return; var id = this.currId; this.contentDiv.innerHTML = this.contentList[id]; this.contentDiv.style.display = 'block'; return; } }