function loadFile(a){thisMovie("mediaplayer").loadFile(a)}function getUpdate(e,d,c){var f=document.getElementById(e);f.innerHTML=e+": "+Math.round(d);c==undefined?null:f.innerHTML+="<->"+Math.round(c);if(e=="state"&&d==3&&state==0){var b=document.getElementById("player");var a=document.getElementById("mediaplayer");UFO.create(FO_main,"player");state=1}}function copyText(b,d,c,a){if(window.flashval){window.document.flashval.SetVariable("id",1)}if(document.flashval){document.flashval.SetVariable("id",1)}if(window.flashval){window.document.flashval.SetVariable("fvid",b)}if(document.flashval){document.flashval.SetVariable("fvid",b)}if(window.flashval){window.document.flashval.SetVariable("fgid",d)}if(document.flashval){document.flashval.SetVariable("fgid",d)}if(window.flashval){window.document.flashval.SetVariable("flvurl",c)}if(document.flashval){document.flashval.SetVariable("flvurl",c)}if(window.flashval){window.document.flashval.SetVariable("mmo",a)}if(document.flashval){document.flashval.SetVariable("mmo",a)}}function showUrl(b,a){a=a.replace(/(&)/g,"|");if(b!=""){window.open(b+"&con="+a)}}function switchpage(d,e,c){var b=getId(d+c);var a=getId(d+e);b.style.display="none";a.style.display=""}var gamelist_pre_no=1;function gamelist_page(b){var a=getId("game-list-tab").getElementsByTagName("a");for(var c=0;c<a.length;c++){a[c].className=""}a[b-1].className="had";switchpage("game-list-con",b,gamelist_pre_no);gamelist_pre_no=b;return false}function doDisplay(){var c=getId("game-list");var b=getId("game-con");var a=getId("gamelistbtn");if(b.style.display=="none"){b.style.display="block"}else{b.style.display="none"}return false}function showGamelist(){var c=getId("game-list");var b=getId("game-con");var a=getId("gamelistbtn");b.style.display="none";a.onclick=doDisplay;getId("game-list-close-btn").onclick=doDisplay}var Speed_1=10;var Space_1=20;var PageWidth_1=145;var interval_1=7000;var fill_1=0;var MoveLock_1=false;var MoveTimeObj_1;var MoveWay_1="right";var Comp_1=0;var AutoPlayObj_1=null;function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval("document.all."+objName)}}function showtop(){var a=vd_top.length;if(a>0){document.write("<div class='rcol1_1'>\r\n");document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>\r\n");document.write("<tr>\r\n");document.write("<td><a target='_blank' href='/display.php?gid="+vd_top[0]["gid"]+"&vid="+vd_top[0]["vid"]+"' title='"+vd_top[0]["title"]+"'><img src='"+vd_top[0]["picture"]+"' alt="+vd_top[0]["title"]+" width='84' height='63' /></a></td>\r\n");document.write("<td><a target='_blank' href='/display.php?gid="+vd_top[0]["gid"]+"&vid="+vd_top[0]["vid"]+"' title='"+vd_top[0]["title"]+"'><h5>"+vd_top[0]["title"]+"</a></h5>"+vd_top[0]["desc"]+"</td></table>\r\n");document.write("<div class='rcol1_2'>\r\n");document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>\r\n");document.write("<tr>\r\n");document.write("<th></th><th width='213'>Ranking Videos</th>\r\n");document.write("<th align='center' width='47'>Views</th>\r\n");document.write("</tr>\r\n");for(i=1;i<a;i++){document.write("<tr>\r\n");document.write(" <td width='30'><div class='n"+(i+1)+"'>"+(i+1)+"</div></td>\r\n");document.write("<td><a target='_blank' href='/display.php?gid="+vd_top[i]["gid"]+"&vid="+vd_top[i]["vid"]+"' class='"+((i==1||i==2)?("s"+i):"")+"' title='"+vd_top[i]["title"]+"'>"+vd_top[i]["title"]+"</a></td>\r\n");document.write("<td align='center'>"+vd_top[i]["view"]+"</td>\r\n");document.write("</tr>\r\n")}document.write("</table>\r\n");document.write("</div></div>\r\n")}}function showhotmusic(){var a=vd_hotmusic.length;for(i=1;i<a;i++){document.write("<li>\r\n");document.write("<a target='_blank' href='/display.php?gid="+vd_hotmusic[i]["gid"]+"&vid="+vd_hotmusic[i]["vid"]+"'title='"+vd_hotmusic[i]["title"]+"' >"+vd_hotmusic[i]["title"]+"</a>\r\n");document.write("</li>\r\n")}}function showhotvideo(){var a=vd_hotvideo.length;for(i=1;i<a;i++){document.write("<li>\r\n");document.write("<a target='_blank' class='hot_v_t' href='/display.php?gid="+vd_hotvideo[i]["gid"]+"&vid="+vd_hotvideo[i]["vid"]+"' title='"+vd_hotvideo[i]["title"]+"' >"+vd_hotvideo[i]["title"]+"</a><span class='numb'>"+vd_hotvideo[i]["view"]+"</span></li>\r\n")}}function OpenDoor(d,c){this.imgsrc="";var a=this;a.timer="";a.count=0;a.clock=d||10;a.step=c||5;var g=new Array();var e;function f(l){if(document.getElementById(l)){return document.getElementById(l)}else{return false}}function k(){var m=f("door_1");var l=f("door_2");var n=m.offsetWidth;if(a.count<=n){m.style.backgroundPosition="-"+a.count+"px 0";l.style.backgroundPosition=a.count+"px 0";a.count+=a.step}else{m.style.backgroundPosition="-"+n+"px 0";l.style.backgroundPosition=n+"px 0";m.style.backgroundPosition="0 0";l.style.backgroundPosition="0 0";if(f("player_ex")){f("player_ex").style.display="block"}if(f("player")){f("player").style.border="1px solid #666";doplayer()}clearInterval(a.timer)}}function h(){for(var l=0;l<a.imgsrc.length;l++){g[l]=new Image();g[l].src=a.imgsrc[l];g[l].imgReadyStatus=false;if(g[l].complete){g[l].imgReadyStatus=true;continue}g[l].onload=function(){this.imgReadyStatus=true};g[l].onerror=function(){this.err=true}}}function b(){var l=true;for(i=0;i<g.length;i++){if(g[i].err){a.timer=setInterval(k,a.clock);return}}for(i=0;i<g.length;i++){if(!g[i].imgReadyStatus){l=false}}if(l){a.timer=setInterval(k,a.clock);clearTimeout(e)}else{e=setTimeout(b,1000)}}this.start=function(){h();b()}}function setSort(c){var a=window.location.href;if(a.indexOf(c)>=0){var b=document.getElementById("sortBox").getElementsByTagName("a");b[0].className="";b[1].className="text_on"}}function setSort2(c){var a=window.location.href;if(a.indexOf(c)>=0){var b=document.getElementById("sortBox").getElementsByTagName("a");b[0].className="text_on";b[1].className=""}}function getCommentSize(a,d){var c="/port/get_comment.php?op=getsize&comment=";a=c+a;var b=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();b.open("GET",a,true);b.onreadystatechange=function(){if(b.readyState==4){document.getElementById(d).innerHTML=b.responseText}};b.send(null)}function UE_Recommend(f){var b=1;var g;var c=this;function d(l){return document.getElementById(l)}function k(){try{if(f==null){return}var m="";m+='<h4>Now Playing<dl><dd><a href="#" id="play_prev">prev video</a></dd>';m+='	<dd>|</dd><dd class="ico_p"><a href="#" id="play_next">next video</a></dd>';m+="	</dl></h4>";m+='	<div id="play_info"></div>';d("play").innerHTML=m;h(1,"0");d("play_prev").onclick=function(){b=(b==1)?b:(b-1);h(b,"1");return false};d("play_next").onclick=function(){b=(b==9)?b:(b+1);h(b,"1");return false}}catch(l){}}function h(m,n){try{if(d("flashval1")==null){return}e(m-1);if(n=="0"){var p="";for(var l=0;l<f.length;l++){p+=f[l].flv_url+"-"+f[l].flv_img;if(l<8){p+="|"}}d("flashval1").changeVideo(m+"",n,p)}else{d("flashval1").changeVideo(m+"",n)}}catch(o){}}function e(l){try{var n="";n+='	<p class="tit_p textover"><a href="'+f[l].url+'" title="'+f[l].title+'">'+f[l].title+"</a></p>";n+='	<p class="text_p">Posted '+f[l].posted_time+'  |  <span class="color_1">'+f[l].views+"</span> views</p>";n+='	<p class="btnbox">';n+='		<a href="'+f[l].url+'" title="Play now" class="playnow" target="_blank"></a>';n+='		<a href="'+f[l].download_url+'" title="Download" class="download" target="_blank"></a>';n+='		<a href="'+f[l].url+'" title="Comment" class="comment" target="_blank"><span id="cmt_num"></span></a>';n+="	</p>";if(d("play_info")!=null){d("play_info").innerHTML=n}a(f[l].comment_url)}catch(m){}}function a(l){try{var o="/port/get_comment.php?op=getsize&comment=";l=o+l;var n=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();n.open("GET",l,true);n.onreadystatechange=function(){if(n.readyState==4){document.getElementById("cmt_num").innerHTML="Comment("+n.responseText+")"}};n.send(null)}catch(m){}}this.initVideoFun=function(){k()};this.changeInfoFun=function(l){b=l-0;e(b-1)};this.changeV=function(l){if(f==null){return}b=l;h(l,"1")}}function changeInfoFun(b){try{rec.changeInfoFun(b)}catch(a){}}function InitVideoFun(){try{rec.initVideoFun()}catch(a){}}if(typeof deconcept=="undefined"){var deconcept={}}if(typeof deconcept.util=="undefined"){deconcept.util={}}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil={}}deconcept.SWFObject=function(f,d,o,g,l,n,p,k,a,e){if(!document.getElementById){return}this.DETECT_KEY=e?e:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(f){this.setAttribute("swf",f)}if(d){this.setAttribute("id",d)}if(o){this.setAttribute("width",o)}if(g){this.setAttribute("height",g)}if(l){this.setAttribute("version",new deconcept.PlayerVersion(l.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){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(n){this.addParam("bgcolor",n)}var b=p?p:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var m=(k)?k:window.location;this.setAttribute("xiRedirectUrl",m);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=[];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")?document.getElementById(a):a;c.innerHTML=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(f){d=null}}}else{try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(f){try{var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new deconcept.PlayerVersion([6,0,21]);d.AllowScriptAccess="always"}catch(f){if(c.major==6){return c}}try{d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(f){}}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(!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;function showSearchDiv(e,c,b,a){var e,c,b;obj=document.getElementById(c);var f=$("#"+e);var d=$("#"+c);if(obj.value==""){return}$.getJSON(SITE_URL+"default.php?controller=port&action=getGameSearch",{sword:obj.value},function(k){var h=k.length;if(h==0){var g="";f.css("display","none")}else{var g="<ul>";for(i=0;i<h;i++){g+="<li name='"+b+"' id='"+b+i+"' onclick='setSname(this,\""+c+"\");' onmousemove='setBColor(\""+b+i+'","'+b+'","'+a+"\");'>"+k[i]["game_name"]+"</li>"}g+="</ul>";f.html(g);f.css("width",obj.offsetWidth+"px");f.css("display","block")}})}function setSname(b){var a=$("#"+id2);a.val(b.innerHTML);hideSearchDiv()}function hideSearchDiv(){$("#search_div,#search_div2").css("display","none")}function setBColor(c,b,a){$("#"+c).css("background-color",a);$("#"+c).attr("class","on");for(i=0;i<10;i++){if($("#"+b+i).attr("name")){if($("#"+b+i).attr("id")==c){continue}else{$("#"+b+i).css("background-color","");$("#"+b+i).attr("class","")}}else{break}}}function kbSel(f,a,b,d){var a,b,d;var g=$("#"+d);var c=$("#"+b);flag=false;if(g.css("display")!="none"){if(f==40){for(i=0;i<9;i++){if(!$("#"+a+i).attr("name")){i--;break}}for(j=0;j<(i+1);j++){if($("#"+a+j).attr("class")=="on"){flag=true;break}}if(flag){if(j!=i){$("#"+a+j).css("background-color","");$("#"+a+j).attr("class","");$("#"+a+(j+1)).css("background-color","#000");$("#"+a+(j+1)).attr("class","on");c.val($("#"+a+(j+1)).html())}else{$("#"+a+j).css("background-color","#000");$("#"+a+j).attr("class","on");c.val($("#"+a+j).html())}}else{c.val($("#"+a+"0").html());$("#"+a+"0").css("background-color","#000");$("#"+a+"0").attr("class","on")}}if(f==38){for(i=0;i<9;i++){if(!$("#"+a+i).attr("name")){break}}for(j=0;j<(i+1);j++){if($("#"+a+j).attr("class")=="on"){c.val($("#"+a+j).html());flag=true;break}}if(flag){if(j!=0){$("#"+a+j).css("background-color","");$("#"+a+j).attr("class","");$("#"+a+(j-1)).css("background-color","#000");$("#"+a+(j-1)).attr("class","on");c.val($("#"+a+(j-1)).html())}}else{$("#"+a+"0").css("background-color","#000");$("#"+a+"0").attr("class","on");c.val($("#"+a+"0").html())}}}}document.onclick=function(a){a=window.event||a;var b=a.srcElement?a.srcElement:a.target;hideSearchDiv()};document.onkeyup=function(a){a=window.event||a;var b=a.srcElement?a.srcElement:a.target;if(b.getAttribute("id")=="s_words2"){if(a.keyCode==38||a.keyCode==40){kbSel(a.keyCode,"listword","s_words2","search_div2")}else{showSearchDiv("search_div2","s_words2","listword","#FFFFCF")}}else{if(b.getAttribute("id")=="s_words"){if(a.keyCode==38||a.keyCode==40){kbSel(a.keyCode,"lisword","s_words","search_div")}else{showSearchDiv("search_div","s_words","lisword","#000")}}}};function shareThis(a){var c=window.location.href;var d=document.title;var e="";c=encodeURIComponent(c);d=encodeURIComponent(d);d=d.replace("'","\\'");function b(g,f){window.open(g+c+f+d,"BBGsite","scrollbars=yes,menubar=yes,width=800,height=600,resizable=yes,toolbar=no,location=no,status=no")}switch(a){case"buzz":b("http://www.addtoany.com/add_to/google_buzz?linkurl=","&linkname=");return false;break;case"twitter":headUrl="http://twitter.com/home?status=";window.open(headUrl+d+"-"+c,"BBGsite","scrollbars=yes,menubar=yes,width=800,height=600,resizable=yes,toolbar=no,location=no,status=no");return false;break;case"facebook":b("http://www.facebook.com/sharer.php?u=","&t= ");return false;break;case"diggthis":b("http://digg.com/submit?url=","&title= ");return false;break;case"delicious":b("http://delicious.com/post?url=","&title= ");return false;break;case"stumble":b("http://www.stumbleupon.com/submit?url=","&title= ");return false;break;case"myspace":b("http://www.myspace.com/Modules/PostTo/Pages/?u=","&t= ");return false;break;default:alert("We will suppport more sites later.");return false}}function dropsubmenu(a){var b=function(c){return document.getElementById(c)};b("second_"+a).style.display=(b("second_"+a).style.display=="none")?"":"none"}var sb=0;var sba=0;function mychg(a){var b=function(c){return document.getElementById(c)};if(sba==1){sbb=b("lm"+a).style.display;b("lm"+a).style.display=sbb=="none"?"block":"none";b("father"+a).className=b("father"+a).className==""?"on":""}else{if(sb!=0){b("lm"+sb).style.display="none";b("father"+sb).className=""}if(sb!=a){b("lm"+a).style.display="block";b("father"+a).className="on";sb=a}else{sb=0}}}(function(a){a.fn.tab=function(c){var e=jQuery.extend({isWinLoad:true,isAutoPlay:false,bind:"click",defIndex:0,tabOnCssName:"tabon",tabBodyList:"#tabBody > li"},c);var l=a(this);var o=e.isWinLoad,f=e.isAutoPlay,k=e.bind,g=e.defIndex,p=e.tabOnCssName,d=a(e.tabBodyList);var n=l.size();gotoIndex=function(q){if(q>=n){q=0}else{if(q<0){q=n-1}}l.eq(g).removeClass(p);l.eq(q).addClass(p);d.eq(g).hide();d.eq(q).show();g=q;return false};gotoIndex(g);l.each(function(q){a(this).bind(k,function(){gotoIndex(q)})});var m;var h=function(){m=window.setInterval(function(){var q=g+1;gotoIndex(q)},1000)};var b=function(){window.clearInterval(m)};if(f){if(o){a(window).load(h)}else{h()}l.hover(b,h);d.hover(b,h)}return{gotoIndex:gotoIndex,defIndex:g}}})(jQuery);(function(b){if(!document.defaultView||!document.defaultView.getComputedStyle){var d=jQuery.curCSS;jQuery.curCSS=function(g,e,h){if(e==="background-position"){e="backgroundPosition"}if(e!=="backgroundPosition"||!g.currentStyle||g.currentStyle[e]){return d.apply(this,arguments)}var f=g.style;if(!h&&f&&f[e]){return f[e]}return d(g,"backgroundPositionX",h)+" "+d(g,"backgroundPositionY",h)}}var c=b.fn.animate;b.fn.animate=function(e){if("background-position" in e){e.backgroundPosition=e["background-position"];delete e["background-position"]}if("backgroundPosition" in e){e.backgroundPosition="("+e.backgroundPosition}return c.apply(this,arguments)};function a(f){f=f.replace(/left|top/g,"0px");f=f.replace(/right|bottom/g,"100%");f=f.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var e=f.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(e[1],10),e[2],parseFloat(e[3],10),e[4]]}b.fx.step.backgroundPosition=function(f){if(!f.bgPosReady){var h=b.curCSS(f.elem,"backgroundPosition");if(!h){h="0px 0px"}h=a(h);f.start=[h[0],h[2]];var e=a(f.options.curAnim.backgroundPosition);f.end=[e[0],e[2]];f.unit=[e[1],e[3]];f.bgPosReady=true}var g=[];g[0]=((f.end[0]-f.start[0])*f.pos)+f.start[0]+f.unit[0];g[1]=((f.end[1]-f.start[1])*f.pos)+f.start[1]+f.unit[1];f.elem.style.backgroundPosition=g[0]+" "+g[1]}})(jQuery);function video_AD(l){l={imgsrc:l.imgsrc,url:l.url,_x:l._x};var b=!-[1,];var g=[];var c=$("#door_1");var a=$("#door_2");function h(n,o){var m=new Image();m.src=n;if(m.complete){o.call(m);return}m.onload=function(){o.call(m)}}function k(){g.push(this)}if(l.imgsrc){for(i=0;i<l.imgsrc.length;i++){h(l.imgsrc[i],k)}c.click(function(){window.open(l.url)});a.click(function(){window.open(l.url)});e()}else{doplayer()}function f(){c.css({"background-image":"url("+l.imgsrc[0]+")","background-position":-l._x+"px 0",opacity:0});a.css({"background-image":"url("+l.imgsrc[1]+")","background-position":l._x+"px 0",opacity:0});$("#player").css({opacity:0});c.animate({backgroundPosition:"0 0",opacity:1},2000);a.animate({backgroundPosition:"0 0",opacity:1},2000,function(){doplayer();setTimeout(function(){$("#player").animate({opacity:1},1000)},1000)})}var d=10;function e(){if(g.length>=2){f()}else{if(d){setTimeout(f,100);d--}else{f()}}}};

