<!--
var srcc = window.location;
srcc = srcc.toString()
start = srcc.indexOf("?");
end = srcc.length;
if (start==-1){
srcc = "http://www.hi-fm.com/LiveRadio/live.asx"
}

if (start!=-1){
srcc = srcc.substring(start+1,end);
}

//alert(srcc)

 day=11;
 month=1;
 year=2006;
 hour=18;
if ( navigator.appName == "Netscape" )
{
navigator.plugins.refresh();
document.write("\x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class")
document.writeln(" width=352 height=288 name=appObs\x3E \x3C/applet\x3E")
}
var Player;
var isplaying;
var movelen;
var history;
var ispause;
var isstop;
history=false;
movelen=0;
isstop=false;
isplaying=false;
ispause=false;
mute=false;
Player="document.NSPlay";
var playfile='';
function preload(imgname,imgsrc)
{
	eval(imgname+'=new Image()')
	eval(imgname+'.src="images\/'+imgsrc+'"')
}
preload("play1","play.gif")
preload("play2","play_b.gif")
preload("stop1","stop.gif");
preload("stop2","stop_b.gif");
preload("sound1","sound.gif");
preload("sound2","sound_b.gif");
preload("volume","volume.gif");
preload("pause1","pause.gif");
preload("pause2","pause_b.gif");
preload("full1","full.gif");
preload("full2","full_b.gif");

function playy(src){
var abc
abc = src + ""
playhistory(abc)
}
function doPlay(){

  if(!isplaying){
if (eval(Player).FileName=='') return;
	eval(Player).Play();
	if (eval(Player).FileName!=filename)
if(!ispause){	  
movelen=0;
}
document.play.src=play2.src;
document.stop.src=stop1.src;
document.pause.src=pause1.src;
isplaying=true;  
ispause = false;
isstop=false;
  }
}


function DoStop()
{
  if(isplaying){
	eval(Player).CurrentPosition=0;
	eval(Player).Stop();
	document.play.src=play1.src;
document.stop.src=stop2.src;
document.pause.src=pause1.src;
if (document.seek.style.visibility=="visible")
  document.seek.style.left=136;
isstop=true;
isplaying=false;
ispause=false;
   } 
}


function DoPause()
{
if(isplaying){
   eval(Player).Pause();
   isplaying = false
   ispause = true
   isstop=false;
	document.play.src=play1.src;
document.pause.src=pause2.src;
document.stop.src=stop1.src;
}
}


function SetPosition(Pos)
{
	if (!isplaying) return;
	eval(Player).CurrentPosition=+Pos;
}

function SetVolume(Pos)
{
eval(Player).volume=Pos;
}

function SetMute()
{
	if (!isplaying) return
	
	if (mute){
		eval(Player).Mute=false
	document.sound.src=sound1.src;	
	document.vol.style.visibility="visible";
	mute=false	
	}	
	else{
	  eval(Player).Mute=true;
	  document.sound.src=sound2.src;
	  document.vol.style.visibility="hidden";
	  mute=true
	}  
}
function GetPosition()
{
	tt=eval(Player).CurrentPosition
	return tt;
}
function SetSource(srcname)
{
	if (srcname==filename){
	  history=false;
	  //eval(Player).AutoRewind=true;
	  document.seek.style.visibility="hidden";
	 } 
	 else{
	  document.seek.style.visibility="visible"; 
	  //eval(Player).AutoRewind=false;
	  history=true
	 } 
	eval(Player).FileName=srcname;
	document.play.src=play2.src;
document.stop.src=stop1.src;
isplaying=true;
}
function SetWH(widthpx,heightpx)
{
	eval(Player).width=widthpx
	eval(Player).height=heightpx
}
function SetDisplaySize(setting)
{
	if (isplaying)
  	  eval(Player).DisplaySize=setting
	//全屏 setting=3
	//100% setting=0
	// 50% setting=1
	//200% setting=2 
}



var x,theImg;

var Maxvol, Minvol


Maxvol=310;
Minvol=195;
cur=2100;
function move(){
  if (event.button==1&&isplaying){
left=temp1+event.clientX-x
  
if ((left<=Maxvol)&&(left>=Minvol))
  theImg.style.pixelLeft=left
 else 
   if(left>Maxvol) 
 theImg.style.pixelLeft=Maxvol
 else
   theImg.style.pixelLeft=Minvol 
   // document.form1.pos.value=theImg.style.pixelLeft
  return false
  }
}
function enddrag(){
  
 //这里设置音量
 if (isplaying){
   cur=theImg.style.pixelLeft;
   cur=Math.floor((Maxvol-cur)/(Maxvol-Minvol)*(-2000)); 
   SetVolume(cur);
   document.onmousemove=null;
  } 

}


function begindrag(Elm){
  if (!document.all)
return
  if (!isplaying)
return   
  temp1=Elm.style.pixelLeft   
  theImg=Elm
  x=event.clientX;
  document.onmousemove=move 
}

document.writeln('');


var Start, End;
var seeking;
seeking=false

Start=136;
End=214;

function playhistory(src){
  SetSource(src);  
}
function showchoose() 
{ 
 if (document.all.menu1.style.display=="none") 
  document.all.menu1.style.display="block"; 
  else 
  {
  playhistory(document.formdisco.getyy.value+document.formdisco.getmm.value+document.formdisco.getdd.value+".wmv")
  document.all.menu1.style.display="none"; 
  }
} 

//-->
