function FF_kind(targ,selObj,restore)
{ 
	
		eval(targ+".location='radar_area.php?kind="+selObj.options[selObj.selectedIndex].value+"'");
  		if (restore) selObj.selectedIndex=0;
 
}
function FF_top_kind(targ,selObj,restore)
{ 
	
		eval(targ+".location='radar.php?kind="+selObj.options[selObj.selectedIndex].value+"'");
  		if (restore) selObj.selectedIndex=0;
 
}

 function getid()
 {
 var info = document.getElementById("city3");
 var std = info.options[info.selectedIndex].text;
 eval("this.location='radar_station.php?station="+std+"'");

  }
  
function radar_getid(eco)
 {
 var info = document.getElementById("city3");
 var std = info.options[info.selectedIndex].text;
 var class1="JC_RADAR_"+std+"_"+eco;
 eval("this.location='radar_video.php?class="+class1+"'");

  }
  /*
  function radar_getid_test(eco)
 {
		var m=document.getElementById("aaa").innerHTML;
		if(m=="停止")
			v="1";
		else
			v="0";
		var n=document.getElementById("bbb").innerHTML;
		if(n=="停止")
			v1="1";
		else
			v1="0";	
	var info = document.getElementById("city3");
	var std = info.options[info.selectedIndex].text;
	var class1="JC_RADAR_"+std+"_"+eco;
	eval("this.location='radar_video_test.php?class="+class1+"&v="+v+"&v1="+v1+"'");

  }
  */
  function ld_home_getid()
 {
 var info = document.getElementById("city3");
 var std = info.options[info.selectedIndex].text;
 var class1="JC_RADAR_"+std+"_JB";
 //eval("this.location='radar_video.php?class="+class1+"'");
   //   window.open("http://www.weather.com.cn/static/radar_video.php?class="+class1+"");
  window.location="http://www.weather.com.cn/static/radar_video_v1.php?class="+class1+"";
  }
 
function ld_home_getid1()
 {
 var info = document.getElementById("cityc3");
 var std = info.options[info.selectedIndex].text;
 var class1="JC_RADAR_"+std+"_JB";
 //eval("this.location='radar_video.php?class="+class1+"'");
 //window.open("http://www.weather.com.cn/static/radar_video.php?class="+class1+"");
window.location="http://www.weather.com.cn/static/radar_video_v1.php?class="+class1+"";
  }
//公告切换
function show(object_id)
{
object = document.getElementById(object_id);
object.style.display='block';
}
function hide(object_id)
{
object = document.getElementById(object_id);
object.style.display='none';
}



//标签切换
var GO = function(elemId)
	{
		return document.getElementById(elemId);
	}
	function menu(mid,idx)
	{
		class_name = 'menu_0' + idx;	
		GO("m_"+mid+"_"+idx).className = class_name + ' on';
		GO("c_"+mid+"_"+idx).style.display = "";
		for(var i=1;i<9;i++)
		{
			class_name = 'menu_0' + i;	
			if(!GO("m_"+mid+"_"+i)) continue;
			if(i != idx)
			{
				GO("m_"+mid+"_"+i).className = class_name;
				GO("c_"+mid+"_"+i).style.display = "none";
			}
		}
	}	
	function menu2(mid,idx)
	{
		class_name = 'menu2_0' + idx;	
		GO("m2_"+mid+"_"+idx).className = class_name + ' on';
		GO("c2_"+mid+"_"+idx).style.display = "";
		for(var i=1;i<10;i++)
		{
			class_name = 'menu2_0' + i;	
			if(!GO("m2_"+mid+"_"+i)) continue;
			if(i != idx)
			{
				GO("m2_"+mid+"_"+i).className = class_name;
				GO("c2_"+mid+"_"+i).style.display = "none";
			}
		}
	}

function menu_ptime(ptime,class1,pic,num,num1)
{
		//alert("ab"+num+"   /"+pic);
	document.getElementById("abc"+num1).innerText="更新时间："+ptime;
	document.getElementById("bcd"+num1).href="/static/radar_video_v1.php?class="+class1;
	document.getElementById("ab"+num).src=pic;

}
