function ShowMediaPlayer(divId,objectId,width,height,url,as1,ts1,as2,ts2,bgimage){
var src='';if(url!='')src='src="'+url+'"';
var background='';if(bgimage!='')background='background="'+bgimage+'"';
var d=document.getElementById(divId);
d.innerHTML='<table width='+width+' height='+height+' '+background+' class="XMP-VideoPlayer" cellpadding=0 cellspacing=0 border=0><tr><td>'
+'<object width='+width+' height='+height+' id='+objectId+' classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95'
+' codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"'
+' standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
+'<param name="filename" value="'+url+'">'
+'<param name="Showcontrols" value=True>'
+'<param name="autoStart" value='+as1+'>'
+'<param name="transparentatStart" value='+ts1+'>'
+'<embed type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"'
+' '+src+' showcontrols=1 uimode=full width='+width+' height='+height
+' autostart='+as2+' transparentatstart='+ts2+'>'
+'<\/embed><\/object><\/td><\/tr><\/table>';}
function startVideo(url,id,nr,mId){clearStyles(id,mId);clearColors(id,mId);showStyle(id+nr);showColor(id+nr);playVideo(url);}
function startPlaylist(url,id,mId){clearColors(id,mId);if(sBrowser=='IE'){showStyle(id+'1');showColor(id+'1');}playVideo(url);}
function showStyle(id){setStyle(id+'a','xmp-SelectImg');setStyle(id+'b','xmp-SelectTD');}
function clearStyles(id,mId){for(i=1;i<=mId;i++){setStyle(id+i+'a','xmp-UnselectImg');setStyle(id+i+'b','xmp-UnselectTD');}}
function setStyle(id,cname){if(document.getElementById(id)!=undefined){document.getElementById(id).className=cname;}}
function showColor(id){setColor(id+'c','#FE5923');}
function clearColors(id,mId){for(i=1;i<=mId;i++){setColor(id+i+'c','#02315D');}}
function setColor(id,color){if(document.getElementById(id)!=undefined){document.getElementById(id).style.color=color;}}
function setBGColor(id,color){if(document.getElementById(id)!=undefined){document.getElementById(id).style.backgroundColor=color;}}
 
 