////////////////////////////////////////////////////////
////// RWR PLAYER CONRTOL v1.0 by Andres Gonzalez //////
////////////////////////////////////////////////////////

// ==> POP-UP WINDOW VARIABLES
var winName = 'v3Plyr'; // location name of window
var winOpts = 'width=370,height=450,menubar=no,location=no,directories=no,resizable=no,scrollbars=yes,status=no'; //354x420

// ==> Player Options
var ma; // mature content
var ch; // chooser

// ==> RWR PLAYER VARIABLES
var plyrLocat = "http://www.rocklandworldradio.com/player/"; // url location of players*/
var player; //pop-up window instance var

/*Use for all links except dropdowns*/
function play(url, mature, chooser){ // url, mature content, chooser
	if(mature==1){ma = '&m=1';}else{ma = '';}
	if(chooser==1){ch = '&c=1';}else{ch = '';}
	player = window.open(plyrLocat+'player.php?media='+url+ma+ch+'&clr_session=1',winName,winOpts);
}

/*Use for dropdowns only*/
function playArchive(u, m, c){ // url, mature content, chooser
	var url = u.options[u.selectedIndex].value;	//contains url of dropdown menu slection
	if(url == "none"){return true;}else{openPlayer(url, m, c);} // for blank selection do nothing else open 
}
