<!--

var initializedPlayer=false;

function InitPlayer() 
{
	window.setTimeout("ReloadPlaylist()",5000);
}

function ReloadPlaylist() 
{
	var ref2;
	ref2="http://www.radio42.enterest.com/scxml/playlist.php?ffffff";
	if (MS && (top!=self)) document.playlistFRM.document.location.href = ref2
	else if (MS) parent.playlistFRM.document.location.href = ref2
	else playlistFRM.location.href = ref2;

	if (initializedPlayer == false)
	{
	   initializedPlayer=true;
	   top.window.focus();
	}
}

function OpenPlayer(ver) 
{
	var ref3;
	if (ver == 6) ref3="play_6.html";
	if ((ver == 6) && WinMSIE) { ver=7; }
	if (ver == 7) ref3="play_7.html";
	if (ver == 2) ref3="play_fLoFi.html";
	if (ver == 3) ref3="play_fHiFi.html";
	if (ver == 4) ref3="play_qLoFi.html";
	if (ver == 5) ref3="play_qHiFi.html";
	if (ver == 8) ref3="play_rLoFi.html";
	if (ver == 9) ref3="play_rHiFi.html";
	if (ver == 0) ref3="play_unavail.html";
	if ( NS && (BrowserVersionShort < 5) ) ref3="play_6n.html";
	radio42Win = window.open(ref3,"r42Play","width=560,height=204,left=20,top=20,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
}

function OpenPls() 
{
	var ref3;
	ref3="pls.html";
	PlsWin = window.open(ref3,"r42PLS","width=530,height=364,left=20,top=20,location=no,menubar=no,status=no,resizable=yes,toolbar=no");
}

function OpenWin(_winnam, URI1, _param)
{
	NewWin = window.open(URI1, _winnam, _param);
}

function Enter(URI1,F1)
{
	Frame1=eval(F1);
	Frame1.location.href = URI1;
}

function SwitchLang(_newLang)
{
	_language = _newLang;
	var currloc=new String(mainFRM.location.href); 
	var currlocpos=currloc.lastIndexOf("/");
	return currloc.substring(currlocpos+1,currloc.length);
}

var SHOUTopen=0;
var ShoutWin=0;
function OpenShout(_posX,_posY)
{
if (ShoutWin.closed == true) SHOUTopen=0;
if (SHOUTopen==0) {
	var ref3;
	ref3="shoutbox/shoutbox42.php";
	ShoutWin = window.open(ref3,"r42Shout","width=206,height=340,left="+_posX+",top="+_posY+",location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");
	if (ShoutWin) SHOUTopen=1;
}
else { ShoutWin.focus(); }
}

var delay=6000;
var nextm=0;
var toggle=0;
var out=new String;
var msg=new Array
(
	'Music for LOUNGE-LOVERS :: Good Music Is Mostly Black.',
	'Ambient.Chillout.House.Soul.Funk.NuJazz.Latin.Downtempo.Lounge.',
	'Tue.21:00 UTC: >>Soul-Sushi<< :: smooth Soul and fine and classic RnB.',
	'Fri.20:00 UTC: >>Lounge-Sofa<< :: new and nicely plated Lounge-Tunes.',
	'Fri.22:00 UTC: >>Club-Lounge<< :: fresh and sexy House and groovy Club-Beats.',
	'Sun.20:00 UTC: >>UNWIND<< :: with DJ Lexis via Montreal, Canada.',
	'All other times: >>Stereo-42<< :: Music for Lounge-Lovers to expand your listening experiance.',
	'Finest Electronica blended with a touch of NuJazz and stirred with Latin- & Downtempo-Beatz.',
	'Please make a donation - radio42 needs your support - we are a privately operated station.'
);

function start_ticker()
{
	do_ticker(msg[0]);
}

function do_ticker()
{
	if (toggle==0) 
	{
		out=msg[nextm];
		toggle=1;
	}
	else
	{
		var jetzt = new Date();
		var Std = jetzt.getUTCHours();
		var Tag = jetzt.getUTCDay();
		out="Current Program: >>Stereo-42<< :: Music for LOUNGE-LOVERS.";
		if ((Tag==1) && (Std==18)) { out="Current Program: >>Lounge-Sofa<< :: new and fresh Lounge-Tunes - listening pearls."; }
		if ((Tag==1) && (Std==19)) { out="Current Program: >>Lounge-Sofa<< :: new and fresh Lounge-Tunes - listening pearls."; }
		if ((Tag==2) && (Std==21)) { out="Current Program: >>Soul-Sushi<< :: finest Soul, RnB plus classic old school Grooves."; }
		if ((Tag==2) && (Std==22)) { out="Current Program: >>Soul-Sushi<< :: finest Soul, RnB plus classic old school Grooves."; }
		if ((Tag==3) && (Std==2)) { out="Current Program: >>Lounge-Sofa<< :: new and fresh Lounge-Tunes - listening pearls."; }
		if ((Tag==3) && (Std==3)) { out="Current Program: >>Lounge-Sofa<< :: new and fresh Lounge-Tunes - listening pearls."; }
		if ((Tag==4) && (Std==6)) { out="Current Program: >>Soul-Sushi<< :: finest Soul, RnB plus classic old school Grooves."; }
		if ((Tag==4) && (Std==7)) { out="Current Program: >>Soul-Sushi<< :: finest Soul, RnB plus classic old school Grooves."; }
		if ((Tag==5) && (Std==20)) { out="Current Program: >>Lounge-Sofa<< :: new and fresh Lounge-Tunes - listening pearls."; }
		if ((Tag==5) && (Std==21)) { out="Current Program: >>Lounge-Sofa<< :: new and fresh Lounge-Tunes - listening pearls."; }
		if ((Tag==5) && (Std==22)) { out="Current Program: >>Club-Lounge<< :: fresh, new and glamorous Beats of sexy Club Tunes."; }
		if ((Tag==5) && (Std==23)) { out="Current Program: >>Club-Lounge<< :: fresh, new and glamorous Beats of sexy Club Tunes."; }
		if ((Tag==6) && (Std==18)) { out="Current Program: >>Lounge-Sofa<< :: new and fresh Lounge-Tunes - listening pearls."; }
		if ((Tag==6) && (Std==19)) { out="Current Program: >>Lounge-Sofa<< :: new and fresh Lounge-Tunes - listening pearls."; }
		if ((Tag==0) && (Std==5)) { out="Current Program: >>Club-Lounge<< :: fresh, new and glamorous Beats of sexy Club Tunes."; }
		if ((Tag==0) && (Std==6)) { out="Current Program: >>Club-Lounge<< :: fresh, new and glamorous Beats of sexy Club Tunes."; }
		if ((Tag==0) && (Std==20)) { out="Current Program: >>UNWIND<< :: with DJ Lexis via Montreal, Canada."; }
		toggle=0;
	}

	if(DHTML) 
	{
	   if(NS)
	   {
	      setCont("id","myticker",null,"<span class=\"myticker\">" + out + "<\/span>");
	   }
	  else 
	   {
	      setCont("id","myticker",null,out);
	   }
	}
	else return;

	if(++nextm>=msg.length) nextm=0;
	window.setTimeout("do_ticker()", delay);
}

function DispTime() 
{
  var Now = new Date();
  var sNow = Now.toGMTString();
  if(DHTML) 
  {
    if(NS) setCont("id","Clock",null,"<span class=\"Clock\">" + sNow + "<\/span>");
    else   setCont("id","Clock",null,sNow);
  }
  else return;
  window.setTimeout("DispTime()",3000);
}

//-->

