function CreateWMObject(a,c,i,j,d,e,g,f,h,b){document.write('<OBJECT id="VIDEO" width="'+c+'" height="'+i+'" ');document.write('	CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" ');document.write('	type="application/x-oleobject" ');document.write('    codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" VIEWASTEXT> ');document.write('	<PARAM NAME="filename" VALUE="'+a+'"> ');document.write('	<PARAM NAME="SendPlayStateChangeEvents" VALUE="True"> ');document.write('	<PARAM NAME="showstatusbar" VALUE="'+f+'"> ');document.write('	<param name="transparentatStart" value="1"> ');document.write(' <param name="WMode" value="Transparent"> ');document.write('	<param name="autoStart" value="'+j+'"> ');document.write('	<param name="uiMode" value="'+e+'"> ');document.write('	<param name="showcontrols" value="'+g+'"> ');document.write('	<param name="playcount" value="'+d+'"> ');document.write('	<param name="alt" value="'+h+'"> ');document.write(' <EMBED type="application/x-mplayer2" ');document.write(' pluginspage="http://microsoft.com/windows/mediaplayer/ en/download/" ');document.write(' id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="0" ');document.write(' showcontrols="'+g+'" showtracker="1" ');document.write(' width="'+c+'" height="'+i+'" src="'+a+'" autostart="'+j+'" ');document.write(' alt="'+h+'" playcount="'+d+'"> ');document.write("<div>"+h+" <A href=default.aspx?page="+b+">Click here for textual description.</A></div> ");document.write(" </EMBED></OBJECT> ")}function CreateQuicktimeObject(f,g,b,h,d,e,c,a){document.write('<OBJECT width="'+g+'" height="'+b+'" ');document.write('   codebase="http://www.apple.com/qtactivex/qtplugin.cab" ');document.write('	CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ');document.write("	VIEWASTEXT> ");document.write('	<PARAM NAME="src" VALUE="'+f+'"> ');document.write('	<param name="autoplay" value="'+h+'"> ');document.write('	<param name="controller" value="'+e+'"> ');document.write('   <param name="WMode" value="Transparent"> ');document.write('	<param name="loop" value="'+d+'"> ');document.write('	<param name="alt" value="'+c+'"> ');document.write(" <EMBED ");document.write(' pluginspage="http://www.apple.com/quicktime/download/" ');document.write(' width="'+g+'" height="'+b+'" src="'+f+'" autoplay="'+h+'" ');document.write(' alt="'+c+'" controller="'+e+'" loop="'+d+'"> ');document.write("<div>"+c+" <A href=default.aspx?page="+a+">Click here for textual description.</A></div> ");document.write(" </EMBED></OBJECT> ")}function CreateFlashObject(e,f,a,c,g,d,b){document.write(' <object style="width:'+f+"px; height: "+a+"px; background-color: "+c+';" ');document.write(' type="application/x-shockwave-flash" data="'+e+'" title="'+g+'" VIEWASTEXT> ');document.write(' <param name="movie" value="'+e+'" /> ');document.write(' <param name="WMode" value="Transparent"> ');document.write(' <param name="menu"  value="false"> ');document.write(' <param name="loop" value="'+b+'" /> ');document.write(' <img src="'+d+'" height="'+a+'" width="'+f+'" alt="'+g+'" /> ');document.write(" </object> ")}function CreateRPObject(d,f,b,g,c,e,a){document.write(' <OBJECT ID=RVOCX CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ');document.write(' WIDTH="'+f+'" HEIGHT="'+b+'"> ');document.write(' <PARAM NAME="SRC" VALUE="'+d+'"> ');document.write(' <PARAM NAME="AutoStart" VALUE="'+g+'"> ');document.write(' <PARAM NAME="Loop" VALUE="'+c+'"> ');document.write(' <PARAM NAME="CONTROLS" VALUE="ImageWindow"> ');document.write(' <PARAM NAME="CONSOLE" VALUE="_master"> ');document.write(" <EMBED ");document.write(' width="'+f+'" height="'+b+'" src="'+d+'" autostart="'+g+'" ');document.write(' alt="'+e+'" controls="ImageWindow" loop="'+c+'"> ');document.write("<div>"+e+" <A href=default.aspx?page="+a+">Click here for textual description.</A></div> ");document.write(" </EMBED></OBJECT> ")}function CreateRPObjectWithGui(d,f,b,g,c,e,a){document.write(' <OBJECT ID=RVOCX CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ');document.write(' WIDTH="'+f+'" HEIGHT="'+b+'"> ');document.write(' <PARAM NAME="AutoStart" VALUE="'+g+'"> ');document.write(' <PARAM NAME="Loop" VALUE="'+c+'"> ');document.write(' <PARAM NAME="CONTROLS" VALUE="ImageWindow"> ');document.write(' <PARAM NAME="CONSOLE" VALUE="_master"> ');document.write(" <EMBED ");document.write(' name="player" type="audio/x-pn-realaudio-plugin" console="_master" width="'+f+'" height="'+b+'" autostart="'+g+'" ');document.write(' alt="'+e+'" controls="ImageWindow" loop="'+c+'"> ');document.write(" </EMBED></OBJECT> ");document.write('<div><OBJECT ID=RVOCX CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ');document.write(' WIDTH="'+f+'" HEIGHT="55"> ');document.write(' <PARAM NAME="SRC" VALUE="'+d+'"> ');document.write(' <PARAM NAME="AutoStart" VALUE="'+g+'"> ');document.write(' <PARAM NAME="Loop" VALUE="'+c+'"> ');document.write(' <PARAM NAME="CONTROLS" VALUE="Default"> ');document.write(' <PARAM NAME="CONSOLE" VALUE="video1"> ');document.write(" <EMBED ");document.write(' name="player" type="audio/x-pn-realaudio-plugin" console="video1" width="'+f+'" height="55" src="'+d+'" autostart="'+g+'" ');document.write(' alt="'+e+'" controls="Default" loop="'+c+'"> ');document.write("<div>"+e+" <A href=default.aspx?page="+a+">Click here for textual description.</A></div> ");document.write("</EMBED></OBJECT> ")}function CreateFLVObject(a,b,i,j,h,f,g){document.write(' <div id="flashContent"></div>');var c={file:a.substring(a.indexOf("?file=")+6,a.indexOf("&")),autostart:"true",image:"/"+f,autostart:"false"};var d={allowfullscreen:"true",allowscriptaccess:"always",bgcolor:"#ffffff",wmode:"opaque"};var e={id:"player1",name:"player1"};swfobject.embedSWF("/plugins/media/flvplayer.swf","flashContent",b,i,"9","false",c,d,e)};
