
function FlashPlayer(doc,playerwidth,imagewindowheight,controlpanelheight,statusheight,eventid,sessionid,writePlayer) {
	this.doc=doc;
	this.playerwidth=playerwidth;
	this.imagewindowheight=imagewindowheight;
	this.playerheight=parseInt(controlpanelheight,10)+parseInt(statusheight,10);
	this.eventid=eventid;
	this.sessionid=sessionid;
	this.writePlayer=writePlayer;
	this.strPlayer="";
	this.intLiveTimestamp = null;
	var params='?playerwidth='+this.playerwidth
				+'&controls='+(controlpanelheight>0?true:false)
				+'&status='+(statusheight>0?true:false)
				+'&playerheight='+this.playerheight
				+'&eventid='+this.eventid
				+'&sessionid='+this.sessionid
				+'&bufferTime=3';
	
	this.strPlayer='<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>';
	if(imagewindowheight>0) this.strPlayer+='<TR><TD ALIGN=middle><img src="1x1_000000.gif" border="0" width="'+this.playerwidth+'" height="'+this.imagewindowheight+'"></TD></TR>';
	this.strPlayer+='<TR><TD ALIGN=middle><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+this.playerwidth+'" height="'+this.playerheight+'" id="flvliveaudioplayer" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/utils/flash/flvliveaudioplayer.swf'+params+'" /><param name="quality" value="high" /><param name="wmode" value="window" /><embed src="/utils/flash/flvliveaudioplayer.swf'+params+'" quality="high" width="'+this.playerwidth+'" height="'+this.playerheight+'" name="flvliveaudioplayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="window" /></embed></object></TD></TR></TABLE>' ;
		
	//alert(this.strPlayer)
	if(this.writePlayer) {
		this.doc.writeln(this.strPlayer);
	}
	
	//place holder for existing media player class
	FlashPlayer.prototype.getPosition=function() {
		return 1;
	}
	
	FlashPlayer.prototype.getPlayerStatus=function() {
		return "playing";
	}
	
	FlashPlayer.prototype.getPlayerState=function() {
		return 1;
	}

}


