function DrawVideo(A){this.FLVPlayer=A;return this;}DrawVideo.prototype.initializeVideo=function(A,D,B,I,J,N){var H,C,K,M,L,E={},G={},F={};if(A){if(typeof (A)=="string"){C=document.getElementById(A);if(C!==null){C=cleanUpVideo(A);if(D){if(!N){N=null;if(D.indexOf("?")!==-1){if(D.substr(D.indexOf("?")-4,1)==="."){N=D.substr(D.indexOf("?")-3,3);}}else{if(D.substr(D.length-4,1)==="."){N=D.substr(D.length-3,3);}}}if(N!==null){N=N.toLowerCase();}K=null;if(!B){B=320;}if(!I){I=240;}if(N.indexOf("wmv")!==-1||N.indexOf("asx")!==-1){H='<object id="player">';H+='<param name="AutoStart" value="true">';H+='<param name="URL" value="'+D+'">';H+='<param name="uiMode" value="full">';H+='<embed src="'+D+'" name="player" width="'+B+'" height="'+I+'" type="video/x-ms-wmv-plugin" pluginurl="http://www.microsoft.com/windows/windowsmedia" allowchangedisplaysize="1" autosize="1" displaysize="1" showcontrols="0" showstatusbar="0" autorewind="1" autostart="1">';H+="</embed></object>";C.innerHTML=H;}else{if(window.swfobject&&(N.indexOf("swf")!==-1||N.indexOf("flv")!==-1||N===null)){H='<h1>You must have the Adobe Flash Player installed to view this video</h1><p><a href="http://www.adobe.com/go/getflashplayer"><img src="https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>';C.innerHTML=H;if(this.FLVPlayer){if(N!==null){if(N.indexOf("swf")===-1){K=D;D=this.FLVPlayer;if(this.FLVPlayer){if(this.FLVPlayer.indexOf("swf")!==-1){D=this.FLVPlayer;}}}}else{D=this.FLVPlayer;}}F={wmode:"opaque",allowScriptAccess:"always",allowFullscreen:"true",allowResize:"true"};if(typeof (J)==="object"){for(M in J){E[M]=J[M];}}if(K){L=K.substr(0,K.lastIndexOf("/")+1);K=K.substr(K.lastIndexOf("/")+1);K=encodeURIComponent(K);L+=K;E.file=L;E.autostart="true";if(N){E.type=N;}}window.swfobject.embedSWF(D,A,B,I,"8.0.0","expressInstall.swf",E,F,G);}else{if(window.QT_GenerateOBJECTText){H=QT_GenerateOBJECTText(D,B,I,"","SCALE","aspect");C.innerHTML=H;}else{H="<h1>This Video is Unavailable, Please Verify that the URL for this Video is Correct</h1>";C.innerHTML=H;}}}}}}}return false;};function cleanUpVideo(B){var D=document.getElementById(B),C,A;if(window.swfobject){if(D){C=D.parentNode;A=D.nextSibling;window.swfobject.removeSWF(B);D=document.getElementById(B);if(D===null){D=document.createElement("div");D.setAttribute("id",B);if(A!==null){C.insertBefore(D,A);}else{C.appendChild(D);}}}}return D;}
