var wmpControllerHeight=(S.isIE?70:45);S.wmp=function(a,b){this.obj=a;this.id=b;this.height=a.height?parseInt(a.height,10):300;if(S.options.showMovieControls){this.height+=wmpControllerHeight}this.width=a.width?parseInt(a.width,10):300};S.wmp.ext=["asf","avi","mpg","mpeg","wm","wmv"];S.wmp.prototype={append:function(a,g){var c=S.options,d=c.autoplayMovies?1:0;var b='<object id="'+this.id+'" name="'+this.id+'" height="'+this.height+'" width="'+this.width+'"',f={autostart:c.autoplayMovies?1:0};if(S.isIE){b+=' classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"';f.url=this.obj.content;f.uimode=c.showMovieControls?"full":"none"}else{b+=' type="video/x-ms-wmv"';b+=' data="'+this.obj.content+'"';f.showcontrols=c.showMovieControls?1:0}b+=">";for(var e in f){b+='<param name="'+e+'" value="'+f[e]+'">'}b+="</object>";a.innerHTML=b},remove:function(){if(S.isIE){try{window[this.id].controls.stop();window[this.id].URL="movie"+now()+".wmv";window[this.id]=function(){}}catch(b){}}var a=get(this.id);if(a){setTimeout(function(){remove(a)},10)}}};