function popAds(adIndex, e){var adUrl = document.getElementById("al" + adIndex);if(!adUrl)return;var srcId;if(e.target){srcId = e.target.id;if(srcId.substr(2, srcId.length) == adIndex && srcId != 'as'+adIndex){popWindow(adUrl.href,'',800,600);}} else {srcId = e.srcElement.id;if(srcId.substr(2, srcId.length) == adIndex && srcId != 'as'+adIndex){popWindow(adUrl.href,'',800,600);}}return false;}function $(id){return document.getElementById(id)};function getElementsByClassName(className,oBox){var o=$(oBox)||document;var children=o.getElementsByTagName("*");var cs=new Array();for(var i=0;i<children.length;i++){var child=children[i];var classNames=child.className.split(" ");for(var j=0;j<classNames.length;j++){if(classNames[j]==className){cs.push(child);break}}}return cs}function popWindow(url,name,w,h){newwindow=window.open(url,name,"height="+h+",width="+w+",resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar=yes,location=yes");if(window.focus){newwindow.focus()}return false}function getOpenads(file){if(typeof(AdsInfo)=="undefined"||AdsInfo.length==0){return}adsArray=new Array();var u="",i=0,url,s;for(i in AdsInfo){if(i>0){u+=","}u+=AdsInfo[i][0]+"-"+AdsInfo[i][1];adsArray[AdsInfo[i][0]]=new Array()}url=file+"?what="+u;s=document.createElement("script");s.src=url;s.type="text/javascript";s.language="javascript";document.getElementsByTagName("head")[0].appendChild(s);if(typeof(document.all)!="undefined"){s.onreadystatechange=function(){if("loaded"==s.readyState||"complete"==s.readyState){setOpenads()}}}else{s.onload=function(){setOpenads()}}}function setOpenads(){if(typeof(AdsInfo)=="undefined"||!AdsInfo.length){return}var adId,mod,adDiv,arrAds,parentDiv,relAdsenseDiv,adBlockClass,adBlockHtml1,adBlockHtml2,i,j,arrParentShow=new Array(),arrRelAdsenseShow=new Array(),pDiv,rDiv;for(i in AdsInfo){adId=AdsInfo[i][0];if(typeof(adsArray[adId])=="undefined"){return}mod=AdsInfo[i][1];parentDiv=AdsInfo[i][2];relAdsenseDiv=AdsInfo[i][3];adBlockClass=AdsInfo[i][4];adDiv=$("ad"+adId);if(typeof(adDiv)!="undefined"){adDiv.innerHTML=""}else{return}if(parentDiv.length>0&&arrParentShow[parentDiv]!=true){arrParentShow[parentDiv]=false}if(relAdsenseDiv.length>0&&arrRelAdsenseShow[relAdsenseDiv]!=false){arrRelAdsenseShow[relAdsenseDiv]=true}adBlockHtml1=adBlockClass?'<div class="'+adBlockClass+'">':"";adBlockHtml2=adBlockClass?"</div>":"";if(mod==1){arrAds=adsArray[adId];for(j in arrAds){adDiv.innerHTML+=adBlockHtml1+arrAds[j]+adBlockHtml2;if(arrAds[j].length>0&&parentDiv.length>0){arrParentShow[parentDiv]=true}if(arrAds[j].length>0&&relAdsenseDiv.length>0){arrRelAdsenseShow[relAdsenseDiv]=false}}}else{adDiv.innerHTML=adBlockHtml1+adsArray[adId]+adBlockHtml2;if(adsArray[adId].length>0&&parentDiv.length>0){arrParentShow[parentDiv]=true}if(adsArray[adId].length>0&&relAdsenseDiv.length>0){arrRelAdsenseShow[relAdsenseDiv]=false}}adDiv.style.display=adDiv.innerHTML?"":"none"}for(i in arrParentShow){pDiv=$(i);if(typeof(pDiv)!="undefined"&&/hidable/.test(objGetClass(pDiv))){pDiv.style.display=arrParentShow[i]?"":"none"}}for(i in arrRelAdsenseShow){rDiv=$(i);if(rDiv&&typeof(rDiv)!="undefined"){rDiv.style.display=arrRelAdsenseShow[i]?"":"none"}}}function setListTopAdsense(google_ads,start,end,title){_setAdsenseDisplayWithID(google_ads,"listTopAdsense",start,end,title)}function setListTableTopAdsense(google_ads,start,end){_setAdsenseDisplayWithID(google_ads,"listTableTopAdsense",start,end)}function setListBottomAdsense(google_ads,start,end,title){_setAdsenseDisplayWithID(google_ads,"listBottomAdsense",start,end,title)}function setListTableBottomAdsense(google_ads,start,end){_setAdsenseDisplayWithID(google_ads,"listTableBottomAdsense",start,end)}function setListSidebarAdsense(google_ads,start,end,title,hideUrlFlag,style){_setAdsenseDisplayWithID(google_ads,"listSidebarAdsense",start,end,title,hideUrlFlag,style)}function setSearchTopAdsense(google_ads,start,end){_setAdsenseDisplayWithID(google_ads,"searchTopAdsense",start,end)}function setSearchBottomAdsense(google_ads,start,end){_setAdsenseDisplayWithID(google_ads,"searchBottomAdsense",start,end)}function _setAdsenseDisplayWithID(google_ads,id,start,end){if(google_ads.length==0||start>=end||start+1>google_ads.length){return}var title=arguments[4]?arguments[4]:"";var hideUrlFlag=arguments[5]?arguments[5]:false;var style=arguments[6]?arguments[6]:false;var s=_setAdsenseDisplay(google_ads,start,end,title,hideUrlFlag,style);if(s!=null){var element=document.getElementById(id);if(element!=null){element.innerHTML=s}}}function _setAdsenseDisplay(google_ads,start,end,title,hideUrlFlag,style){var s="",i,a,c,pic="";if(google_ads.length==0||start>=end){return}if(end>google_ads.length){end=google_ads.length}var adsense_style=adsense_style==undefined?"list_text":adsense_style;if(!title&&typeof(adsense_title)!="undefined"){title=adsense_title}if(!$("listTableTopAdsense")){pic='<img height="60" width="80" src="http://www.hx2car.com/images/20036.jpg" class="i" />'}if(!style){s+='<div class="'+adsense_style+'"><div class="title">'+title+"</div>"}else{s+="<h3><span>"+title+"</span></h3>"}s+='<div class="clear"></div>';for(i=start;i<end;i++){a='<a href="'+google_ads[i].url+'" id="al'+i+'" target=_blank>';if(!style){c=(i%2==0)?"ad":"ad alt";s+='<div class="'+c+'" onmouseover="this.style.background=\'#f5f5f5\';" onmouseout="this.style.background=\'\'" id="ad'+i+'">'+pic}else{s+='<div class="listInfo" id="ad'+i+'">'}s+='<span class="t"  id="as'+i+'">'+a+google_ads[i].line1+"</a></span>";s+='<p class="d" id="ap'+i+'">'+google_ads[i].line2+" "+(google_ads[i].line3?google_ads[i].line3:"")+"<br />";if(!hideUrlFlag){s+=a+"<small id=am"+i+">"+google_ads[i].visible_url+"</small></a>"}s+="</p></div>"}s+='</div><div class="clear"></div>';if(getElementsByClassName("tite").length==0){s+='<div class="sptr"></div>'}else{s+='<div style="height:2px;overflow:hidden"></div>'}return s}function setHref(obj,event,url){var userAgentInfo,rightClick=false;userAgentInfo=window.navigator.userAgent.toLowerCase();if((userAgentInfo.indexOf("msie")>0&&event.button!=1)||(userAgentInfo.indexOf("msie")==0&&event.button==2)){rightClick=true}obj.href=rightClick?url:"#"};