// JavaScript Document
function PONdENDS_Radio()
{
	this.show_logo = true;
	this.autostart = true;
	this.mute = false;
	this.width = 210;
	this.height =44;
	
	this.show = function()
	{
		filename = "http://s6.voscast.com:7098/"; //"http://s6.voscast.com:7098/";
		this.radio_obj = "<div>\n";
		if(this.show_logo)
		{
			this.radio_obj+="<a target=\"_blank\" href=\"http://www.pondends.com/\" title=\"PONdENDS.COM | Real Yaad Vybz!\">" + 
		    				"<img alt=\"PONdENDS Radio\" title=\"PONdENDS.COM | Real Yaad Vybz!\" " + 
								 "src=\"http://www.pondends.com/api/images/radio_banner.png\" /></a><br/> ";
		}
    this.radio_obj +=  ""+
				"<object id=\"radioplr\" width=" + this.width + "height=" + this.height + 
			    "classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"" +
			    "codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" "+
	        	"standby=\"Loading Microsoft&#65533; Windows&#65533; Media Player components...\" " +
        		"type=\"application/x-oleobject\" align=\"middle\"> " +
        		"<param name=\"filename\" value=\"" + filename + "\" /> "+
        		"<param name=\"AutoStart\" value=\"" + this.autostart + "\" /> " +
        		"<param name=\"ShowStatusBar\" value=\"True\" /> " +
        		"<param name=\"DefaultFrame\" value=\"mainFrame\" /> " +
	        	"<param name=\"Volume\" value=\"100\" /> " +
	        	"<param name=\"enablecontextmenu\" value=\"false\" /> " +
        		"<param name=\"wmode\" value=\"transparent\" /> " +
	        	"<param name=\"mute\" value=\"false\" /> " +
        		"<embed " +
	        	"src=\"" + filename + "\" " +
	        	"width=" + this.width + "px "+
	        	"height=" + this.height + "px " +
	        	"autostart=\"" + this.autostart + "\" align=\"middle\" id=\"plr\" type=\"application/x-mplayer2\" " +
        		"pluginspage = \"http://www.microsoft.com/Windows/MediaPlayer/\" "+
	        	"enablecontextmenu=\"false\" "+
        		"wmode=\"transparent\" " +
        		"defaultframe=\"mainFrame\" " +
	        	"volume=\"100\" mute=\"" + this.mute + "\" " +
        		"showstatusbar=True filename=\"" + filename + "\"/> " + 
    			"</object>";
		this.radio_obj += "</div>";
		document.write(this.radio_obj);
	}
				
}

rd = new PONdENDS_Radio();
rd.width=width;
rd.mute=mute;
rd.autostart=autostart;
rd.show();
				
