var st=new Array('counterpointfm.com/play.asx|Select a Station|','','|Random any Station|','','los40.com/nuevo_player/40Principales.asx|40 Principales|spanish','club977.com/club977.asx|Club 977|80s','counterpointfm.com/play.asx|Counterpoint FM|r&b','defjay.com/listen.asx|DefJay|r&b','hitzradio.com/hitzradio.wax|Hitz Radio|hits','radiosurge.com/hot108.asx|Hot 108|r&b','racketradio.com/listen.asx|Racket Radio|hits','radioseven.se/r7_kabel.asx|Radio 7|hits','www.garnierstreamingmedia.com/asx/skyradio.asp|Sky Radio|Pop','simarjot.com/playpunjabi.asx|Simarjot Punjabi|Indian','simarjot.com/play.asx|Simarjot Gurdw|Indian');

var GheoStats='WebRadio';
var gs=0;
var GheosStation;
if(!GheosStation||GheosStation==''||GheosStation==1)GheosStation='Counterpoint FM';
var sl=new Array();
for(i=4;i<st.length;i++){
if(GheosStation==st[i].substring(st[i].indexOf('|')+1,st[i].lastIndexOf('|'))){
	gs=i;
	sl[i]=' SELECTED';
	}
}

function ChooseIt(){
var station=document.CPradio.CPstations.options.selectedIndex;
var stnm=escape(document.CPradio.CPstations.options[station].value);
if(station==0||station==1||station==3)alert('Select a Station');
else if(station==2)window.open('http://Gheos.net/js/radio');
else	{
document.CPradio.Player.URL='http://'+stnm;
//document.lg.src='http://counterpointfm.com/radio/stations/'+stnm.substring(0,stnm.indexOf('.'))+'.gif';
	}
}

function ClickInfo(){
var station=document.CPradio.CPstations.options.selectedIndex;
var stnm=escape(document.CPradio.CPstations.options[station].value);
window.open('http://gheos.net/js/radio');
if(station!=0&&station!=1){
//	window.open('http://'+stnm.substring(0,stnm.indexOf('/')));
	document.CPradio.Player.URL='http://'+stnm;
	}
}

function doplay(){
if(document.pl.src=='http://gheos.net/js/radio/pause.gif'){
	if(document.CPradio.Player.controls.isAvailable('Pause'))document.CPradio.Player.controls.pause();
	document.pl.src='http://gheos.net/js/radio/play.gif';
	window.status='WebRadio Paused';
	}
else	{
	if(document.CPradio.Player.controls.isAvailable('Play'))document.CPradio.Player.controls.play();
	document.pl.src='http://gheos.net/js/radio/pause.gif';
	window.status='WebRadio Playing';
	}
}

function extplay(){
var station=document.CPradio.CPstations.options.selectedIndex;
if(station==0||station==1)alert('Select a Station');
else document.location='http://'+escape(document.CPradio.CPstations.options[station].value);
}

function dostop(){
document.pl.src='http://gheos.net/js/radio/play.gif';
if(document.CPradio.Player.controls.isAvailable('Stop'))document.CPradio.Player.controls.stop();
window.status='WebRadio Stopped';
}

function info(e){
if(document.layers){
document.getElementById('file').style.top=window.pageYOffset+10+'px';
document.getElementById('file').style.left=(screen.width/2)-100+'px';
if(document.getElementById('inf').style.visibility=='visible')document.getElementById('inf').style.visibility='hidden';
else document.getElementById('inf').style.visibility='visible';
}else{
document.all.inf.style.pixelTop=document.body.scrollTop+10;
document.all.inf.style.pixelLeft=(screen.width/2)-100;
if(document.all.inf.style.visibility=='visible')document.all.inf.style.visibility='hidden';
else document.all.inf.style.visibility='visible';
	}
}

document.write('<FORM NAME="CPradio"><OBJECT ID="Player" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" HEIGHT="0" WIDTH="0">');
document.write('<PARAM NAME="AutoStart" VALUE="true">');
document.write('<PARAM NAME="uiMode" VALUE="invisible">');
document.write('</OBJECT>');

if(parseInt(document.CPradio.Player.versionInfo)<9){

document.write('<STYLE>#inf{position:absolute; width:200px; height:100px; visibility:hidden}</STYLE>');

document.write('<TABLE WIDTH="100" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD WIDTH="100" HEIGHT="30"><IMG SRC="http://gheos.net/js/radio/info.gif" NAME="pl" ISMAP USEMAP="#pl" BORDER="0">');

document.write('<MAP NAME="pl"><AREA SHAPE="circle" COORDS="15,15,12" HREF="javascript:extplay();"><AREA SHAPE="circle" COORDS="38,15,7" HREF="javascript:info();"><AREA SHAPE="rect" COORDS="49,0,99,30" HREF="http://gheos.net/js/radio" TARGET="_blank"></MAP><BR>');

document.write('<DIV ID="inf"><TABLE WIDTH="200" CELLSPACING="0" CELLPADDING="2" BORDER="1" BORDERCOLOR="#000000"><TR><TD BGCOLOR="#C0C0C0" STYLE="text-align:justify"><FONT FACE="Arial" SIZE="2">You have Media Player '+parseInt(document.CPradio.Player.versionInfo)+' installed on your computer. Our music will only play automatically with Media Player 9.<BR>You can download it <A HREF="http://www.microsoft.com/windows/windowsmedia/download/default.asp" TARGET="_blank">here</A></FONT></TD></TR></TABLE></DIV>');

}else{

document.CPradio.Player.uiMode='full';
document.CPradio.Player.URL='http://www.'+st[gs].substring(0,st[gs].indexOf('|'));
document.write('<TABLE WIDTH="104" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD WIDTH="50" HEIGHT="30"><IMG SRC="http://gheos.net/js/radio/pause.gif" NAME="pl" ISMAP USEMAP="#pl" BORDER="0" WIDTH="50" HEIGHT="30"><MAP NAME="pl"><AREA SHAPE="circle" COORDS="15,15,12" HREF="javascript:doplay();"><AREA SHAPE="circle" COORDS="38,15,7" HREF="javascript:dostop();"></MAP></TD><TD WIDTH="54"><A HREF="javascript:ClickInfo();" onMouseOver="window.status=\'Click for more information\';return true" onMouseOut="window.status=\'\';return true"><IMG SRC="http://gheos.net/js/radio/webradio.gif" BORDER="0" WIDTH="54" HEIGHT="30" NAME="lg"></A></TD></TR>');

}

document.write('<TR><TD WIDTH="104" COLSPAN="2"><SELECT NAME="CPstations" STYLE="border-color:000000; border:1 solid; font-family:Arial; height:17px; font-size:11px; color:0000C0" onChange="javascript:ChooseIt()" WIDTH="100">');

document.write('<OPTION VALUE="0" STYLE="background-color:C0C0C0"'+sl[0]+'>Select a Station</OPTION>');
document.write('<OPTION VALUE="0" STYLE="background-color:CCCCCC"></OPTION>');
document.write('<OPTION VALUE="1" STYLE="background-color:C0C0C0">Get Webradio</OPTION>');
document.write('<OPTION VALUE="0" STYLE="background-color:CCCCCC"></OPTION>');

for(i=4;i<st.length;i++){
	if(i/2==Math.round(i/2))document.write('<OPTION STYLE="background-color:C0C0C0" ');
	else document.write('<OPTION STYLE="background-color:CCCCCC" ');
	document.write('" VALUE="'+st[i].substring(0,st[i].indexOf('|'))+'"'+sl[i]+'>'+st[i].substring(st[i].indexOf('|')+1,st[i].lastIndexOf('|'))+'</OPTION>');
	}
document.write('</SELECT></TD></TR></TABLE></FORM>');

document.write('<SCRIPT SRC="http://Gheos.net/counterhidden.js"></SCR'+'IPT>');
