 function showLocSelect(k)
  {
	var locvalue=k;
	var locdiv=getElement("cValue").value;
	if(locdiv==null || locdiv=="" || locvalue=="" || locvalue==null){
		getElement("cValue").value=Tab01Con1;		
	}
	getElement("cValue").value="Tab01Con"+k;	
}
function hideLocSelect()
{	
	getElement("locListDiv").style.display="none";
}
function getElement(aID)
{
  return (document.getElementById) ? document.getElementById(aID)
                                   : document.all[aID];
}


function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
  endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0; 
  while (i < clen) {
    var j = i + alen;	
    if (document.cookie.substring(i, j) == arg)		 
      return getCookieVal (j);	  
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0)
       break;
  }
  return "";
}
function SetCookie(cookieName,nDays,cityname) {
 var cookieValue=getElement("cValue").value;
 if (cookieValue==null || cookieValue==""){cookieValue="Tab01Con1";}
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays); 
 document.cookie = cookieName+"="+escape(cookieValue) + ";path=/;expires="+expire.toGMTString();
 setLocNews(cityname); 
 setTab01Syn(cookieValue.substring(8,10));
 alert('定制成功，谢谢');
// hideLocSelect();
}
 function setLocNews(locstr){
	var l=getElement("locbar");	
	l.innerHTML=locstr+"";
}
 function setTab01Syn(k)
	{
	
		var xjwaitInterval;
	
	var MouseDelayTime1=150;//鼠标感应延迟300毫秒
					//alert("aa");
					var idstr="tb"+k;	
					_gObj(idstr).onmouseout=function(aEvent)
					{	 
						//alert();
					      //alert(idstr);
						  clearTimeout(xjwaitInterval);
						  //alert(xjwaitInterval);
				    }
			    	clearTimeout(xjwaitInterval);
					
					var str="setTab01Syn1("+k+")";
					//alert(str);					
					xjwaitInterval=setTimeout(str,MouseDelayTime1);
	}

 function setTab01Syn1(k)
	{
		for (var i=1;i<15;i++)
			 
		  {
			 getElement("Tab01Con"+i).style.display="none";			 
			 getElement("tb"+i).className="";
		  }
			getElement("Tab01Con"+k).style.display="block";			 
			getElement("tb"+k).className="djh";
			setLocNews(getCity(k));
			showLocSelect(k);
	  }
		  
  function getCity(k)
   {
	   
	 var city = new Array("北京","上海","广州","成都","武汉","西安","沈阳","南京","郑州","济南","长沙","深圳","昆明","杭州");
	 if (k<=14){	  
	       //alert(city[k-1]);
			return city[k-1];
		 }
		 return "北京";
	 }
	

window.onerror=function(){return true}
