var AD2={};(function(p){var k=Array.slice||(function(){var a=Array.prototype.slice;return function(t){return a.apply(t,a.call(arguments,1))}})(),l=function(a){var t=typeof a;if(t==="object"){if(a){if(typeof a.length==="number"){t="array"}}else{t="null"}}return t},d=function(a,t){return !i(t,function(x,w){var u=a[w];if(u!==x){if(typeof u=="object"&&typeof x=="object"){return !d(u,x)}else{return true}}else{return false}})},e=function(u,t){return d(u,t)&&d(t,u)},h=function(t){var a=true;c(t,function(x,w,u){a=false;return u});return a},c=(function(){var t={},v=function(z,y,A){for(var x=0,w=z.length;x<w;x++){if(y.call(A,z[x],x,t)==t){return x}}return -1},u={string:function(x,w,y){return v(x.split(""),w,y)},array:v,number:function(y,x,z){for(var w=0;w<y;w++){x.call(z,w,w)}},object:function(y,x,z){for(var w in y){if(y.hasOwnProperty(w)){if(x.call(z,y[w],w,t)==t){return w}}}return -1}},a=function(w){return u[l(w)]};return function(x,w,y){return a(x)(x,w,y||x)}})(),i=function(u,t,v){var a=c(u,function(y,x,w){if(t.apply(v,arguments)===true){return w}});return a==-1?null:u[a]},f=function(u,t,v){var a=[];c(u,function(w){if(t.apply(v,arguments)===true){a.push(w)}});return a},q=function(u,t,w,v){var a;if(v){a={};c(u,function(y,x){a[x]=t.apply(w,arguments)})}else{a=[];c(u,function(){a.push(t.apply(w,arguments))})}return a},s=function(w,v,u,a,x){var t=k(arguments,2);c(w,function(z,y){z[v].apply(z,t)})},j=function(a){if(a==null){return a}if(typeof a.length=="number"&&typeof a!="string"){return q(a,j)}else{if(typeof a=="object"){return q(a,j,null,true)}}return a},b=function(v){if(!v){v={}}for(var t=1;t<arguments.length;t++){var u=arguments[t];if(u){for(var a in u){if(v[a]&&typeof v[a]=="object"&&typeof u[a]=="object"){arguments.callee(v[a],u[a])}else{v[a]=j(u[a])}}}}return v},g=function(v){if(!v){v={}}for(var t=1;t<arguments.length;t++){var u=arguments[t];if(u){for(var a in u){v[a]=u[a]}}}return v},o=function(v){if(!v){v={}}for(var t=1;t<arguments.length;t++){var u=arguments[t];if(u){for(var a in u){if(v[a]===undefined){v[a]=u[a]}}}}return v},n=(function(){var a=1;return function(){return"auto_gen_"+a++}})(),m={proto:(function(){var a=function(t,u){return this.prototype[u].apply(t,k(arguments,2))};return function(t){t.proto=a}})(),create:function(v,w){var u=function(){if(this.init){this.init.apply(this,arguments)}};var x=1;if(w&&typeof w=="function"){var t=function(){};u.superclass=t.prototype=w.prototype;u.prototype=new t();x=2}var a=k(arguments,x);a.unshift(v);g(u.prototype,o.apply(window,a));return u}},r=function(w,u,t,a){var v=a?encodeURIComponent:function(x){return x};return function(x){return q(x,function(z,y){if(y!=null){return y+w+v(z)}}).join(u)+(t?u:"")}};g(p,{generateId:n,slice:k,getType:l,Object:{equals:e,isEmpty:h},each:c,map:q,find:i,filter:f,mix:g,mixdeep:b,mixif:o,indexOf:function(a,u){if(a.indexOf){return a.indexOf(u)}for(var t=0;t<a.length;t++){if(a[t]===u){return t}}return -1},buffer:function(t,a){if(!a){return t}var u;return function(){if(u){clearTimeout(u)}var v=arguments;u=setTimeout(function(){t.apply(window,v)},a||100)}},Class:m,format:function(u,t,a){return u.replace(/\{([^}]*)\}/g,(typeof t=="object")?function(v,x){var w=t[x];return w==null&&a?v:w}:t)},getObjectToStringFn:r,serializeStyles:r(":",";",true,false),serializeAttrs:(function(){var a=r("="," ",true,false);return function(t){c(t,function(w,u){t[u]='"'+w+'"'});return a(t)}})(),serializeQuery:r("=","&",false,true)})})(AD2);(function(k){var f="__events",d="__fnid",j=k.each,g=function(l,a){var m=l[a];if(m){delete m.fn;delete m.bind;delete l[a]}},i=function(l,m,a){a=a||l[m];if(a){j(a,function(o,n){g(a,n)});delete l[m]}},b=function(l,n){var m=l[n];for(var a in m){if(m.hasOwnProperty(a)){return}}delete l[n]},c=function(m){for(var l=1,a=m;l<arguments.length;l++){var n=arguments[l];a=a[n]=(a[n]||{})}return a},h=function(m,l,a,n){c(m,f,l)[a[d]||(a[d]=k.generateId())]={fn:a,bind:n||m}},e=function(l,a){j(a,function(n,m){if(typeof n=="function"){h(l,m,n)}else{h(l,m,n.fn,n.bind)}})};k.Observable={fire:function(a){this._fire(a,k.slice(arguments,1))},_fire:function(m,a){var l=this[f];if(l){var n=l[m];if(n){j(n,function(o){o.fn.apply(o.bind,a)})}}},on:function(l,a,m){if(arguments.length==1){e(this,l)}else{h(this,l,a,m)}},un:function(m,l){var a=this[f];if(!a){return}if(m){var n=a[m];if(n){if(l){if(l[d]){g(n,l[d]);b(a,m)}}else{i(a,m)}b(this,f)}}else{j(a,function(p,o){i(a,o,p)});delete this[f]}}}})(AD2);(function(x){var l='<{tag} {attrs}style="{styles}">{inner}</{tag}>',g=x.each,r={},e={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i},s=(function(){var A={ie:0,opera:0,gecko:0,webkit:0,mobile:null};var z=navigator.userAgent,a;if((/KHTML/).test(z)){A.webkit=1}a=z.match(/AppleWebKit\/([^\s]*)/);if(a&&a[1]){A.webkit=parseFloat(a[1]);if(/ Mobile\//.test(z)){A.mobile="Apple"}else{a=z.match(/NokiaN[^\/]*/);if(a){A.mobile=a[0]}}}if(!A.webkit){a=z.match(/Opera[\s\/]([^\s]*)/);if(a&&a[1]){A.opera=parseFloat(a[1]);a=z.match(/Opera Mini[^;]*/);if(a){A.mobile=a[0]}}else{a=z.match(/MSIE\s([^;]*)/);if(a&&a[1]){A.ie=parseFloat(a[1])}else{a=z.match(/Gecko\/([^\s]*)/);if(a){A.gecko=1;a=z.match(/rv:([^\s\)]*)/);if(a&&a[1]){A.gecko=parseFloat(a[1])}}}}}return A})();var v=function(A,a){for(var z=A;z;z=z[a]){if(z.nodeType==1){return z}}},y=function(B,A,a,z){return x.format(l,{tag:a||"div",attrs:x.serializeAttrs(A||{}),styles:x.serializeStyles(B),inner:z||""})},m=function(a){if(!e.HYPHEN.test(a)){return a}if(r[a]){return r[a]}var z=a;while(e.HYPHEN.exec(z)){z=z.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}r[a]=z;return z},n=function(z,a,B){var A=Math.abs(z-a);if(A<B){return arguments.callee(z,a,A/2)}return B<=1?z:(z+(B-1)*a)/B},k=(function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(a,B){var A=null;if(B=="float"){B="cssFloat"}var z=document.defaultView.getComputedStyle(a,"");if(z){A=z[m(B)]}return a.style[B]||A}}else{if(document.documentElement.currentStyle&&s.ie){return function(a,A){switch(m(A)){case"opacity":var C=100;try{C=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(B){try{C=a.filters("alpha").opacity}catch(B){}}return C/100;case"float":A="styleFloat";default:var z=a.currentStyle?a.currentStyle[A]:null;return(a.style[A]||z)}}}else{return function(a,z){return a.style[z]}}}})(),p=(function(){var a=/left|top|right|bottom|width|height/;var z=function(B,A){if(a.test(B)&&typeof A=="number"){A=A+"px"}return A};if(s.ie){return function(A,B,C){B=m(B);switch(B){case"opacity":A.style.filter="alpha(opacity="+C*100+")";if(!A.currentStyle||!A.currentStyle.hasLayout){A.style.zoom=1}break;case"float":B="styleFloat";default:A.style[B]=z(B,C)}}}else{return function(A,B,C){B=m(B);if(B=="float"){B="cssFloat"}A.style[B]=z(B,C)}}})(),i=function(A,z,a){A=j(A);if(typeof z=="object"){g(z,function(C,B){p(A,B,C)})}else{p(A,z,a)}},c=function(a){a=a||document;return Math.max(a.documentElement.scrollLeft,a.body.scrollLeft)},h=function(a){a=a||document;return Math.max(a.documentElement.scrollTop,a.body.scrollTop)},b=function(){var z=(document.compatMode!="CSS1Compat")?document.body.scrollHeight:document.documentElement.scrollHeight;var a=Math.max(z,q());return a},d=function(){var z=(document.compatMode!="CSS1Compat")?document.body.scrollWidth:document.documentElement.scrollWidth;var a=Math.max(z,f());return a},q=function(){var a=self.innerHeight;var z=document.compatMode;if((z||s.ie)&&!s.opera){a=(z=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return a},f=function(){var a=self.innerWidth;var z=document.compatMode;if(z||s.ie){a=(z=="CSS1Compat")?document.documentElement.clientWidth:document.body.clientWidth}return a},t=function(A){var B=[A.offsetLeft,A.offsetTop];var z=A.offsetParent;var a=(s.webkit&&k(A,"position")=="absolute"&&A.offsetParent==A.ownerDocument.body);if(z!=A){while(z){B[0]+=z.offsetLeft;B[1]+=z.offsetTop;if(!a&&s.webkit&&k(z,"position")=="absolute"){a=true}z=z.offsetParent}}if(a){B[0]-=A.ownerDocument.body.offsetLeft;B[1]-=A.ownerDocument.body.offsetTop}z=A.parentNode;while(z.tagName&&!e.ROOT_TAG.test(z.tagName)){if(k(z,"display").search(/^inline|table-row.*$/i)){B[0]-=z.scrollLeft;B[1]-=z.scrollTop}z=z.parentNode}return B},j=function(a){if(typeof a=="string"){return document.getElementById(a)}return a},o=function(a,z){u(a,z,["left","right","horzontal_center"]);u(a,z,["top","bottom","vertical_center"]);x.each(["width","height"],function(A){if(typeof z[A]!="undefined"){a[A]=z[A]}});return a},u=function(z,A,C){var a,B;x.each(C,function(D){if(typeof A[D]!="undefined"){a=D;B=A[D]}});if(a){x.each(C,function(D){delete z[D]});z[a]=B}};x.DomUtil={ua:s,get:j,buildHTML:y,createElement:function(a){if(typeof a!="string"){a=y.apply(window,arguments)}var z=document.createElement("div");z.innerHTML=a;return z.firstChild},next:function(a){return v(a,"nextSibling")},pre:function(a){return v(a,"previousSibling")},children:function(A){var a=[];for(var z=A.firstChild;z;z=z.nextSibling){if(z.nodeType==1){a.push(z)}}return a},getSize:function(z){var A=k(z,"display");if(A=="none"){i(z,"display","")}var a={width:z.offsetWidth,height:z.offsetHeight};i(z,"display",A);return a},setStyle:i,getStyle:function(z,a){return k(j(z),a)},getXY:function(a){return t(j(a))},hide:function(a){i(a,"display","none")},show:function(a){i(a,"display","block")},getDocumentHeight:b,getDocumentWidth:d,getViewportHeight:q,getViewportWidth:f,getDocumentScrollTop:h,getDocumentScrollLeft:c,absolutize:function(z,A,a){z.className="absolute";x.DomUtil.setStyle(z,{position:"absolute",left:"-999px",top:"-9999px",zIndex:A});if(a){document.body.insertBefore(z,document.body.firstChild)}},align:function(z,B,C){z=j(z);B=j(B);var D={},A=C.split("-"),F=t(z),a=F[0],E=F[1];g({anchor:z,brick:B},function(H,G){var I=D[G]={};g(["Width","Height"],function(J){I[J.toLowerCase()]=H["offset"+J]})});g(A[0].split(""),function(G){switch(G){case"r":a+=D.anchor.width;break;case"b":E+=D.anchor.height;break;default:break}});g(A[1].split(""),function(G){switch(G){case"r":a-=D.brick.width;break;case"b":E-=D.brick.height;break;default:break}});B.style.left=a+"px";B.style.top=E+"px"}};var w=x.Class.create({interval:null,init:function(a){this.el=a},destroy:function(){this.fire("Destroy");var a=this.el;setTimeout(function(){a.parentNode.removeChild(a)},100)}},x.Observable);if(s.ie==6){x.DomUtil.FixedPosElement=x.Class.create({init:function(a){w.prototype.init.apply(this,arguments);a.style.position="absolute";a.className="absolute"},setCoordinates:function(D){o(this,D);var z=this;var A=this.el;var a=(function(){if(z.horzontal_center){return function(){return(f()-z.width)/2+c()}}if(z.left!=undefined){return function(){return c()+z.left}}return function(){return c()+f()-z.right-z.width}})();var C=(function(){if(z.vertical_center){return function(){return(q()-z.height)/2+h()}}if(z.top!=undefined){return function(){return h()+z.top}}return function(){return h()+q()-z.bottom-z.height}})();var B=function(E){if(E){var F=t(A);return{left:n(a(),F[0],4),top:n(C(),F[1],4)}}return{left:a(),top:C()}};clearInterval(this.interval);this.interval=setInterval(function(){i(A,B(true))},30);this.on("Destroy",function(){clearInterval(z.interval)});i(A,B(false));if(typeof D.width!="undefined"){i(A,"width",D.width)}if(typeof D.height!="undefined"){i(A,"height",D.height)}}},w)}else{x.DomUtil.FixedPosElement=x.Class.create({init:function(a){w.prototype.init.apply(this,arguments);a.style.position="fixed"},setCoordinates:function(D){var B=this.el;x.mix(this,D);var a=x.DomEventUtil;var z=this;if(D.horzontal_center){var C=function(){i(B,"left",(f()-z.width)/2)};C();a.on(window,"resize",C);this.on("Destroy",function(){a.un(window,"resize",C)})}if(D.vertical_center){var A=function(){i(B,"top",(q()-z.height)/2)};A();a.on(window,"resize",A);this.on("Destroy",function(){a.un(window,"resize",A)})}i(this.el,D)}},w)}})(AD2);var document_is_ready=function(){return false};(function(c){var d=c.DomUtil.get,b=c.DomEventUtil={};if(document.addEventListener){b.on=function(f,e,a){d(f).addEventListener(e,a,false);return a};b.un=function(f,e,a){d(f).removeEventListener(e,a,false)};b.stopPropagation=function(a){a.stopPropagation()};b.preventDefault=function(a){a.preventDefault()};b.getTarget=function(a){return a.target}}else{b.on=function(f,e,a){f=d(f);var g=function(){a.call(f,window.event)};f.attachEvent("on"+e,g);return g};b.un=function(e,a,f){d(e).detachEvent("on"+a,f)};b.stopPropagation=function(a){a.cancelBubble=true};b.preventDefault=function(a){a.returnValue=false};b.getTarget=function(a){return a.srcElement}}b.stop=function(a){b.stopPropagation(a);b.preventDefault(a)};c.Event=c.Class.create({init:function(a){this.e=a},getOffset:function(){if(this.e.offsetX){return{x:this.e.offsetX,y:this.e.offsetY}}if(this.e.layerX){return{x:this.e.layerX,y:this.e.layerY}}return{x:0,y:0}}});(function(){var e=[];b.ready=function(g){e.push(g)};var a=function(){c.each(e,function(g){g()});b.ready=function(g){g()};a=function(){};document_is_ready=function(){return true}};if(c.DomUtil.ua.ie){var f=setInterval(function(){try{document.documentElement.doScroll("left");clearInterval(f);f=null;a()}catch(g){}},200)}else{b.on(document,"DOMContentLoaded",a)}b.on(window,"load",a)})()})(AD2);(function(b){b.Cookie={set:function(c,d,a){var e=c+"="+d;if(a){if(a.expires){e+="; expires="+(new Date((new Date()).getTime()+86400000*a.expires)).toGMTString()}if(a.path){e+="; path="+a.path}if(a.domain){e+="; domain="+a.domain}if(a.secure===true){e+="; secure"}}document.cookie=e},get:function(a){var j=document.cookie;var k={};if(/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(j)){var g=j.split(/;\s/g),h=null,c=null,e=null;for(var d=0,f=g.length;d<f;d++){e=g[d].match(/([^=]+)=/i);if(e instanceof Array){h=e[1];c=g[d].substring(e[1].length+1)}else{h=g[d];c=h}k[h]=c}}if(a){return k[a]}return k},remove:function(a,c){c=c||{};c.expires=-1;this.set(a,"",c)}}})(AD2);(function(b){var g=b.DomUtil,c=Date.now||function(){return new Date().getTime()},e={is_style:true,duration:1,transition:function(a){return a},callback:function(){}};var f=function(i,h,a){return(h-i)*a+i},d=function(a,i,h){b.each(h,function(l,j){if(i[j]==null){i[j]=parseInt(g.getStyle(a,j),10)}else{g.setStyle(a,j,i[j])}})};b.Anim=b.Class.create({init:function(h,a){this.el=g.get(h);this.config=b.mixif(a,e);this.chains=[]},morph:function(a){if(this.playing){this.chains.push(a)}else{this._morph(a);this.playing=true}return this},_morph:function(h){h=h||{};var p=this.from=h.from||{},q=this.to=h.to,k=h.config||{};b.mixif(k,this.config);this.from=p;this.to=q;var i=this.el,l=k.duration*1000,m=k.transition,j=c(),n=this;d(i,p,q);var r=k.is_style?function(o){b.each(q,function(u,t){var s=f(p[t],u,o);g.setStyle(i,t,s)})}:function(o){b.each(q,function(u,t){var s=f(p[t],u,o);i[t]=s})};var a=setInterval(function(){var o=c();if(o<j+l){r(m((o-j)/l))}else{r(1);clearInterval(a);n._chain()}},50)},_chain:function(){if(this.chains.length){this._morph(this.chains.shift())}else{this.playing=false;this.config.callback();this.fire("Complete")}}},b.Observable)})(AD2);(function(c){var d={};c.FM={get:function(a){return d[a]},reg:function(e,a){d[e]=a},ready:function(a){d[a].fire("_ready")}};var b=function(e,g,a){if(a==null){a=4}var f=0;(function(){if(f++>a){return}try{e[g]()}catch(h){setTimeout(arguments.callee,500)}})()};c.FO=c.Class.create(c.mix({init:function(a){this.el=c.DomUtil.get(a);this.q=[];this.on("ready",function(){this.invokeFlash=function(e){b(this.getFlash(),e)};c.each(this.q,this.invokeFlash)})},invokeFlash:function(a){this.q.push(a)},getEl:function(){return this.el},getFlash:function(){if(!this.flash){this.flash=this.el.getElementsByTagName("object")[0]}return this.flash}},c.Observable))})(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(w){var e=w.each,t=w.Class,s=w.DomUtil,l=w.DomEventUtil,r=s.ua,x=s.buildHTML,v={},u=w.cookie=w.Cookie.get(),m=parseInt(u.ad_play_index)||Math.floor(Math.random()*100),g="adlink",f=["turner"];w.fns={};w.Cookie.set("ad_play_index",m+1,{expires:1,path:"/"});if(document.domain.indexOf("qq.com")==-1){w.resource=function(a){return"../resources/web/"+a}}else{w.resource=function(a){return"http://adsfile.qq.com/web/"+a}}var c=(function(){var a=w.__images=[];return function(z){var y=new Image(1,1);y.src=z;a.push(y)}})(),k=function(a){return function(){if(arguments.length==0){return}var z=arguments[m%arguments.length];if(z.oid=="1"){return}var y=z.display;if(w.indexOf(f,y)!=-1){z=arguments}v[a.id]=q.create(y,{area_config:a,creativity_config:z})}},j=s.createElement({position:"absolute",left:"-9999px",top:"-9999px"},{href:"#"},"a"),h=false;w.lostFocus=function(){if(!h){document.body.insertBefore(j,document.body.firstChild);h=true}j.focus()};w.DisplayBase=t.create({init:function(a){w.mix(this,a)},getFodder:function(a){var y=this["creativity_config"]["fodder"];if(!a&&y.length==1){return y[0]}return y},getDisplayConfig:function(){return this["creativity_config"]["display_config"]},appendToPing:function(a){var y=this.creativity_config;w.ping.append({loc:this.area_config.id,cid:y.cid,oid:y.oid});if(a&&y.monitor_url){c(y.monitor_url)}},render:function(){this.preRender();this.doRender()},preRender:function(){},doRender:function(){}});w.PingDisplayBase=t.create({preRender:function(){this.appendToPing(true)}},w.DisplayBase);var i='<param name="{name}" value="{value}"></param>';var d=function(a){return w.map(a,function(z,y){return w.format(i,{name:y,value:z})}).join("")};var o=w.getExtension=function(a){return/\.(\w+)(?:$|\?)/.exec(a)[1].toLowerCase()};var n=function(a){if(!a||!a.parentNode){return}if(r.ie){for(var y in a){if(typeof a[y]=="function"){a[y]=null}}}a.parentNode.removeChild(a)};var b=(function(){var a=document.createElement("div");return function(y){a.innerHTML="";a.appendChild(document.createTextNode(y));return a.innerHTML}})();var p=(function(){var z='<script src="{src}"><\/script>',y=function(G,F,E){E.innerHTML=x(G,{href:b(F),target:"_blank"},"a")},C=function(E,F){var G={display:"block",cursor:"pointer",width:E.width+"px",height:E.height+"px","background-image":w.format("url({uri})",E.resource_url)};y(G,E.link_to,F)},a=function(E,F){var G={display:"block",cursor:"pointer",width:E.width+"px",height:E.height+"px",filter:w.format("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='{uri}')",E.resource_url)};y(G,E.link_to,F)},A=function(G,I){var J={allowscriptaccess:"always",wmode:"opaque",quality:"high"};if(G.params){w.mix(J,G.params)}var H=G.initvars||{};if(G.link_to){H[g]=G.link_to}J.flashvars=w.serializeQuery(H);var F={id:w.generateId()};if(r.ie){F.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";J.movie=G.resource_url}else{J.type="application/x-shockwave-flash";F.data=G.resource_url}I.innerHTML=x({outline:"none",width:G.width+"px",height:G.height+"px"},F,"object",d(J));var E=I.firstChild;l.on(window,"unload",function(){n(E)})},B=function(E,F){var H=E.params||"";var G=E.resource_url;if(E.clearCache){H+=(H?"&":"")+"_="+(+new Date())}if(E.mark_area&&F&&F.id){H+=(H?"&":"")+"element_id="+F.id}if(H){G+=(G.indexOf("?")==-1?"?":"&")+H}document.write(w.format(z,{src:G}))},D=function(E,G){var H=w.mix({source:E.resource_url,windowless:true},E.params);var F=w.mix({adlink:E.link_to},E.initvars);H.initParams=w.serializeQuery(F);G.innerHTML=x({width:E.width+"px",height:E.height+"px"},{type:"application/x-silverlight",data:"data:application/x-silverlight,"},"object",d(H))};return{jpg:C,png:r.ie==6?a:C,gif:C,swf:A,js:B,xap:D}})();w.cover_zindex=10;w.getCover=function(a){var y;e(a.getElementsByTagName("a"),function(z){if(/a_cover/.test(z.className)){y=z}});return y};w.DisplayHelper={renderer:p,render:function(a,y,A){if(A){s.setStyle(y,{width:a.width,height:a.height})}p[o(a.resource_url)](a,y);y.setAttribute("_oid",a.oid);if(a.cover){if(s.getStyle(y,"position")=="static"){y.style.position="relative"}var z=s.createElement({position:"absolute",width:a.width+"px",height:a.height+"px",left:"0px",top:"0px",cursor:"pointer","z-index":w.cover_zindex,"background-color":"#fff",filter:"alpha(opacity=0)",opacity:0},{"class":"absolute a_cover",href:b(a.link_to),target:"_blank"},"a");y.appendChild(z)}}};(function(){var a={};w.DisplayManager={create:function(z,y){if(typeof z=="string"){z=a[z]}if(z){return new z(y)}},reg:function(z,y){a[z]=y}}})();var q=w.DisplayManager;w.area=k;w.render=(function(){var y=0,z=5,A={};var a=function(C){var B=s.get(C);if(!B||s.getStyle(B,"display")=="none"){return}setTimeout(function(){(q.create("default",{area_config:{id:C},creativity_config:{fodder:[{resource_url:w.format("http://adsfile.qq.com/web/default{i}.swf",(y++%z)+1),cover:false,width:B.clientWidth,height:B.clientHeight}]}})).render()})};return function(C){if(A[C]){return}A[C]=true;var B=v[C];if(B){B.render()}else{a(C)}}})();w.getFlashVersion=function(){try{if(typeof window.ActiveXObject!="undefined"){var a;try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(z){for(var y=11;y>5;y--){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+y);break}catch(z){}}}if(!a){return 0}return parseInt(a.GetVariable("$version").split(" ")[1].split(",")[0],10)}else{return parseInt(navigator.plugins["Shockwave Flash"].description.split(" ")[2],10)}}catch(z){return 0}};w.ping=(function(){var z="http://p.l.qq.com/p.jpg?oid={oid}&cid={cid}&loc={loc}",y=["oid","cid","loc"],a={},A=function(){e(y,function(B){a[B]=[]})};A();return{touch:c,append:function(B){e(a,function(D,C){D.push(B[C])});return this},flush:function(){c(w.format(z,a));A();return this}}})()})(AD2);(function(a){var each=a.each,map=a.map,dom=a.DomUtil,$=dom.get,evt=a.DomEventUtil,fns=a.fns,close_button_width=13,close_button_height=13,close_button_url=a.resource("db_close.gif"),close_button_html='<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>',render=a.DisplayHelper.render,absolute_class="absolute",doNothing=function(){},SEPARATOR="q@q@",copy=function(o){var ret={};each(a.slice(arguments,1),function(p){ret[p]=o[p]});return ret},showEl=function(){each(arguments,function(el){$(el).style.display="block"})},hideEl=function(){each(arguments,function(el){$(el).style.display="none"})},getFlashInvoker=function(container){var o=container.getElementsByTagName("object");if(o.length){var flash=o[0];return function(method,retry_times){if(retry_times==null){retry_times=4}var i=0;(function(){if(i++>retry_times){return}try{flash[method]()}catch(e){setTimeout(arguments.callee,500)}})()}}else{return doNothing}},getReg=function(superclass){var _reg=function(o,type){if(typeof o=="function"){o=o()}a.DisplayManager.reg(type,a.Class.create(o,superclass))};return function(type,o){if(arguments.length==1){each(type,_reg)}else{_reg(o,type)}}},observeWindow=function(observer,buffer,run_it){var wrapper=a.buffer(observer,buffer);evt.on(window,"scroll",wrapper);evt.on(window,"resize",wrapper);if(run_it){observer()}},createAbsoluteElement=function(style,insert_to_document){var el=document.createElement("div");el.style.position="absolute";el.className=absolute_class;if(style){dom.setStyle(el,style)}if(insert_to_document){document.body.insertBefore(el,document.body.firstChild)}return el},locus=function(dest,now,n){var d=Math.abs(dest-now);if(d<n){return arguments.callee(dest,now,d/2)}return n<=1?dest:(dest+(n-1)*now)/n},createFixedElement=function(style,insert_to_document){var el=document.createElement("div");if(dom.ua.ie==6){el.style.position="absolute";el.className=absolute_class;var width=style.width;var height=style.height;var run=function(width,height){var getLeft=(function(){if(style.left!=undefined){return function(){return dom.getDocumentScrollLeft()+style.left}}return function(){return dom.getDocumentScrollLeft()+dom.getViewportWidth()-style.right-width}})();var getTop=(function(){if(style.top!=undefined){return function(){return dom.getDocumentScrollTop()+style.top}}return function(){return dom.getDocumentScrollTop()+dom.getViewportHeight()-style.bottom-height}})();var getPosition=function(smooth){if(smooth){var xy=dom.getXY(el);return{left:locus(getLeft(),xy[0],4),top:locus(getTop(),xy[1],4)}}return{left:getLeft(),top:getTop()}};each("top,left,right,bottom".split(","),function(pos){if(style[pos]){delete style[pos]}});setInterval(function(){dom.setStyle(el,getPosition(true))},30);dom.setStyle(el,getPosition(false))};var tryRun=function(){var width=el.offsetWidth,height=el.offsetHeight;if(!width||!height){setTimeout(arguments.callee,500)}else{run(width,height)}};if(!width||!height){tryRun()}else{run(width,height)}}else{el.style.position="fixed"}dom.setStyle(el,style);dom.setStyle(el,{"z-index":9999});if(insert_to_document){document.body.insertBefore(el,document.body.firstChild)}return el},enter_mutex=function(fn,delay){setTimeout(function(){if(mutex_lock()==0){fn()}else{setTimeout(arguments.callee,500)}},(delay||0)*1000)},invokeDisplayHelper=function(){render(this.getFodder(),$(this.area_config.id))},isSupport=(function(){var check_list={xap:function(version){var isVersionSupported=false;try{var control=null;if(dom.ua.ie){control=new ActiveXObject("AgControl.AgControl");if(version==null){isVersionSupported=true}else{if(control.IsVersionSupported(version)){isVersionSupported=true}}control=null}else{var plugin=navigator.plugins["Silverlight Plug-In"];if(plugin){if(version==null){isVersionSupported=true}else{var actualVer=plugin.description;if(actualVer==="1.0.30226.2"){actualVer="2.0.30226.2"}var actualVerArray=actualVer.split(".");while(actualVerArray.length>3){actualVerArray.pop()}while(actualVerArray.length<4){actualVerArray.push(0)}var reqVerArray=version.split(".");while(reqVerArray.length>4){reqVerArray.pop()}var requiredVersionPart;var actualVersionPart;var index=0;do{requiredVersionPart=parseInt(reqVerArray[index]);actualVersionPart=parseInt(actualVerArray[index]);index++}while(index<reqVerArray.length&&requiredVersionPart===actualVersionPart);if(requiredVersionPart<=actualVersionPart&&!isNaN(requiredVersionPart)){isVersionSupported=true}}}}}catch(e){isVersionSupported=false}return isVersionSupported}};return function(extension,version){if(check_list[extension]!=undefined){return check_list[extension](version)}return true}})();getReg(a.DisplayBase)({qzone:function(){var q=a.qzone=[];return{doRender:function(){var c=this["creativity_config"];var fodder=c.fodder[0];this.appendToPing(false);q.push({cid:c.cid,oid:c.oid,loc:this.area_config.id,resource_url:fodder.resource_url,link_to:fodder.link_to,text:c.monitor_url,width:fodder.width,height:fodder.height})}}},banner_import_monitor_url:{doRender:function(){this.appendToPing(false);render(this.getFodder(),$(this.area_config.id));a.DisplayHelper.renderer.js({resource_url:this.creativity_config.monitor_url},$(this.area_config.id))}},"null":{doRender:doNothing},"default":{doRender:invokeDisplayHelper},turner:{doRender:function(){var c=this["creativity_config"],area_config=this["area_config"],container=$(this.area_config.id),oids=[],cids=[],resource_urls=[],link_tos=[],monitor_urls=[],width=container.offsetWidth,height=container.offsetHeight;each(c,function(config){oids.push(config.oid);cids.push(config.cid);resource_urls.push(config.fodder[0].resource_url);link_tos.push(config.fodder[0].link_to);monitor_urls.push(config.monitor_url||"")});render({resource_url:a.resource("turner.swf"),width:width,height:height,initvars:a.mix({separator:SEPARATOR,oid:oids.join(SEPARATOR),cid:cids.join(SEPARATOR),link_to:link_tos.join(SEPARATOR),resource_url:resource_urls.join(SEPARATOR),monitor_url:monitor_urls.join(SEPARATOR),loc:this.area_config.id},c[0].fodder[0].initvars)},container)}},popup:{doRender:function(){var c=this["creativity_config"],display_config=c.display_config,area_id=this.area_config.id,fodder=this.getFodder();setTimeout(function(){var popup_window=window.open(a.resource("a.html?")+a.serializeQuery(a.mix({loc:area_id,oid:c.oid,cid:c.cid},fodder)),"_blank",a.getObjectToStringFn("=",",",false,false)({menubar:"no",left:0,top:0,width:fodder.width,height:fodder.height}));if(popup_window&&display_config.focus_back){popup_window.blur();window.focus()}},display_config.delay*1000)}}});getReg(a.PingDisplayBase)({alternative_banner:{doRender:function(){var fodders=this["creativity_config"]["fodder"];render(fodders[isSupport(a.getExtension(fodders[0].resource_url),fodders[0].version)?0:1],$(this.area_config.id))}},dropdown:{doRender:function(){var fodders=this.getFodder(),banner_fodder=fodders[0],extend_fodder=fodders[1],width=banner_fodder.width,banner_height=banner_fodder.height,extend_height=extend_fodder.height,banner_link_to=banner_fodder.link_to,extend_link_to=extend_fodder.link_to,flash,container=$(this.area_config.id);container.style.position="relative";var expand=a.generateId();var collapse=a.generateId();fns[collapse]=function(){flash.style.height=banner_height+"px"};fns[expand]=function(){flash.style.height=extend_height+"px"};render({resource_url:a.resource("expand_show.swf"),width:width,height:banner_height,params:{wmode:"transparent"},initvars:{width:width,banner_height:banner_height,extend_height:extend_height,banner_link_to:banner_link_to,extend_link_to:extend_link_to,banner:banner_fodder.resource_url,extend:extend_fodder.resource_url,expand:"AD2.fns."+expand,collapse:"AD2.fns."+collapse,oid:this["creativity_config"].oid}},container);flash=container.firstChild;flash.style.position="absolute";flash.className="absolute"}},dropdown_video:{doRender:function(){var fodders=this.getFodder(),banner_fodder=fodders[0],video_fodder=fodders[1],skin_fodder=fodders[2],width=banner_fodder.width,banner_height=banner_fodder.height,extend_height=skin_fodder.height,banner_link_to=banner_fodder.link_to,extend_link_to=video_fodder.link_to,flash,container=$(this.area_config.id);dom.setStyle(container,{position:"relative",overflow:"visible"});var expand=a.generateId();var collapse=a.generateId();fns[collapse]=function(){flash.style.height=banner_height+"px"};fns[expand]=function(){flash.style.height=extend_height+"px"};render({resource_url:a.resource("expand_video.swf"),width:width,height:banner_height,params:{wmode:"transparent"},initvars:{width:width,banner_height:banner_height,extend_height:extend_height,banner_link_to:banner_link_to,extend_link_to:extend_link_to,pre:banner_fodder.resource_url,extend:video_fodder.resource_url,skin:skin_fodder.resource_url,expand:"AD2.fns."+expand,collapse:"AD2.fns."+collapse,oid:this["creativity_config"].oid}},container);flash=container.firstChild;flash.style.position="absolute";flash.className="absolute"}},banner_script_src:{doRender:function(){var fodder=this.getFodder(),el=$(this.area_config.id);render(fodder[0],el);a.DisplayHelper.renderer.js(fodder[1],el)}},banner:{doRender:invokeDisplayHelper},script_src:{doRender:function(){a.DisplayHelper.renderer.js(this.getFodder(),$(this.area_config.id))}},script_text:{doRender:function(){try{eval(this.getFodder())}catch(e){}}},video:function(){var video_player_url=a.resource("embed_video.swf");return{doRender:function(){var fodders=this.getFodder(),video_fodder=fodders[0],skin_fodder=fodders[1],pre_fodder=fodders[2],video_width=skin_fodder.width,video_height=skin_fodder.height;render({resource_url:video_player_url,initvars:{oid:this.creativity_config.oid,skin:skin_fodder.resource_url,extend:video_fodder.resource_url,pre:pre_fodder.resource_url,banner_link_to:pre_fodder.link_to,extend_link_to:video_fodder.link_to},width:video_width,height:video_height},$(this.area_config.id))}}},fixed_video2:function(){var video_player_url=a.resource("bound_video.swf"),buoy_width=20,buoy_height=140;return{doRender:function(){var el=dom.createElement({"z-index":100});document.body.insertBefore(el,document.body.firstChild);var buoy=new dom.FixedPosElement(el);buoy.setCoordinates({width:buoy_width,height:buoy_height,right:0,bottom:0});var fodders=this.getFodder(),video_fodder=fodders[0],skin_fodder=fodders[1],buoy_fodder=fodders[2],video_width=skin_fodder.width,video_height=skin_fodder.height,expand=a.generateId(),collapse=a.generateId(),close=a.generateId();fns[expand]=function(){buoy.setCoordinates({width:video_width,height:video_height})};fns[collapse]=function(){buoy.setCoordinates({width:buoy_width,height:buoy_height})};fns[close]=function(){buoy.destroy()};render({resource_url:video_player_url,params:{wmode:"transparent"},initvars:{oid:this.creativity_config.oid,skin:skin_fodder.resource_url,extend:video_fodder.resource_url,pre:buoy_fodder.resource_url,banner_link_to:buoy_fodder.link_to,extend_link_to:video_fodder.link_to,expand:"AD2.fns."+expand,collapse:"AD2.fns."+collapse,close:"AD2.fns."+close},width:video_width,height:video_height},el);var flash=el.firstChild}}},fixed_video:function(){var prefix="ad_";var prefix_period_played=prefix+"played_";var period=1/24/6;var canPlay=function(id){var cookie=a.cookie[prefix+id];if(!cookie){return true}if(parseInt(cookie)<2){if(a.cookie[prefix_period_played+id]){return false}return true}return false};var countVideo=function(id){var cookie=a.cookie[prefix+id];var count;if(!cookie){count=1}else{count=parseInt(cookie)+1}a.Cookie.set(prefix+id,count,{expires:1,path:"/"});a.Cookie.set(prefix_period_played+id,"true",{expires:period,path:"/"})};var renderFlash=function(fodder){var id=a.generateId();var div=createFixedElement({width:fodder.width,height:fodder.height,overflow:"hidden",right:0,bottom:0},true);var mouseover=a.generateId();window[mouseover]=false;evt.on(div,"mouseover",function(){window[mouseover]=true});evt.on(div,"mouseout",function(){window[mouseover]=false});a.mixdeep(fodder,{initvars:{flash_id:id,mouseover:mouseover}});render(fodder,div);var fo=new a.FO(div);a.FM.reg(id,fo);return fo};var anchor_url=a.resource("fixed_video_anchor.gif");var action_dic={replay:41,close:42};var trace_url="http://t.qq.com/trace?t=v&oid={oid}&aid={aid}";return{doRender:function(){var display_config=this.getDisplayConfig(),video_fodder=this.getFodder(),fo,buoy,oid=this.creativity_config.oid;var ping=function(action){a.ping.touch(a.format(trace_url,{oid:oid,aid:action_dic[action]}))},renderBuoy=function(){buoy=createFixedElement({width:21,height:105,right:0,bottom:0,background:"url("+anchor_url+")"},true);var btnShowVideo=createAbsoluteElement({width:21,height:83,bottom:0,left:0,zIndex:1000,cursor:"pointer"},false);evt.on(btnShowVideo,"click",function(){ping("replay");showVideo();hideBuoy()});buoy.appendChild(btnShowVideo);var btnHideBuoy=createAbsoluteElement({width:21,height:22,top:0,left:0,zIndex:1000,"text-decoration":"underline",cursor:"pointer"},false);evt.on(btnHideBuoy,"click",function(){ping("close");hideBuoy()});buoy.appendChild(btnHideBuoy)},showVideo=function(){dom.setStyle(fo.getEl(),{width:video_fodder.width,height:video_fodder.height});fo.invokeFlash("_play_movie")},hideVideo=function(){dom.setStyle(fo.getEl(),{width:1,height:1})},showBuoy=function(){dom.setStyle(buoy,{visibility:"visible"})},hideBuoy=function(){dom.setStyle(buoy,{visibility:"hidden"})},renderVideo=function(){fo=renderFlash(video_fodder);fo.on({close:function(){hideVideo();showBuoy()},ready:function(){if(canPlay(oid)){showVideo();countVideo(oid)}else{showBuoy()}}})};renderVideo();hideVideo();renderBuoy();hideBuoy()}}},float_fullscreen:{doRender:function(){var el=dom.get(this.area_config.id),fodder=this.getFodder(),display_config=this.getDisplayConfig(),closed=false,container_height=close_button_height+fodder.height;var close=function(){if(!closed){dom.hide(el);mutex_unlock();closed=true}};dom.setStyle(el,{position:"absolute",width:fodder.width,height:container_height,"background-color":"#ccc","z-index":9999});el.className="absolute";enter_mutex(function(){var shim=document.createElement("iframe");shim.frameBorder="no";dom.setStyle(shim,{opacity:0,width:fodder.width,height:container_height});var content=createAbsoluteElement({width:fodder.width,height:fodder.height,left:0,top:close_button_height});var close_button=createAbsoluteElement({width:close_button_width,height:close_button_height,"background-image":"url("+close_button_url+")",cursor:"pointer",right:0,top:0});evt.on(close_button,"click",close);el.appendChild(close_button);el.appendChild(content);el.appendChild(shim);render(fodder,content);dom.show(el);setTimeout(close,display_config.duration*1000)},display_config.delay)}},raw_fullscreen:{doRender:function(){var container=dom.get(this.area_config.id),fodder=this.getFodder(),display_config=this.getDisplayConfig();enter_mutex(function(){render(fodder,container);dom.show(container);setTimeout(function(){dom.hide(container);mutex_unlock()},display_config.duration*1000)},display_config.delay)}},float2:{doRender:function(){var fodder=this.getFodder();var el=dom.createElement({"z-index":100});document.body.insertBefore(el,document.body.firstChild);var buoy=new dom.FixedPosElement(el);buoy.setCoordinates(a.mix({width:fodder.width,height:fodder.height},this.getDisplayConfig()));render(fodder,el)}},couplet:function(){var top_edge=17,left_edge=12,right_edge=12,page_content_width=766,close_button_size=13,close_button_src=a.resource("db_close.gif");return{doRender:function(){var fodders=this.getFodder(),closed=false;var close=function(){display(false);closed=true};var els=map(fodders,function(fodder){var el=createAbsoluteElement(true,{"z-index":100});dom.setStyle(el,{top:top_edge,width:fodder.width,height:fodder.height+close_button_size});render(fodder,el,false);var close_button_panel=dom.createElement(a.format(close_button_html,{width:fodder.width,height:close_button_height,close_button_url:close_button_url}));evt.on(close_button_panel.firstChild,"click",close);el.appendChild(close_button_panel);return el});dom.setStyle(els[0],{left:left_edge});dom.setStyle(els[1],{right:right_edge});var display=function(visible){each(els,function(el){dom.setStyle(el,{display:visible?"block":"none"})})};observeWindow(function(){if(!closed){display(dom.getViewportWidth()-left_edge-fodders[0].width-fodders[1].width-right_edge-page_content_width>0)}},100,true)}}},fullscreen2:function(){var replay_button_offsetY=-7,replay_button_config={width:"24px",height:"17px",right:"-22px",top:"-9px",display:"none","z-index":10,cursor:"pointer"},close_button_config={width:"49px",height:"21px",right:"7px",top:"7px","z-index":a.cover_zindex+1,cursor:"pointer","background-color":"#fff"},anim_config={duration:0.5};var appendPngToConfig=function(config,uri){if(dom.ua.ie==6){config.filter=a.format("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='{uri}')",uri)}else{config["background-image"]=a.format("url({uri})",uri)}};appendPngToConfig(replay_button_config,a.resource("f_replay3.png"));appendPngToConfig(close_button_config,a.resource("f_close.png"));return{doRender:function(){var fodder=this.getFodder(),display_config=this.getDisplayConfig(),close_button=createAbsoluteElement(close_button_config),replay_button=createAbsoluteElement(replay_button_config),container=dom.get(this.area_config.id),close_timer;var fodder_container=dom.createElement({width:fodder.width,height:fodder.height,overflow:"hidden"});container.appendChild(fodder_container);render(fodder,fodder_container);dom.setStyle(container,{position:"relative",display:"block",overflow:"visible"});var cover_layer=a.getCover(fodder_container);var flash=fodder_container.getElementsByTagName("object")[0];var container_anim=new a.Anim(container,anim_config);var fodder_container_anim=new a.Anim(fodder_container,anim_config);container_anim.on("Complete",function(){if(this.from.height==0){if(cover_layer){showEl(cover_layer)}showEl(close_button);close_timer=setTimeout(hide,display_config.duration*1000)}else{showEl(replay_button)}});var hide_from_to={from:{height:fodder.height},to:{height:0}};var show_from_to={from:{height:0},to:{height:fodder.height}};var hide=function(){clearTimeout(close_timer);if(cover_layer){hideEl(cover_layer)}container_anim.morph(hide_from_to);fodder_container_anim.morph(hide_from_to);hideEl(close_button)};var show=function(){clearTimeout(close_timer);container_anim.morph(show_from_to);fodder_container_anim.morph(show_from_to);hideEl(replay_button);if(flash){setTimeout(function(){try{flash.Rewind();flash.Play()}catch(e){}},50)}};evt.on(close_button,"click",hide);evt.on(replay_button,"click",show);fodder_container.appendChild(close_button);container.appendChild(replay_button);close_timer=setTimeout(hide,display_config.duration*1000)}}},fullscreen:function(){var replay_button_width=24,replay_button_height=17,replay_button_offsetY=-7,replay_button_config={width:replay_button_width+"px",height:replay_button_height+"px",display:"none",cursor:"pointer"},close_button_config={width:"19px",height:"19px",right:"7px",top:"7px","background-image":"url("+a.resource("f_close.gif")+")",cursor:"pointer"},replay_img_src=a.resource("f_replay3.png"),back_proxy_config={"z-index":999,left:"-9999px",border:"2px solid #ccc",opacity:0.5};if(dom.ua.ie==6){replay_button_config.filter=a.format("progid:DXImageTransform.Microsoft.AlphaImageLoader(src='{uri}')",replay_img_src)}else{replay_button_config["background-image"]=a.format("url({uri})",replay_img_src)}return{doRender:function(){var container=dom.get(this.area_config.id),fodder=this.getFodder(),display_config=this.getDisplayConfig(),show_duration=display_config.show_duration,hide_duration=display_config.hide_duration,close_button=createAbsoluteElement(close_button_config),replay_button=createAbsoluteElement(replay_button_config),close_timer;dom.setStyle(container,{overflow:"hidden",height:0,position:"relative",display:"block"});var fodder_width=fodder.width,fodder_height=fodder.height,back_proxy=createAbsoluteElement(back_proxy_config);render(fodder,container);var invokeFlash=getFlashInvoker(container);var morphProxy=(function(){var anim_proxy=new a.Anim(back_proxy,{callback:function(){dom.setStyle(back_proxy,{left:-9999})}});return function(show){dom.setStyle(replay_button,{display:""});var f_xy=dom.getXY(container),t_xy=dom.getXY(replay_button);dom.setStyle(replay_button,{display:"none"});var arr=[{left:f_xy[0],top:f_xy[1],width:fodder_width-4,height:fodder_height-4},{left:t_xy[0],top:t_xy[1],width:replay_button_width-4,height:replay_button_height-4}];if(!show){anim_proxy.morph({from:arr[0],to:arr[1],config:{duration:hide_duration}})}else{anim_proxy.morph({from:arr[1],to:arr[0],config:{duration:show_duration}})}}})();var hide=(function(){var anim_hide=new a.Anim(container,{duration:hide_duration,callback:function(){dom.setStyle(replay_button,{display:"block"});mutex_unlock()}});return function(){clearTimeout(close_timer);morphProxy(false);invokeFlash("StopPlay");anim_hide.morph({to:{height:0}})}})();var show=(function(){var anim_show=new a.Anim(container,{duration:show_duration,callback:function(){close_timer=setTimeout(hide,display_config.duration*1000)}});return function(){clearTimeout(close_timer);dom.setStyle(replay_button,{display:"none"});morphProxy(true);invokeFlash("Rewind");invokeFlash("Play");anim_show.morph({to:{height:fodder_height}})}})();evt.on(close_button,"click",hide);evt.on(replay_button,"click",function(){_show(false)});container.appendChild(close_button);document.body.insertBefore(replay_button,document.body.firstChild);document.body.insertBefore(back_proxy,document.body.firstChild);observeWindow(function(){var xy=dom.getXY(container);dom.setStyle(replay_button,{left:xy[0]+fodder_width-3,top:xy[1]+replay_button_offsetY})},0,true);var _show=function(retry){if(retry){enter_mutex(show,0)}else{if(mutex_lock()==0){show()}}};a.showFullScreen=function(){_show(false)};setTimeout(function(){_show(true)},display_config.delay*1000)}}}})})(AD2);(function(b){var c={string:function(a){return a},bool:function(a){if(a.toLowerCase()=="false"){return false}return true},number:function(a){return a-0}};b.getQueryData=function(e,d){d=d||location.href;var f={},a=d.indexOf("?");if(a!=-1){b.each(d.substring(a+1).split("&"),function(g){g=g.split("=");if(g[1]!=null){f[g[0]]=decodeURIComponent(g[1])}})}if(e){b.each(e,function(h,g){if(f[g]!=null){f[g]=c[h](f[g])}})}return f}})(AD2);