var AD2={};(function(G){var Q=Array.slice||(function(){var S=Array.prototype.slice;return function(T){return S.apply(T,S.call(arguments,1))}})(),M=function(T){var S=typeof T;if(S==="object"){if(T){if(typeof T.length==="number"){S="array"}}else{S="null"}}return S},J=function(T,S){return !N(S,function(U,W,V){if(T[W]!==U){return V}})},L=function(S,T){return J(S,T)&&J(T,S)},R=function(S){var T=true;C(S,function(U,W,V){T=false;return V});return T},C=(function(){var V={},U=function(a,W,Y){for(var Z=0,X=a.length;Z<X;Z++){if(W.call(Y,a[Z],Z,V)==V){return Z}}return -1},S={"string":function(Y,W,X){return U(Y.split(""),W,X)},"array":U,"number":function(Z,W,X){for(var Y=0;Y<Z;Y++){W.call(X,Y,Y)}},"object":function(Z,W,X){for(var Y in Z){if(Z.hasOwnProperty(Y)){if(W.call(X,Z[Y],Y,V)==V){return Y}}}return -1}},T=function(W){return S[M(W)]};return function(Y,W,X){return T(Y)(Y,W,X||Y)}})(),N=function(U,S,T){var V=C(U,function(W,Y,X){if(S.apply(T,arguments)===true){return X}});return V==-1?null:U[V]},F=function(V,S,U){var T=[];C(V,function(W){if(S.apply(U,arguments)===true){T.push(W)}});return T},I=function(V,S,U,W){var T;if(W){T={};C(V,function(X,Y){T[Y]=S.apply(U,arguments)})}else{T=[];C(V,function(){T.push(S.apply(U,arguments))})}return T},P=function(V,X,T,S,W){var U=Q(arguments,2);C(V,function(Y,Z){Y[X].apply(Y,U)})},O=function(S){if(S==null){return S}if(typeof S.length=="number"&&typeof S!="string"){return I(S,O)}else{if(typeof S=="object"){return I(S,O,null,true)}}return S},K=function(S){if(!S){S={}}for(var U=1;U<arguments.length;U++){var T=arguments[U];if(T){for(var V in T){if(S[V]&&typeof S[V]=="object"&&typeof T[V]=="object"){E(S[V],T[V])}else{S[V]=O(T[V])}}}}return S},E=function(S){if(!S){S={}}for(var U=1;U<arguments.length;U++){var T=arguments[U];if(T){for(var V in T){S[V]=T[V]}}}return S},A=function(S){if(!S){S={}}for(var U=1;U<arguments.length;U++){var T=arguments[U];if(T){for(var V in T){if(S[V]===undefined){S[V]=T[V]}}}}return S},H=(function(){var S=1;return function(){return"auto_gen_"+S++}})(),D={proto:(function(){var S=function(U,T){return this.prototype[T].apply(U,Q(arguments,2))};return function(T){T.proto=S}})(),create:function(T,V){var U=function(){if(this.init){this.init.apply(this,arguments)}};if(V){var W=function(){};W.prototype=V.prototype;U.prototype=new W()}var S=Q(arguments,2);S.unshift(U.prototype,T);E.apply(window,S);return U}},B=function(T,U,S,W){var V=W?encodeURIComponent:function(X){return X};return function(X){return I(X,function(Y,Z){if(Z!=null){return Z+T+V(Y)}}).join(U)+(S?U:"")}};E(G,{generateId:H,slice:Q,getType:M,equals:L,isEmpty:R,each:C,map:I,find:N,filter:F,mix:E,mixdeep:K,mixif:A,buffer:function(S,U){var T;return function(){if(T){clearTimeout(T)}var V=arguments;T=setTimeout(function(){S.apply(window,V)},U||100)}},Class:D,format:function(S,U,T){return S.replace(/\{([^}]*)\}/g,(typeof U=="object")?function(V,W){var X=U[W];return X==null&&T?V:X}:U)},getObjectToStringFn:B,serializeStyles:B(":",";",true,false),serializeAttrs:B("="," ",true,false),serializeQuery:B("=","&",false,true)})})(AD2);(function(K){var M='<{tag} {attrs}style="{styles}">{inner}</{tag}>',E=K.each,S={},R={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i},H=(function(){var U={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var V=navigator.userAgent,T;if((/KHTML/).test(V)){U.webkit=1}T=V.match(/AppleWebKit\/([^\s]*)/);if(T&&T[1]){U.webkit=parseFloat(T[1]);if(/ Mobile\//.test(V)){U.mobile="Apple"}else{T=V.match(/NokiaN[^\/]*/);if(T){U.mobile=T[0]}}}if(!U.webkit){T=V.match(/Opera[\s\/]([^\s]*)/);if(T&&T[1]){U.opera=parseFloat(T[1]);T=V.match(/Opera Mini[^;]*/);if(T){U.mobile=T[0]}}else{T=V.match(/MSIE\s([^;]*)/);if(T&&T[1]){U.ie=parseFloat(T[1])}else{T=V.match(/Gecko\/([^\s]*)/);if(T){U.gecko=1;T=V.match(/rv:([^\s\)]*)/);if(T&&T[1]){U.gecko=parseFloat(T[1])}}}}}return U})();var D=function(U,T){for(var V=U;V;V=V[T]){if(V.nodeType==1){return V}}},I=function(V,U,T,W){return K.format(M,{tag:T||"div",attrs:K.serializeAttrs(U||{}),styles:K.serializeStyles(V),inner:W||""})},O=function(U){if(!R.HYPHEN.test(U)){return U}if(S[U]){return S[U]}var T=U;while(R.HYPHEN.exec(T)){T=T.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}S[U]=T;return T},C=(function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(V,W){var U=null;if(W=="float"){W="cssFloat"}var T=document.defaultView.getComputedStyle(V,"");if(T){U=T[O(W)]}return V.style[W]||U}}else{if(document.documentElement.currentStyle&&H.ie){return function(U,V){switch(O(V)){case"opacity":var X=100;try{X=U.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(W){try{X=U.filters("alpha").opacity}catch(W){}}return X/100;case"float":V="styleFloat";default:var T=U.currentStyle?U.currentStyle[V]:null;return(U.style[V]||T)}}}else{return function(T,U){return T.style[U]}}}})(),P=(function(){var T=/left|top|right|bottom|width|height/;var U=function(W,V){if(T.test(W)&&typeof V=="number"){V=V+"px"}return V};if(H.ie){return function(V,W,X){W=O(W);switch(W){case"opacity":V.style.filter="alpha(opacity="+X*100+")";if(!V.currentStyle||!V.currentStyle.hasLayout){V.style.zoom=1}break;case"float":W="styleFloat";default:V.style[W]=U(W,X)}}}else{return function(V,W,X){W=O(W);if(W=="float"){W="cssFloat"}V.style[W]=U(W,X)}}})(),F=function(T){T=T||document;return Math.max(T.documentElement.scrollLeft,T.body.scrollLeft)},G=function(T){T=T||document;return Math.max(T.documentElement.scrollTop,T.body.scrollTop)},Q=function(){var T=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;var U=Math.max(T,J());return U},A=function(){var U=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;var T=Math.max(U,N());return T},J=function(){var T=self.innerHeight;var U=document.compatMode;if((U||H.ie)&&!H.opera){T=(U=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return T},N=function(){var T=self.innerWidth;var U=document.compatMode;if(U||H.ie){T=(U=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth}return T},L=function(U){var V=[U.offsetLeft,U.offsetTop];var W=U.offsetParent;var T=(H.webkit&&C(U,"position")=="absolute"&&U.offsetParent==U.ownerDocument.body);if(W!=U){while(W){V[0]+=W.offsetLeft;V[1]+=W.offsetTop;if(!T&&H.webkit&&C(W,"position")=="absolute"){T=true}W=W.offsetParent}}if(T){V[0]-=U.ownerDocument.body.offsetLeft;V[1]-=U.ownerDocument.body.offsetTop}W=U.parentNode;while(W.tagName&&!R.ROOT_TAG.test(W.tagName)){if(C(W,"display").search(/^inline|table-row.*$/i)){V[0]-=W.scrollLeft;V[1]-=W.scrollTop}W=W.parentNode}return V},B=function(T){if(typeof T=="string"){return document.getElementById(T)}return T};K.DomUtil={ua:H,get:B,buildHTML:I,createElement:function(T){if(typeof T!="string"){T=I.apply(window,arguments)}var U=document.createElement("div");U.innerHTML=T;return U.firstChild},next:function(T){return D(T,"nextSibling")},pre:function(T){return D(T,"previousSibling")},children:function(U){var V=[];for(var T=U.firstChild;T;T=T.nextSibling){if(T.nodeType==1){V.push(T)}}return V},setStyle:function(T,V,U){T=B(T);if(typeof V=="object"){E(V,function(W,X){P(T,X,W)})}else{P(T,V,U)}},getStyle:function(T,U){return C(B(T),U)},getXY:function(T){return L(B(T))},hide:function(T){P(T,"display","none")},show:function(T){P(T,"display","")},getDocumentHeight:Q,getDocumentWidth:A,getViewportHeight:J,getViewportWidth:N,getDocumentScrollTop:G,getDocumentScrollLeft:F,absolutize:function(T,U,V){T.className="absolute";K.DomUtil.setStyle(T,{position:"absolute",left:"-999px",top:"-9999px",zIndex:U});if(V){document.body.insertBefore(T,document.body.firstChild)}},align:function(a,V,X){a=B(a);V=B(V);var Z={},U=X.split("-"),Y=L(a),W=Y[0],T=Y[1];E({anchor:a,brick:V},function(d,b){var c=Z[b]={};E(["Width","Height"],function(e){c[e.toLowerCase()]=d["offset"+e]})});E(U[0].split(""),function(b){switch(b){case"r":W+=Z.anchor.width;break;case"b":T+=Z.anchor.height;break;default:break}});E(U[1].split(""),function(b){switch(b){case"r":W-=Z.brick.width;break;case"b":T-=Z.brick.height;break;default:break}});V.style.left=W+"px";V.style.top=T+"px"}}})(AD2);(function(B){var C=B.DomUtil.get,A=B.DomEventUtil={};if(document.addEventListener){A.on=function(D,E,F){C(D).addEventListener(E,F,false);return F};A.un=function(D,E,F){C(D).removeEventListener(E,F,false)};A.stopPropagation=function(D){D.stopPropagation()};A.preventDefault=function(D){D.preventDefault()};A.getTarget=function(D){return D.target}}else{A.on=function(D,E,G){D=C(D);var F=function(){G.call(D,window.event)};D.attachEvent("on"+E,F);return F};A.un=function(D,E,F){C(D).detachEvent("on"+E,F)};A.stopPropagation=function(D){D.cancelBubble=true};A.preventDefault=function(D){D.returnValue=false};A.getTarget=function(D){return D.srcElement}}A.stop=function(D){A.stopPropagation(D);A.preventDefault(D)}})(AD2);(function(A){A.Cookie={set:function(C,B,D){var E=C+"="+B;if(D){if(D.expires){E+="; expires="+(new Date((new Date()).getTime()+86400000*D.expires)).toGMTString()}if(D.path){E+="; path="+D.path}if(D.domain){E+="; domain="+D.domain}if(D.secure===true){E+="; secure"}}document.cookie=E},get:function(){var G=document.cookie;var I={};if(/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(G)){var E=G.split(/;\s/g),C=null,F=null,D=null;for(var B=0,H=E.length;B<H;B++){D=E[B].match(/([^=]+)=/i);if(D instanceof Array){C=D[1];F=E[B].substring(D[1].length+1)}else{C=E[B];F=C}I[C]=F}}return I},remove:function(C,B){B=B||{};B.expires=-1;this.set(C,"",B)}}})(AD2);(function(B){var D=B.DomUtil,F=Date.now||function(){return new Date().getTime()},E={duration:1,transition:function(G){return G},callback:function(){}};var C=function(G,H,I){return(H-G)*I+G},A=function(I,G,H){B.each(H,function(J,K){if(G[K]==null){G[K]=parseInt(D.getStyle(I,K),10)}else{D.setStyle(I,K,G[K])}})};B.Anim=B.Class.create({init:function(G,H){this.el=D.get(G);this.config=B.mixif(H,E);this.chains=[]},morph:function(G){if(this.playing){this.chains.push(G)}else{this._morph(G);this.playing=true}return this},_morph:function(I){var L=I.from||{},P=I.to,O=I.config||{};B.mixif(O,this.config);var K=this.el,Q=O.duration*1000,J=O.transition,G=F(),M=this;A(K,L,P);var N=function(R){B.each(P,function(S,T){D.setStyle(K,T,C(L[T],S,R))})};var H=setInterval(function(){var R=F();if(R<G+Q){N(J((R-G)/Q))}else{N(1);clearInterval(H);M._chain()}},20)},_chain:function(){if(this.chains.length){this._morph(this.chains.shift())}else{this.playing=false;this.config.callback()}}})})(AD2);var mutex_lock,mutex_unlock;(function(){var A=false;mutex_lock=function(){if(A){return -1}else{A=true;return 0}};mutex_unlock=function(){A=false;return 0}})();(function(I){var D=I.each,Q=I.Class,G=I.DomUtil,F=G.ua,H=G.buildHTML,J={},N=I.Cookie.get(),C=parseInt(N["ad_play_index"])||Math.floor(Math.random()*100),O="adlink";I.Cookie.set("ad_play_index",C+1,{expires:1});var L=function(S){(new Image()).src=S},P=function(S){return function(){if(arguments.length==0){return}var T=arguments[C%arguments.length];J[S.id]=B.create(T["display"],{area_config:S,creativity_config:T})}};var E=function(V,T){var S={display:"block",cursor:"pointer",width:V.width+"px",height:V.height+"px"};var U=V.resource_url;if(A(U)=="png"&&F.ie!=0&&F.ie<7){S["filter"]=I.format("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='{uri}')",U)}else{S["background-image"]=I.format("url({uri})",U)}T.innerHTML=H(S);T.firstChild.onclick=function(){window.open(V.link_to)}};var M=function(V,U){var S={quality:"high",allowscriptaccess:"always",wmode:"opaque",swliveconnect:true};if(V.params){I.mix(S,V.params)}var T=V.flashvars||{};if(V.link_to){T[O]=V.link_to}S.flashvars=I.serializeQuery(T);var W={};if(F.ie){W.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";S.movie=V.resource_url}else{S.type="application/x-shockwave-flash";W.data=V.resource_url}U.innerHTML=H({width:V.width+"px",height:V.height+"px"},W,"object",R(S))};var K='<param name="{name}" value="{value}"></param>';var R=function(S){return I.map(S,function(T,U){return I.format(K,{name:U,value:T})}).join("")};var A=function(T){var S=T.indexOf("?");return T.substring(T.lastIndexOf(".")+1,S==-1?T.length:S)};I.DisplayBase=Q.create({init:function(S){I.mix(this,S)},getFodder:function(T){var S=this["creativity_config"]["fodder"];if(!T&&S.length==1){return S[0]}return S},getDisplayConfig:function(){return this["creativity_config"]["display_config"]},appendToPing:function(){var S=this.creativity_config;I.ping.append({loc:this.area_config.id,cid:S.cid,oid:S.oid});if(S["monitor_url"]){L(S["monitor_url"])}},render:function(){this.preRender();this.doRender()},preRender:function(){},doRender:function(){}});I.PingDisplayBase=Q.create({preRender:function(){this.appendToPing()}},I.DisplayBase);I.DisplayHelper={render:function(U,T,V){if(V){G.setStyle(T,{width:U.width,height:U.height})}if(U.type=="image"){E(U,T)}else{M(U,T);if(U.cover){if(G.getStyle(T,"position")=="static"){T.style.position="relative"}var S=document.createElement("div");S.className="absolute";G.setStyle(S,{position:"absolute",width:U.width+"px",height:U.height+"px",left:"0px",top:"0px",cursor:"pointer","background-color":"#fff",filter:"alpha(opacity=0)",opacity:0});S.onclick=function(){window.open(U.link_to)};T.appendChild(S)}}}};(function(){var S={};I.DisplayManager={create:function(U,T){if(typeof U=="string"){U=S[U]}if(U){return new U(T)}},reg:function(T,U){S[T]=U}}})();var B=I.DisplayManager;I.area=P;I.render=(function(){var U=0,T=5,V={};var S=function(X){var W=G.get(X);if(!W||G.getStyle(W,"display")=="none"){return}setTimeout(function(){(B.create("default",{area_config:{id:X},creativity_config:{fodder:[{type:"flash",resource_url:I.format("http://adsfile.qq.com/web/default{i}.swf",(U++%T)+1),cover:false,width:W.clientWidth,height:W.clientHeight}]}})).render()})};return function(X){if(V[X]){return}V[X]=true;var W=J[X];if(W){W.render()}else{S(X)}}})();I.ping=(function(){var T="http://adping.qq.com/p.jpg?oid={oid}&cid={cid}&loc={loc}",S=["oid","cid","loc"],V={},U=function(){D(S,function(W){V[W]=[]})};U();return{touch:L,append:function(W){D(V,function(X,Y){X.push(W[Y])});return this},flush:function(){L(I.format(T,V));U();return this}}})()})(AD2);(function(K){var C=K.each,I=K.map,D=K.DomUtil,Q=D.get,N=K.DomEventUtil,M=13,G="http://adsfile.qq.com/web/db_close.gif",A='<div style="width:{width}px;height:{height}px;background-color:#eee;"><img src="{close_button_url}" style="border:none;float:right;cursor:pointer;width:13px;"></img></div>',O=K.DisplayHelper.render,P=function(){},R=function(T){var U=T.getElementsByTagName("object");if(U.length){var S=U[0];return function(V){try{S[V]()}catch(W){}}}else{return P}},H=function(T){var S=function(U,V){if(typeof U=="function"){U=U()}K.DisplayManager.reg(V,K.Class.create(U,T))};return function(V,U){if(arguments.length==1){C(V,S)}else{S(U,V)}}},B=H(K.PingDisplayBase),F=H(K.DisplayBase),L=function(S,T,U){if(T){S=K.buffer(S,T)}N.on(window,"scroll",S);N.on(window,"resize",S);if(U){S()}},E=function(T){var S=document.createElement("div");S.style.position="absolute";S.className="absolute";if(T){S.style.zIndex=T}document.body.insertBefore(S,document.body.firstChild);return S},J=function(S,T){setTimeout(function(){if(mutex_lock()==0){S()}else{setTimeout(arguments.callee,500)}},(T||0)*1000)};F({"default":{doRender:function(){O(this.getFodder(),Q(this.area_config.id))}},"popup":{doRender:function(){var U=this["creativity_config"],S=U.display_config,V=this.area_config.id,T=this.getFodder();if(S.focus_back&&/tencenttraveler|myie|maxthon|opera/i.test(navigator.userAgent)){return}setTimeout(function(){var W=window.open("http://adsfile.qq.com/web/a.html?"+K.serializeQuery(K.mix({loc:V,oid:U.oid,cid:U.cid},T)),"_blank",K.getObjectToStringFn("=",",",false,false)({menubar:"no",left:0,top:0,width:T.width,height:T.height}));if(W&&S.focus_back){W.blur();window.focus()}},S.delay*1000)}}});B({"banner":{doRender:function(){O(this.getFodder(),Q(this.area_config.id))}},"float_fullscreen":{doRender:function(){var T=D.get(this.area_config.id),U=this.getFodder(),S=this.getDisplayConfig(),W=false;var V=function(){if(!W){D.hide(T);mutex_unlock();W=true}};J(function(){var Y=document.createElement("div");O(U,Y,true);var X=D.createElement(K.format(A,{width:U.width,height:M,close_button_url:G}));N.on(X.firstChild,"click",V);T.appendChild(X);T.appendChild(Y);D.show(T);setTimeout(V,S.duration*1000)},S.delay)}},"raw_fullscreen":{doRender:function(){var T=D.get(this.area_config.id),U=this.getFodder(),S=this.getDisplayConfig();J(function(){O(U,T);D.show(T);setTimeout(function(){D.hide(T);mutex_unlock()},S.duration*1000)},S.delay)}},"float":function(){var S=function(W,X){return function(Y){return W(Y,X)}},V={left:function(W,X){return D.getDocumentScrollLeft()+X},right:function(W,X){return D.getViewportWidth()+D.getDocumentScrollLeft()-W-X}},T={top:function(W,X){return D.getDocumentScrollTop()+X},middle:function(W,X){return(D.getViewportHeight()-W)/2+D.getDocumentScrollTop()},bottom:function(W,X){return D.getViewportHeight()+D.getDocumentScrollTop()-W-X}},U=function(l,b,Z,d){var e=Z.height,g=Z.width,W=l[0],f=l[1],i=S(V[W],b.margin_h),k=S(T[f],b.margin_v),j=E(100),m=b.page_content_width,c=function(){return{left:i(g),top:k(e)}},h=new K.Anim(j,{duration:1,transition:function(n){return Math.pow(n,0.4)}});if(b.close_button!="none"){e+=M;var Y=document.createElement("div");O(Z,Y,true);var X=D.createElement(K.format(A,{width:g,height:M,close_button_url:G}));N.on(X.firstChild,"click",d);if(b.close_button=="bottom"){j.appendChild(Y);j.appendChild(X)}else{if(b.close_button=="top"){j.appendChild(X);j.appendChild(Y)}}}else{O(Z,j)}var a=function(){if((D.getViewportWidth()-m)/2<g+b.margin_h){D.hide(j);return false}D.show(j);return true};L(function(){if(!b.follow_viewport){return}if(!a()){return}var n=c();sxy=D.getXY(j),sx=sxy[0],sy=sxy[1],dy=n.top,from={},config={};if(f=="bottom"){if(sy>dy+e){from.top=D.getDocumentScrollTop()+D.getViewportHeight();config.duration=0.3}}else{if(f=="top"){if(sy<dy-e){from.top=D.getDocumentScrollTop()-e;config.duration=0.3}}}h.morph({from:from,to:n,config:config})},300,false);D.setStyle(j,c());a();return j};return{doRender:function(){var W=this.getDisplayConfig(),X=W.edges.split(","),Y=this.getFodder(true);delete W.edges;var Z=function(){C(a,D.hide);W.follow_viewport=false};var a=I(X,function(b,c){return U(b.split("-"),W,Y[c],Z)})}}},"couplet":function(){var S=17,V=12,T=12,W=766,U=13,X="http://adsfile.qq.com/web/db_close.gif";return{doRender:function(){var a=this.getFodder(),c=false;var Y=function(){b(false);c=true};var Z=I(a,function(f){var e=E(100);D.setStyle(e,{top:S,width:f.width,height:f.height+U});O(f,e,false);var d=D.createElement(K.format(A,{width:f.width,height:M,close_button_url:G}));N.on(d.firstChild,"click",Y);e.appendChild(d);return e});D.setStyle(Z[0],{left:V});D.setStyle(Z[1],{right:T});var b=function(d){C(Z,function(e){D.setStyle(e,{display:d?"block":"none"})})};L(function(){if(!c){b(D.getViewportWidth()-V-a[0].width-a[1].width-T-W>0)}},100,true)}}},"fullscreen":function(){var T=20,U=19,S=-8,V={position:"absolute",width:T+"px",height:U+"px",display:"none","background":"url(themes/bao/images/replay.png) no-repeat",cursor:"pointer"},W={position:"absolute",width:"19px",height:"19px",right:"7px",top:"7px","background-image":"url(http://adsfile.qq.com/web/f_close.gif)",cursor:"pointer"},X={"z-index":999,left:"-9999px",position:"absolute",border:"2px solid #ccc",opacity:0.5,filter:"alpha(opacity=50)"};return{doRender:function(){var Z=D.get(this.area_config.id),m=this.getFodder(),h=this.getDisplayConfig(),Y=h.show_duration,n=h.hide_duration,f=D.createElement(W,{"class":"absolute"}),b=D.createElement(V,{"class":"absolute"}),d;D.setStyle(Z,{overflow:"hidden",height:0,position:"relative",display:"block"});var j=m.width,i=m.height,k=D.createElement(X);O(m,Z);var e=R(Z);var g=(function(){var o=new K.Anim(k,{callback:function(){D.setStyle(k,{left:-9999})}});return function(q){D.setStyle(b,{display:""});var r=D.getXY(Z),s=D.getXY(b);D.setStyle(b,{display:"none"});var p=[{left:r[0],top:r[1],width:j-4,height:i-4},{left:s[0],top:s[1],width:T-4,height:U-4}];if(!q){o.morph({from:p[0],to:p[1],config:{duration:n}})}else{o.morph({from:p[1],to:p[0],config:{duration:Y}})}}})();var c=(function(){var o=new K.Anim(Z,{duration:n,callback:function(){D.setStyle(b,{display:"block"});mutex_unlock()}});return function(){clearTimeout(d);g(false);e("StopPlay");o.morph({to:{height:0}})}})();var l=(function(){var o=new K.Anim(Z,{duration:Y,callback:function(){e("Play");d=setTimeout(c,h.duration*1000)}});return function(){clearTimeout(d);D.setStyle(b,{display:"none"});g(true);e("Rewind");o.morph({to:{height:i}})}})();N.on(f,"click",c);N.on(b,"click",function(){a(false)});Z.appendChild(f);document.body.insertBefore(b,document.body.firstChild);document.body.insertBefore(k,document.body.firstChild);L(function(){var o=D.getXY(Z);D.setStyle(b,{left:o[0]+j-3,top:o[1]+S})},0,true);var a=function(o){if(o){J(l,0)}else{if(mutex_lock()==0){l()}}};setTimeout(function(){a(true)},h.delay*1000)}}}})})(AD2);(function(A){var B={"string":function(C){return C},"bool":function(C){if(C.toLowerCase()=="false"){return false}return true},"number":function(C){return C-0}};A.getQueryData=function(D){var C={},E=location.href.indexOf("?");if(E!=-1){A.each(location.href.substring(E+1).split("&"),function(F){F=F.split("=");if(F[1]!=null){C[F[0]]=decodeURIComponent(F[1])}})}if(D){A.each(D,function(G,F){if(C[F]!=null){C[F]=B[G](C[F])}})}return C}})(AD2);
