﻿

         function sellay(Num,Count,Name)
         {
		     for(var id = 0;id<Count;id++)
		     {
		       var TabContent=Name+id;
		       var Tab="T"+Name+id;
		       if(id==Num)
		       {
		           document.getElementById(TabContent).style.display="block";
		           document.getElementById(Tab).className="active";
		       }
		       else
		       {
		           document.getElementById(TabContent).style.display="none";
		           document.getElementById(Tab).className="";
		       }
		     }
		}
		
		//天气状况
		function Scene(Num)
		{
		 sellay(Num,4,"Scene");
		 
		 if(Num==1)
		 {
		   if($("surf1").src=="")
		   {
		    $("surf1").src="http://flash.weather.com.cn/guangdong/zhyj/guangdong.htm";
		   }
		 }
		 
		  if(Num==2)
		 {
		   if($("surf2").src=="")
		   {
		    $("surf2").src="http://flash.weather.com.cn/wmaps/index.swf?url1=http:%2F%2Fwww.weather.com.cn%2Fweather%2F&url2=.shtml&id=guangdong&from=guangdong";
		   }
		 }
		 
		  if(Num==3)
		 {
		   if($("surf3").src=="")
		   {
		    $("surf3").src="http://www.weather.com.cn/guangdong/tqsk/tqsk_4pic.shtml";
		   }
		 }
		 
		}
		
		//应急
		function Emergency(Num)
		{
		  sellay(Num,3,"Emergency");
		}
		
		//气候
		function Weather(Num)
		{
		 sellay(Num,2,"Weather");
		}
		
