if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(E,C,K,F,H,J,L,G,A,D){if(!document.getElementById){return }this.DETECT_KEY=D?D:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(E){this.setAttribute("swf",E)}if(C){this.setAttribute("id",C)}if(K){this.setAttribute("width",K)}if(F){this.setAttribute("height",F)}if(H){this.setAttribute("version",new deconcept.PlayerVersion(H.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(J){this.addParam("bgcolor",J)}var B=L?L:"high";this.addParam("quality",B);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var I=(G)?G:window.location;this.setAttribute("xiRedirectUrl",I);this.setAttribute("redirectUrl","");if(A){this.setAttribute("redirectUrl",A)}};deconcept.SWFObject.prototype={useExpressInstall:function(A){this.xiSWFPath=!A?"expressinstall.swf":A;this.setAttribute("useExpressInstall",true)},setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(A,B){this.params[A]=B},getParams:function(){return this.params},addVariable:function(A,B){this.variables[A]=B},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var A=new Array();var B;var C=this.getVariables();for(B in C){A[A.length]=B+"="+C[B]}return A},getSWFHTML:function(){var D="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var C=this.getParams();for(var A in C){D+=[A]+'="'+C[A]+'" '}var B=this.getVariablePairs().join("&");if(B.length>0){D+='flashvars="'+B+'"'}D+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var A in C){D+='<param name="'+A+'" value="'+C[A]+'" />'}var B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />'}D+="</object>"}return D},write:function(A){if(this.getAttribute("useExpressInstall")){var B=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(B)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var C=(typeof A=="string")?$(A):A;C.html(this.getSWFHTML());return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var C=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){C=new deconcept.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var D=1;var B=3;while(D){try{B++;D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);C=new deconcept.PlayerVersion([B,0,0])}catch(E){D=null}}}else{try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(E){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C=new deconcept.PlayerVersion([6,0,21]);D.AllowScriptAccess="always"}catch(E){if(C.major==6){return C}}try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(E){}}if(D!=null){C=new deconcept.PlayerVersion(D.GetVariable("$version").split(" ")[1].split(","))}}}return C};deconcept.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(A){if(this.major<A.major){return false}if(this.major>A.major){return true}if(this.minor<A.minor){return false}if(this.minor>A.minor){return true}if(this.rev<A.rev){return false}return true};deconcept.util={getRequestParameter:function(D){var C=document.location.search||document.location.hash;if(D==null){return C}if(C){var B=C.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==D){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var C=document.getElementsByTagName("OBJECT");for(var B=C.length-1;B>=0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject
var e24Videos=function(F,C,B,A){this.clientid=F;this.videoid=B;this.sequenceid=C;this.e24_SERVER=A.server;this.swf=A.swf?A.swf:"e24presenter2.swf";this.demourl=A.demourl;this.onclose=A.onclose;this.onbeforeplay=A.onbeforeplay;this.onfixpos=A.onfixpos;this.video=A.video;this.eventPosition=this.position;this.eventKeyDown=this.keyboardListener;var E="";try{var E=window.location}catch(D){}window.ie6=/msie|MSIE 6/.test(navigator.userAgent)};e24Videos.prototype={calcPosition:function(){var A=this.video;var J=76;var K=40;var G=0;if(A.margin){G=A.margin}if(this.demourl){}if(A.position=="layered"&&this.containerLayer){var H=this.containerLayer.getSize();containerWidth=this.containerLayer.width();containerHeight=this.containerLayer.height();this.divposition="relative"}else{this.containerLayer=$("body");if(self.innerHeight){if(document.documentElement.clientWidth){containerWidth=document.documentElement.clientWidth}else{containerWidth=self.innerWidth}containerHeight=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){containerWidth=document.documentElement.clientWidth;containerHeight=document.documentElement.clientHeight}else{if(document.body){containerWidth=document.body.clientWidth;containerHeight=document.body.clientHeight}}}if(A.position=="fixed"){this.divposition=window.ie6?"absolute":"fixed"}else{this.divposition=A.position}}var I=A.posx*1;var E=A.posy*1;var B=A.width*1;var L=A.height*1;var D=I+(B-J)/2;var C=E+(L-K)/2;switch(A.alignment){case"top-left":E=0+G;I=0+G;D=I;C=E;break;case"top-center":E=0+G;I=(containerWidth-B)/2;D=I+(B-J)/2;C=E;break;case"top-right":E=0+G;I=containerWidth-B-G;D=I+B-J-G;C=E;break;case"center-left":E=(containerHeight-L)/2;I=0+G;D=I;C=E+(L-K)/2;break;case"center-center":E=(containerHeight-L)/2;I=(containerWidth-B)/2;D=I+(B-J)/2;C=E+(L-K)/2;break;case"center-right":E=(containerHeight-L)/2;I=containerWidth-B-G;D=I+B-J;C=E+(L-K)/2;break;case"bottom-left":E=containerHeight-L-G;I=0+G;D=I+0;C=E+L-K;break;case"bottom-center":E=containerHeight-L-G;I=(containerWidth-B)/2;D=I+(B-J)/2;C=E+L-K;break;case"bottom-right":E=containerHeight-L-G;I=containerWidth-B-G;D=I+B-J;C=E+L-K;break}var M,F;if(self.pageYOffset){F=self.pageYOffset;M=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){F=document.documentElement.scrollTop;M=document.documentElement.scrollLeft}else{if(document.body){F=document.body.scrollTop;M=document.body.scrollLeft}}}this.posy=E+(A.position=="fixed"&&window.ie6?F:0);this.posx=I+(A.position=="fixed"&&window.ie6?M:0);this.buttonx=D+(A.position=="fixed"&&window.ie6?M:0);this.buttony=C+(A.position=="fixed"&&window.ie6?F:0)},render:function(A){var C=this.video;if(A){if(A.onclose){this.onclose=A.onclose}if(A.onbeforeplay){this.onbeforeplay=A.onbeforeplay}if(A.onfixpos){this.onfixpos=A.onfixpos}if(A.video){this.video=A.video}}if(this.sequenceid!=-1){var D=this.sequenceid}else{var D=this.videoid}if(window.parent&&!window.parent.e24Presentor){if(C.debug){return false}}this.containerLayer=$("#"+C.layer);this.calcPosition();if($("#e24-container"+D)){$("#e24-container"+D).remove()}this.videocontainer=$('<div id="e24-container'+D+'" />').appendTo(this.containerLayer);this.videocontainer.css({"position":this.divposition,"left":this.posx+"px","top":this.posy+"px","width":C.width+"px","height":C.height+"px","z-index":111112,"display":"block"});if(C.options){this.videocontainer.attr("styles","position:"+this.divposition+";left:"+this.posx+"px;top:"+this.posy+"px;width:"+C.width+"px;height:"+C.height+"px;z-index:111112;display:block;"+C.options)}if($("#e24-playbtn"+D)){$("#e24-playbtn"+D).remove()}if(C.showbutton){this.playbtn=$('<img id="e24-playbtn'+D+'" />').appendTo(this.containerLayer);this.playbtn.attr("src",this.e24_SERVER+"media/images/playbtn.gif");this.playbtn.css({"position":this.divposition,"left":this.buttonx+"px","top":this.buttony+"px","width":"auto","height":"auto","z-index":111112,"cursor":"pointer","display":"none"});var B=this;this.playbtn.click(function(E){B.showPlayer.apply(B,[E])})}this.so=new SWFObject(this.e24_SERVER+this.swf,"e24Presenter",C.width,C.height,"ffffff");this.so.addParam("quality","high");this.so.addParam("allowScriptAccess","always");this.so.addParam("allowFullScreen","false");this.so.addParam("salign","lt");this.so.addParam("wmode","transparent");if(this.sequenceid!=-1){this.so.addVariable("sequenceid",this.sequenceid)}this.so.addVariable("videoid",this.videoid);this.so.addVariable("contextid",D);this.so.addVariable("clientid",this.clientid);this.so.addVariable("langid",C.langid);this.so.write(this.videocontainer);var B=this;if(C.position=="fixed"){$(window).resize(function(E){B.eventPosition.apply(B,[E])});if(window.ie6){$(window).scroll(function(E){B.eventPosition.apply(B,[E])})}}$(document).keydown(function(E){B.eventKeyDown.apply(B,[E])})},keyboardListener:function(A){if(A&&A.keyCode==27){this.defaultClose()}},position:function(){this.calcPosition();if(this.videocontainer){this.videocontainer.css({left:this.posx,top:this.posy});if(this.playbtn){this.playbtn.css({left:this.buttonx,top:this.buttony})}if(this.onfixpos){this.onfixpos()}}},showPlayer:function(){if(this.onbeforeplay){this.onbeforeplay()}if(this.playbtn){this.playbtn.css("display","none")}this.so.write(this.videocontainer);this.videocontainer.css("display","block")},goTo:function(A){location.replace(A)},defaultClose:function(){$(document).unbind("keydown");if(this.videocontainer){this.videocontainer.css("display","none");if(this.playbtn){this.playbtn.css("display","block")}if(this.onclose){this.onclose()}this.videocontainer.empty()}}}