function ffm(logo, autopl, bc, tc){
/* FragFM embed script */
/* Andie Fairlie of TN2D */
/* Do not use for anything other than FragFM without permission */

if (autopl == false){
	autopl = 0;
} else {
	autopl = 1;
}

if (bc == null){
	bc = "#000000";
}

if (tc == null){
	tc = "#cccccc";
}


document.write ('<div style="background:#'+bc+'; width:340px;">');
document.write ('<a href="http://fragfm.co.uk"><img src="'+logo+'" style="border:0px; width:340px; height:30px;"></a><br />');

document.write('<object id="MediaPlayer1" width="340" height="40" 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? Windows? Media Player components..." type="application/x-oleobject" align="middle" />');
document.write('<param name="FileName" value="http://87.98.249.31:8000/live" />');
document.write('<param name="AutoStart" value="1" />');
document.write('<param name="ShowStatusBar" value="True" />');
document.write('<param name="DefaultFrame" value="mainFrame" />');
document.write('<embed type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/" src="http://87.98.249.31:8000/live" align="middle"  height="40" defaultframe="rightFrame" showstatusbar="true" width="340"> </embed></object>');





// Finish it off nicely
document.write ('</div>');
document.write ('<div style="width:332px; font-family:arial; text-align:center; font-size:10px; background:#000; color:#FFF; padding:4px;"><a href="http://fragfm.co.uk/embed" style="color:#'+tc+' !important;">Powered by FragFM</a></div>')





// Analytics for FragFM marketing purposes
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


try {
var pageTracker = _gat._getTracker("UA-10539145-1");
pageTracker._trackPageview();
} catch(err) {}


}

