var Quickie=new Class({Implements:[Options],options:{id:null,height:1,width:1,container:null,attributes:{}},toElement:function(){return this.object},initialize:function(h,i){this.instance="Quickie_"+$time();this.setOptions(i);i=this.options;this.id=i.id||this.instance;var b=this.id;var a=$(i.container);var e=i.attributes;var g=(!$chk(e.controller)||e.controller=="true")?i.height+16:i.height;var c=i.width;var f="";e.src=h;if(Browser.Engine.trident){f='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"';f+=' id="'+b+'"';f+=' width="'+c+'"';f+=' height="'+g+'"';f+=">";for(var d in e){if(e[d]){f+='<param name="'+d+'" value="'+e[d]+'" />'}}f+="</object>"}else{f="<embed ";f+=' id="'+b+'"';f+=' width="'+c+'"';f+=' height="'+g+'"';for(d in e){if(e[d]){f+=" "+d+'="'+e[d]+'"'}}f+=' pluginspage="http://www.apple.com/quicktime/download/"></embed>'}this.object=((a)?a.empty():new Element("div")).set("html",f).firstChild},replaces:function(a){a=$(a,true);a.parentNode.replaceChild(this.toElement(),a);return this},inject:function(a){$(a,true).appendChild(this.toElement());return this}});