function Init(filter)
{
		if (filter==1)
		{
			timeshow();
		}
		if (filter==2)
		{
			playerpath();
		}
		if (filter==3)
		{
			timeshow();
			playerpath();
		}
	}
function timeshow()
{
	var mydate = new Date();
		var datestring  = new String(mydate.toDateString());
		var full_show = new String();
	
		//定义显示元素
		var day_show   = new String();
		var week_show  = new String();
		var month_show = new String();
		var year_show  = new String();
	
		//GET VALUE
		day_show   = mydate.getDate();
		week_show  = datestring.slice(0,3);
		month_show = datestring.slice(4,7);
		year_show  = mydate.getFullYear();
	
		//设置显示格式 
		full_show =week_show + " " + month_show + ". " + day_show + ", " + year_show;
				
		//divdate为<div>的ID
		divdate.innerHTML =  full_show;
}
function playerpath()
{
	//alert(Layer1.outerText);
		player.URL="mms://218.244.243.30/"+Layer1.outerText;
}
var openandclose=true;
function playfm()
{
	if (openandclose==false)
	{
		fm915.controls.play();
		openandclose=true;
	}
}
function stopfm()
{
	if(openandclose==true)
	{
		fm915.controls.stop();
		openandclose=false;
	}
}
var state=false;
function play()
{
	
if (state==false)
		{
				
				IMG.src="/images/content_pause.gif";
				player.controls.play();
				state=true;
				
		}
		else
		{
				IMG.src="/images/content_play.gif";
				player.controls.stop();
				state=false;
				
		}
}
function finish()
{
	state==false;
	IMG.src="/images/content_play.gif";
	}
function display(NewState)
{
	 switch (NewState){
	 case 1:
	 divStatus.innerHTML="";
	 break;
   	 case 3:
    	 divStatus.innerHTML="Playing...";
   	 break;
   	 case 6:
    	 divStatus.innerHTML="Buffering...";
 	 break;
 	 case 7:
 	 divStatus.innerHTML="Waiting...";
 	 break;
	 case 8:
	 finish();
 	 divStatus.innerHTML="";
	 break;
	 case 9:
	 divStatus.innerHTML="Transitioning...";
	 break;
 	 case 10:
  	 divStatus.innerHTML="Ready";
   	 break;
  	 default:
  	 break;
    }
    
	}
function display_fm(NewState)
{
	 switch (NewState){
	 case 1:
	 viewstatus.innerHTML="";
	 break;
   	 case 3:
    	 viewstatus.innerHTML="Playing...";
   	 break;
   	 case 6:
    	 viewstatus.innerHTML="Buffering...";
 	 break;
 	 case 7:
 	 viewstatus.innerHTML="Waiting...";
 	 break;
	 case 8:
	 viewstatus.innerHTML="";
	 break;
	 case 9:
	 viewstatus.innerHTML="Transitioning...";
	 break;
 	 case 10:
  	 viewstatus.innerHTML="Ready";
   	 break;
  	 default:
  	 break;
    }
    
	}
 function sendmail(Turl,Ttitle)
 {
  var strHost
  strHost = window.location.host
  var s = Turl.indexOf("http");
  
  if(s == -1) {
  	Turl = "http://" + strHost + Turl;
  }
  window.open ("http://203.93.124.63/newsmail.asp?url="+Turl+"&title="+Ttitle,"SendMail","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=480,height=350")
 }
 
 function gaojian(Tid,Ttitle,ztFlag,Lastdate,Bid,Url)
 {
  var strHost
  strHost = window.location.host
  var s = Url.indexOf("http");
  
  if(s == -1) {
  	Url = "http://" + strHost + Url;
  }
  window.open ("http://10.7.1.223:8080/commentary/gaojian1.5.asp?id="+Tid+"&title="+Ttitle+"&ztflag="+ztFlag+"&lastdate="+Lastdate+"&bid="+Bid+"&url="+Url,"Speak","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=400")
 }
 function copyright()
{
	document.write("<table width='778' height='197' border='0' align='center' cellpadding='0' cellspacing='0'><tr bgcolor='#FFFFFF'><td height='28' align='center' class='12hx'><hr size='1' color='#C1C1C1'>Channel Producer: Kong Xiaoling&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pagemaker: Wang Dandan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Web Designer: Avida<hr size='1' color='#C1C1C1'></td></tr><tr bgcolor='#FFFFFF'><td height='47' align='center' class='menu2'>Home&nbsp;&nbsp;|&nbsp;&nbsp;<a class='menu2' href='/news/'>News</a>&nbsp;&nbsp;|&nbsp;&nbsp;Channels&nbsp;&nbsp;|&nbsp;&nbsp;<a class='menu2' href='/job.htm'>Job Vacancy</a>&nbsp;&nbsp;|&nbsp;&nbsp;Programming &nbsp;&nbsp;|&nbsp;&nbsp;Ad Rate&nbsp;&nbsp;|&nbsp;&nbsp;<a class='menu2' href='/about/intro.htm'>About  us</a></td></tr><tr bgcolor='#FFFFFF'><td align='center' valign='top' class='copyright'>&copy; Copyright by <a href='http://www.crienglish.com' target='_blank' class='copyright'>CRIENGLISH.com</a>, 1998--2003.</td></tr></table>");
	}
	
function menu1()
{
	document.write("<table width='778' height='36' border='0' align='center' cellpadding='0' cellspacing='0'><tr><td width='169' valign='top' background='/images/index_01.gif'><a href='http://www.cri.com.cn' target='_blank'><img src='/images/cri_logo.gif' width='133' height='35' border='0'></a></td><td width='405' background='/images/index_01.gif' class='menutext9'><img src='/images/index_02.gif' width='14' height='10' align='absmiddle'><a id=menu1 href='#' class='menu'>Home</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src='/images/index_02.gif' width='14' height='10' align='absmiddle'><a id=menu2 href='/news/' class='menu'>News</a>&nbsp;&nbsp;&nbsp;<img src='/images/index_02.gif' width='14' height='10' align='absmiddle'><a id=menu4 href='#' class='menu'>My CRI</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src='/images/index_02.gif' width='14' height='10' align='absmiddle'><a id=menu5 href='/about/intro.htm' class='menu'>About Us</a>&nbsp;&nbsp;&nbsp;&nbsp;<img src='/images/index_02.gif' width='14' height='10' align='absmiddle'><a id=menu6 href='/job.htm' class='menu'>Job Vacancy</a></td><td width='204' align='center' background='/images/index_01.gif' class='menutext9'><select onChange='javascript:window.open(this.options[this.selectedIndex].value)'><option>Select by Language&nbsp;&nbsp;</option><option value=http://arabic.cri.com.cn/> Arabic </option><option value=http://bulgarian.cri.com.cn/> Bulgarian</option><option value=http://online.cri.com.cn/> Chinese </option><option value=http://esperanto.cri.com.cn/> Esperanto </option><option value=http://ph.chinabroadcast.cn/> Filipino </option><option value=http://francais.cri.com.cn/> French </option><option value=http://germany.cri.com.cn/> German </option><option value=http://ha.chinabroadcast.cn/> Hausa </option><option value=http://hu.chinabroadcast.cn/> Hungarian </option><option value=http://indonesian.cri.com.cn/> Indonesian </option><option value=http://italian.cri.com.cn/> Italian </option><option value=http://japanese.cri.com.cn/> Japanese </option><option value=http://korean.cri.com.cn/> Korean </option><option value=http://my.chinabroadcast.cn/> Malay </option><option value=http://mn.chinabroadcast.cn/> Mongolian </option><option value=http://pl.chinabroadcast.cn/> Polish </option><option value=http://portugues.cri.com.cn/> Portuguese </option><option value=http://romanian.cri.com.cn/> Romanian </option><option value=http://russian.cri.com.cn/> Russian </option><option value=http://yu.chinabroadcast.cn/> Serbian </option><option value=http://espanol.cri.com.cn/> Spanish </option><option value=http://th.chinabroadcast.cn/> Thai </option><option value=http://vietnamese.cri.com.cn/> Vietnamese </option><option value=http://online.cri.com.cn/radio4u/> Radio4U </option></select></td></tr></table><table width='778' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#000000' class='12w'><tr><td width='94'><img src='/images/menu01.gif' width='94' height='32'></td><td width='683'>&nbsp;&nbsp;<a href='/radio/index.htm' class='12w'>Radio</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='/culture/index.htm' class='12w'>Culture</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href='/pictures/index.htm' class='12w'>Pictures</a>&nbsp;&nbsp;|&nbsp;&nbsp;Information&nbsp;&nbsp;|&nbsp;&nbsp;Travel&nbsp;&nbsp;|&nbsp;&nbsp;Business&nbsp;&nbsp;…&nbsp;&nbsp;</td><td width='10'><a href='http://www.crienglish.com' target='_blank'><img src='/images/crienglishlogo.gif' width='202' height='32' border='0'></a></td></tr></table>");
	}
	
function tool()
{
	document.write("<img src='/information/images/content_p.gif' width='27' height='20'>&nbsp;<a href='javascript:window.print ()' class='per'>Print</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src='/information/images/content_e.gif' width='27' height='20'>&nbsp;<a href='mailto:crieng@cri.com.cn' class='per'>E-mail</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
	}
	
function studylink()
{
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td align='center'><strong><font color='#FFFFFF'>partners</font></strong></td></tr><tr><td align='center'>&nbsp;</td></tr><tr><td align='center'><a href='http://www.crienglish.com/' class='12w'>CRI English</a></td></tr><tr><td align='center'>&nbsp;</td></tr><tr><td align='center'><a href='http://www.english.ac.cn/' class='12w'>Voice of English</a></td></tr></table>");
	}
		
function traffic()
{
	document.write("<iframe src=/information/trafficleft.htm width=169 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

function study1()
{
	document.write("<iframe src=/information/studyleft1.htm width=159 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

function study2()
{
	document.write("<iframe src=/information/studyleft2.htm width=159 height=300 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

function study3()
{
	document.write("<iframe src=/information/studyleft3.htm width=159 height=200 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}
	
function health1()
{
	document.write("<iframe src=/information/healthleft1.htm width=169 height=300 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

function health2()
{
	document.write("<iframe src=/information/healthleft2.htm width=169 height=300 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

function shopping1()
{
	document.write("<iframe src=/information/shoppingleft1.htm width=169 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

function shopping2()
{
	document.write("<iframe src=/information/shoppingleft2.htm width=169 height=300 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

function leisureleft()
{
	document.write("<iframe src=/information/leisureleft.htm width=169 height=650 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

function travel1()
{
	document.write("<iframe src=/information/travelleft1.htm width=180 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}
	
function travel2()
{
	document.write("<iframe src=/information/travelleft2.htm width=180 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}
	
function travel3()
{
	document.write("<iframe src=/information/travelleft3.htm width=179 height=280 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}
	
function travel4()
{
	document.write("<iframe src=/information/travelleft4.htm width=179 height=300 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}
	
function hotels1()
{
	document.write("<iframe src=/information/hotelsleft1.htm width=159 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}
	
function hotels2()
{
	document.write("<iframe src=/information/hotelsleft2.htm width=159 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

	
function food1()
{
	document.write("<iframe src=/information/foodleft1.htm width=147 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}

	
function food2()
{
	document.write("<iframe src=/information/foodleft2.htm width=147 frameborder=0 scrolling=no marginwidth=0 marginheight=0></iframe>");   
	}	