function SJYoutube(a){this.containerId=a.containerId;this.playButton=a.playButton;this.movieParams=a.movieParams;this.movieContainer=a.movieContainer}SJYoutube.prototype.display=function(){try{var a=this;$("#"+a.containerId).find("."+a.playButton).click(function(){a.showVideo()})}catch(b){alert("this is the error "+b.description)}};SJYoutube.prototype.showVideo=function(){try{var a=this;var b=document.createElement("div");b.className="sj_youtube_vid_container";var c=document.createElement("div");c.style.clear="both";var d=document.createElement("obj");d.setAttribute("height",this.movieContainer.height);d.setAttribute("width",this.movieContainer.width);d.style.display="block";var e=document.createElement("param");e.setAttribute("name","movie");e.value=this.movieParams.movieValue;var f=document.createElement("param");f.setAttribute("name","allowFullScreen");f.value=this.movieParams.allowFullScreen;var g=document.createElement("param");g.setAttribute("name","allowscriptaccess");g.value=this.movieParams.allowScriptAccess;var h=document.createElement("embed");h.src=this.movieParams.movieValue;h.setAttribute("type","application/x-shockwave-flash");h.setAttribute("allowScriptAccess",this.movieParams.allowScriptAccess);h.setAttribute("allowfullscreen",this.movieParams.allowFullScreen);h.setAttribute("width",this.movieContainer.width);h.setAttribute("height",this.movieContainer.height);h.setAttribute("wmode","opaque");d.appendChild(e);d.appendChild(f);d.appendChild(g);d.appendChild(h);b.appendChild(d);$("#"+this.containerId).find(".video_data_container").fadeOut("fast",function(){$($(b).fadeIn("slow")).appendTo("#"+a.containerId).parent().append($(c));$(this).remove()})}catch(i){alert("this is the error "+i.description)}}
