var videoPreviewInitSize=[138,122];var imageOrgWidth;var imageOrgHeight;var videoPreviewOver=null;var zoomVidAnimation;var zoomAnimID=0;var translateVidAnimation;var previewBarWidth;function include(B){if(document.getElementsByTagName){var A=document.createElement("script");A.type="text/javascript";A.src=B;bodys=document.getElementsByTagName("body");if(bodys&&bodys.length>0){bodys[0].appendChild(A)}}}function initialize(){var C=document.getElementById("preview_bar");previewBarWidth=C.offsetWidth;updateArrowsDisplay();zoomVidAnimation=new zoomAnimation();translateVidAnimation=new translateAnimation();imageOrgWidth=new Array();imageOrgHeight=new Array();imageOrgWidth[0]=130;imageOrgHeight[0]=97;imageOrgWidth[1]=160;imageOrgHeight[1]=120;imageOrgWidth[2]=134;imageOrgHeight[2]=78;var E=document.getElementById("preview_bar_inner");var B=E.childNodes;for(var D=0;D<B.length;D++){var G=B[D];if(G.className=="video_preview"){G.centerPos=[G.offsetLeft+videoPreviewInitSize[0]/2,G.offsetTop+videoPreviewInitSize[1]/2];G.onmouseover=onVideoPreviewOver;G.onclick=playvideo}}document.onmousemove=onDocMouseMove;var F=document.getElementById("arrow_left");var A=document.getElementById("arrow_right");F.onmousedown=scrollLeftPreviewBar;A.onmousedown=scrollRightPreviewBar}var enter=false;function updateArrowsDisplay(){var C=document.getElementById("arrow_left");var A=document.getElementById("arrow_right");var B=document.getElementById("preview_bar_inner");if(B.offsetLeft<=-previewBarWidth){C.style.background='url("./images/arrowLeft15.png") no-repeat'}else{C.style.background='url("./images/arrowLeftOff15.png") no-repeat'}if(B.offsetLeft>-B.offsetWidth+previewBarWidth){A.style.background='url("./images/arrowRight15.png") no-repeat'}else{A.style.background='url("./images/arrowRightOff15.png") no-repeat'}}function scrollLeftPreviewBar(){var A=document.getElementById("preview_bar_inner");if(A.offsetLeft<=-previewBarWidth){translateVidAnimation.element=A;translateVidAnimation.leftStart=A.offsetLeft;translateVidAnimation.topStart=A.offsetTop;translateVidAnimation.leftEnd=A.offsetLeft+previewBarWidth;translateVidAnimation.topEnd=A.offsetTop;translateVidAnimation.animSteps=40;translateVidAnimation.postProcess=updateArrowsDisplay;translateVidAnimation.play()}}function scrollRightPreviewBar(){var A=document.getElementById("preview_bar_inner");if(A.offsetLeft>-A.offsetWidth+previewBarWidth){translateVidAnimation.element=A;translateVidAnimation.leftStart=A.offsetLeft;translateVidAnimation.topStart=A.offsetTop;translateVidAnimation.leftEnd=A.offsetLeft-previewBarWidth;translateVidAnimation.topEnd=A.offsetTop;translateVidAnimation.animSteps=40;translateVidAnimation.postProcess=updateArrowsDisplay;translateVidAnimation.play()}}function onDocMouseMove(A){if(enter){var E=window.event?1:0;var D=E?window.event.clientX:A.pageX;var B=E?window.event.clientY:A.pageY;var F=getElementPosition(videoPreviewOver);var C=getElementSize(videoPreviewOver);if(!(D>=F[0]&&D<=F[0]+C[0]&&B>=F[1]&&B<=F[1]+C[1]+8)){scale=1.1;zoomVidAnimation=new zoomAnimation();zoomAnimID++;zoomVidAnimation.name="zoomAnimation"+zoomAnimID;window[zoomVidAnimation.name]=zoomVidAnimation;zoomVidAnimation.videoPreview=videoPreviewOver;zoomVidAnimation.widthStart=videoPreviewInitSize[0]*scale;zoomVidAnimation.heightStart=videoPreviewInitSize[1]*scale;zoomVidAnimation.widthEnd=videoPreviewInitSize[0];zoomVidAnimation.heightEnd=videoPreviewInitSize[1];zoomVidAnimation.play();videoPreviewOver=null;enter=false}}}function onVideoPreviewOver(){if(!enter){if(videoPreviewOver){scale=1.1;zoomVidAnimation=new zoomAnimation();zoomAnimID++;zoomVidAnimation.name="zoomAnimation"+zoomAnimID;window[zoomVidAnimation.name]=zoomVidAnimation;zoomVidAnimation.videoPreview=videoPreviewOver;zoomVidAnimation.widthStart=videoPreviewInitSize[0]*scale;zoomVidAnimation.heightStart=videoPreviewInitSize[1]*scale;zoomVidAnimation.widthEnd=videoPreviewInitSize[0];zoomVidAnimation.heightEnd=videoPreviewInitSize[1];zoomVidAnimation.play()}videoPreviewOver=this;enter=true;scale=1.1;zoomVidAnimation=new zoomAnimation();zoomAnimID++;zoomVidAnimation.name="zoomAnimation"+zoomAnimID;window[zoomVidAnimation.name]=zoomVidAnimation;zoomVidAnimation.videoPreview=videoPreviewOver;zoomVidAnimation.widthStart=videoPreviewInitSize[0];zoomVidAnimation.heightStart=videoPreviewInitSize[1];zoomVidAnimation.widthEnd=videoPreviewInitSize[0]*scale;zoomVidAnimation.heightEnd=videoPreviewInitSize[1]*scale;zoomVidAnimation.play()}}function scale(D,C,E){var F=[D.offsetLeft,D.offsetTop];var B=getElementSize(D);if(!E){E=[F[0]+B[0]/2,F[1]+B[1]/2];if(D.style){D.style.left=E[0]+(F[0]-E[0])*C+"px";D.style.top=E[1]-1+(F[1]-E[1])*C+"px"}}if(D.tagName=="img"){D.width=D.width*C}if(D.style){if(D.style.width.substring(D.style.width.length-2)=="px"){D.style.width=B[0]*C+"px"}if(D.style.height.substring(D.style.height.length-2)=="px"){D.style.height=B[1]*C+"px"}}for(var A=0;A<D.childNodes.length;A++){scale(D.childNodes[A],C,E)}}function playvideo(){var C=this;var A=C.getAttribute("vid_src");var B=C.getAttribute("vid_id");playvideoid(A,B)}function playvideourl(C,A){if(C=="0"){var B=A+"&autoplay=1";var D=new SWFObject(B,"movie","425","355","8","#FFFFFF");D.addParam("wmode","transparent");D.write("playerplace")}else{if(C=="1"){var B=A;var D=new SWFObject(B,"movie","425","355","8","#FFFFFF");D.addVariable("autoStart","1");D.addParam("wmode","transparent");D.write("playerplace")}else{if(C=="2"){var B=A;var D=new SWFObject(B,"movie","425","355","8","#FFFFFF");D.addParam("wmode","transparent");D.write("playerplace")}}}}function playvideoid(A,B){if(A==0){vid_url="http://www.youtube.com/v/"+B}else{if(A==1){vid_url="http://www.dailymotion.com/swf/"+B}else{if(A==2){vid_url="http://www.metacafe.com/fplayer/"+B+".swf"}}}playvideourl(A,vid_url)}function getElementPosition(B){var C=0;var A=0;if(B.offsetParent){C=B.offsetLeft;A=B.offsetTop;while(B=B.offsetParent){C+=B.offsetLeft;A+=B.offsetTop}}return[C,A]}function getElementSize(A){return[A.offsetWidth,A.offsetHeight]}var zoomAnimation=function(){this.videoPreview=null;this.widthStart=0;this.heightStart=0;this.widthEnd=0;this.heightEnd=0;this.animSteps=10;this.animStep=0;this.name=null};zoomAnimation.prototype.play=function(){if(this.timer){clearTimeout(this.timer)}if(this.videoPreview){this.vid_src=this.videoPreview.getAttribute("vid_src");var D=this.videoPreview.childNodes;var C=0;while(C<D.length&&D[C].className!="image_border"){C++}this.imageBorder=D[C];var A=this.imageBorder.childNodes;C=0;while(C<A.length&&A[C].className!="image_background"){C++}this.imageBkg=A[C];var B=this.imageBkg.childNodes;C=0;while(C<B.length&&B[C].className!="image_thumb"){C++}this.imageThumb=B[C];C=0;while(C<D.length&&D[C].className!="title"){C++}this.vidTitle=D[C];this.animStep=0;this.next()}};zoomAnimation.prototype.next=function(){if(this.animStep<=this.animSteps){this.setSize(this.videoPreview,Math.round(this.widthStart+(this.widthEnd-this.widthStart)*this.animStep/this.animSteps),Math.round(this.heightStart+(this.heightEnd-this.heightStart)*this.animStep/this.animSteps))}this.animStep++;if(this.animStep<=this.animSteps){this.timer=setTimeout('window["'+this.name+'"].next();',10)}else{window[this.name]=null}};zoomAnimation.prototype.setSize=function(B,C,K){var J=this.vid_src;var A=C-5;var E=A*3/4;var I=B.previousSibling;while(I&&I.className!="shadow"){I=I.previousSibling}if(I){I.style.left=Math.round(B.centerPos[0]-C*0.5)+C-138+"px";I.style.top=Math.round(B.centerPos[1]-K*0.5)+K-123+"px"}B.style.left=Math.round(B.centerPos[0]-C*0.5)+"px";B.style.top=Math.round(B.centerPos[1]-K*0.5)+"px";B.style.width=C+"px";B.style.height=K+"px";var L=this.imageBorder;L.style.width=C-4+"px";L.style.height=E+"px";var D=this.imageBkg;var F=this.imageThumb;var H=getElementSize(F);if(imageOrgWidth[J]*E>A*imageOrgHeight[J]){var G=Math.round(imageOrgHeight[J]*A/imageOrgWidth[J]);if(Math.abs(A-imageOrgWidth[J])>1){thWidth=A}else{thWidth=imageOrgWidth[J]}}else{thWidth=Math.round(imageOrgWidth[J]*E/imageOrgHeight[J]);if(Math.abs(E-imageOrgHeight[J])>1){G=E}else{G=imageOrgHeight[J]}}F.style.top=Math.round((E-G)*0.5)+"px";F.style.width=thWidth+"px";F.style.height=G+"px";this.vidTitle.style.width=C+"px"};var translateAnimation=function(){this.element=null;this.leftStart=0;this.topStart=0;this.leftEnd=0;this.topEnd=0;this.animSteps=10;this.animStep=0;this.postProcess=null};translateAnimation.prototype.play=function(){clearTimeout(this.timer);if(this.element){this.animStep=0;window.currentTranslateAnimation=this;this.next()}};translateAnimation.prototype.next=function(){this.setPos(this.element,Math.round(this.leftStart+(this.leftEnd-this.leftStart)*this.animStep/this.animSteps),Math.round(this.topStart+(this.topEnd-this.topStart)*this.animStep/this.animSteps));this.animStep++;if(this.animStep<=this.animSteps){this.timer=setTimeout("window.currentTranslateAnimation.next();",10)}else{this.postProcess()}};translateAnimation.prototype.setPos=function(A,C,B){A.style.left=C+"px";A.style.top=B+"px"};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(K,B,L,D,H,I,F,E,C,J){if(!document.getElementById){return }this.DETECT_KEY=J?J:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(K){this.setAttribute("swf",K)}if(B){this.setAttribute("id",B)}if(L){this.setAttribute("width",L)}if(D){this.setAttribute("height",D)}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(I){this.addParam("bgcolor",I)}var A=F?F:"high";this.addParam("quality",A);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var G=(E)?E:window.location;this.setAttribute("xiRedirectUrl",G);this.setAttribute("redirectUrl","");if(C){this.setAttribute("redirectUrl",C)}};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(B,A){this.params[B]=A},getParams:function(){return this.params},addVariable:function(B,A){this.variables[B]=A},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var C=new Array();var B;var A=this.getVariables();for(B in A){C[C.length]=B+"="+A[B]}return C},getSWFHTML:function(){var B="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}B='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'"';B+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var F=this.getParams();for(var E in F){B+=[E]+'="'+F[E]+'" '}var D=this.getVariablePairs().join("&");if(D.length>0){B+='flashvars="'+D+'"'}B+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}B='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+this.getAttribute("style")+'">';B+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var E in C){B+='<param name="'+E+'" value="'+C[E]+'" />'}var A=this.getVariablePairs().join("&");if(A.length>0){B+='<param name="flashvars" value="'+A+'" />'}B+="</object>"}return B},write:function(B){if(this.getAttribute("useExpressInstall")){var A=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(A)&&!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 B=="string")?document.getElementById(B):B;C.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var E=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){E=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 B=1;var C=3;while(B){try{C++;B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+C);E=new deconcept.PlayerVersion([C,0,0])}catch(D){B=null}}}else{try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E=new deconcept.PlayerVersion([6,0,21]);B.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(B!=null){E=new deconcept.PlayerVersion(B.GetVariable("$version").split(" ")[1].split(","))}}}return E};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(C){var D=document.location.search||document.location.hash;if(C==null){return D}if(D){var B=D.substring(1).split("&");for(var A=0;A<B.length;A++){if(B[A].substring(0,B[A].indexOf("="))==C){return B[A].substring((B[A].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var B=document.getElementsByTagName("OBJECT");for(var C=B.length-1;C>=0;C--){B[C].style.display="none";for(var A in B[C]){if(typeof B[C][A]=="function"){B[C][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