(window.ad=(window.ad||{})).corner={render:function(q,f){var h=window.jQuery,j=0,g=0,c=0,r=0,l=0,n=0,d=0,u=0,t=[],i=[],v=function(x,y){h(j).stop().animate({custom:x},{duration:f.speed,step:function(z){if(z<f.size.min){z=f.size.min}l.css("width",z).css("height",z);g.css("width",z).css("height",z);c.css("right",z);r.css("top",z);d.css("top",z-f.size.max).parent().css("width",z+f.size.offset).css("height",z+f.size.offset);if(y&&z>=f.size.max){y()}}})},s=function(){u=1},e=function(){n.hide().fadeTo(1,1);u=0},o=function(z,x,A){var y=function(){if(A){A()}};if(!x||x<0){y();return}z.push(setTimeout(y,x))},a=function(y){for(var x=0,z=y.splice(0,y.length);z.length;){x=z.splice(0,1);if(x){clearTimeout(x)}}},b=function(x){a(i);o(t,Math.max(f.lazy||0,100),function(){v(f.size.max,function(){if(f.sticky){n.fadeIn(1000,s)}})})},w=function(x){a(t);o(i,Math.max(f.lazy||0,200),function(){if(!u&&x||!x){n.stop().fadeOut(1,function(){v(f.size.min,e)})}})},k=function(){w();return 0},p=function(){if(f.ct){window.open(f.ct);return 0}return 1};h(function(){var y=f.size.min,x=f.size.max,A=f.size.offset,z=function(B){return(f.path||"")+B};if(h(".ad-corner-content",(j=h(q))).length){j.append('<img class="z9 ad-corner-folh" src="'+z("ad-corner-folh.png")+'">').append('<img class="z9 ad-corner-folv" src="'+z("ad-corner-folv.png")+'">').append('<img class="z8 ad-corner-fold" src="'+z("ad-corner-fold.png")+'">').append('<img class="z5 ad-corner-bg"   src="'+z("ad-corner-bg.png")+'">');h.ifixpng(z("ad-corner-pixel.gif"));h("img[src$=.png]",j).ifixpng();n=h(".ad-corner-ui-close",j);c=h(".ad-corner-folh",j).css("right",y);r=h(".ad-corner-folv",j).css("top",y);g=h(".ad-corner-fold",j).css("width",y).css("height",y);l=h(".ad-corner-viewport",j).css("width",y).css("height",y).find(".ad-corner-content",j).css("width",x).css("height",x).end();d=h(".ad-corner-bg",j).css("left",0).css("top",y-x).wrap("<div></div>").parent().css("width",y+A).css("height",y+A).css("right",0).css("top",0).css("position","absolute").css("overflow","hidden").end();g.hover(b,w);g.click(p);n.click(k);j.show()}});var m=function(){if(window.console){window.console.log(Array.prototype.join.call(arguments," "))}}},__BUILD:"2009-11-05-825d51e 804c3e385bf7126e93c62174455d513d41fe7d54"};(function(b){b.ifixpng=function(c){b.ifixpng.pixel=c};b.ifixpng.regexp={bg:/^url\(["']?(.*\.png([?].*)?)["']?\)$/i,img:/.*\.png([?].*)?$/i},b.ifixpng.getPixel=function(){return b.ifixpng.pixel||"images/pixel.gif"};var a={base:b("base").attr("href"),ltie7:b.browser.msie&&b.browser.version<7,filter:function(c){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+c+"')"}};b.fn.ifixpng=a.ltie7?function(){function c(h,g,e,d,f){h.css({filter:a.filter(g),width:e,height:d}).attr({src:b.ifixpng.getPixel()}).positionFix()}return this.each(function(){var f=b(this);if(f.is("img")||f.is("input")){var h,e;if(this.src&&this.src.match(b.ifixpng.regexp.img)){h=(a.base&&this.src.substring(0,1)!="/"&&this.src.indexOf(a.base)===-1)?a.base+this.src:this.src;if(!this.width||!this.height){b(new Image()).one("load",function(){c(f,h,this.width,this.height);b(this).remove()}).attr("src",h)}else{c(f,h,this.width,this.height)}}}else{if(this.style){var i=f.css("backgroundImage");if(i&&i.match(b.ifixpng.regexp.bg)&&this.currentStyle.backgroundRepeat=="no-repeat"){i=RegExp.$1;var d=this.currentStyle.backgroundPositionX||0,j=this.currentStyle.backgroundPositionY||0;if(d||j){var g={},e;if(typeof d!="undefined"){if(d=="left"){g.left=0}else{if(d=="right"){g.right=f.width()%2===1?-1:0}else{g.left=d}}}if(typeof j!="undefined"){if(j=="bottom"){g.bottom=f.height()%2===1?-1:0}else{if(j=="top"){g.top=0}else{g.top=j}}}e=new Image();b(e).one("load",function(){var k,o,m={},n;if(/center|%/.test(g.top)){m.top="(this.parentNode.offsetHeight - this.offsetHeight) * "+(g.top=="center"?0.5:(parseInt(g.top)/100));delete g.top}if(/center|%/.test(g.left)){m.left="(this.parentNode.offsetWidth - this.offsetWidth) * "+(g.left=="center"?0.5:(parseInt(g.left)/100));delete g.left}f.positionFix().css({backgroundImage:"none"}).prepend(b("<div></div>").css(g).css({width:this.width,height:this.height,position:"absolute",filter:a.filter(i)}));if(m.top||m.left){var l=f.children(":first")[0];for(n in m){l.style.setExpression(n,m[n],"JavaScript")}}b(this).remove()});e.src=i}else{f.css({backgroundImage:"none",filter:a.filter(i)})}}}}})}:function(){return this};b.fn.positionFix=function(){return this.each(function(){var c=b(this);if(c.css("position")!="absolute"){c.css({position:"relative"})}})}})(jQuery);