if(typeof(BooManager)=="undefined"){String.prototype.trim=function(){return this.replace(/^\s*/,"").replace(/\s*$/,"")};$bb=window.$bb||undefined;BooManager=new function(){var p=false,n=this,g=true,y=false,l={},u={},k={},c=/(google\.com|([a-zA-Z]{2}\.)?search\.yahoo\.|bing\.|search\.aol\.|ask\.com|br\.altavista\.|lycos\.|alltheweb\.)/,i=/(interney|blogblogs|jovemnerd|ikwa|submarino|submarinoW|americanas|shoptime|guiamais)/,V=/(bba|bbb|bbc|bbd|bbe|bbf|bbg|bbh|bbi|bbj|bbk|bbl|bbm|bbn|bbo)/,b={bba:50,bbb:50,bbc:25,bbd:25,bbe:65,bbf:65,bbg:75,bbh:75,bbi:60,bbj:40,bbk:65,bbl:50,bbm:65,bbn:65,bbo:50},s={bba:7,bbb:7,bbc:6,bbd:2,bbe:1,bbf:1,bbg:5,bbh:5,bbi:10,bbj:4,bbk:2,bbl:4,bbm:4,bbn:6,bbo:9},H={_list:/(submarino|submarinoW|americanas|shoptime)/,_submarinoW:{label:"Submarino",formats:/(bba|bbb|bbc|bbg|bbh|bbi)/},_submarino:{label:"Submarino",formats:V,chars:b,limits:s},_americanas:{label:"Americanas",formats:V,chars:b,limits:s},_shoptime:{label:"Shoptime",formats:V,chars:b,limits:s}},M=((typeof bb_https!="undefined"&&bb_https==true)?"https":"http"),Y={_site:M+"://boo-box.com/",_api:M+"://"+(M=="http"?"sledge.boo-box.com/":"sledge-ssl.boo-box.com/"),_stable:M+"://stable.boo-box.com",_static:M+"://static.boo-box.com/",_dummyurl:M+"://static.boo-box.com/favicon.ico"},x={google:M+"://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js",our:Y._static+"javascripts/jquery/api/1.4.2.js"};var f=function f(){var Z=document.getElementsByTagName("script"),ae,ab;for(var ac=0,aa=Z.length;ac<aa;ac++){ae=Z[ac];if(ae.src&&(ae.src.match(/javascripts\/embed\.js/)||ae.src.match(/javascripts\/embed\.src\.js/))){ab=(ae.getAttribute("class")||"");if(!ab.match(/bb_script/)){ae.setAttribute("className","bb_script");ae.setAttribute("class","bb_script")}}}};var o=function o(){var ae=["name","type","user","shop","did","bid","aff","limit","list","keywords","keygroup","uid","width","format","price","lang","ads","sinc","ref","log","clickpartner","serverpartner","clickpartnerseq","generalclickpartner","ad_id","c_id"],af=BooManager.widgets,aj=[],aa,ah;af.push({});for(var ac=0,ab=ae.length;ac<ab;ac++){aa=ae[ac];ah=window["bb_"+aa];if(ah!==undefined&&(ah=ah.trim())!==""){switch(aa){case"name":case"ads":ah=ah.toLowerCase();break;case"format":aj.push(aa+"_api="+ah);break;case"keywords":case"keygroup":aj.push(aa+"="+encodeURIComponent(C(ah)));break;case"clickpartner":var ai=ah+Y._dummyurl;aj.push(aa+"="+encodeURIComponent(ai));break;case"ref":case"clickpartnerseq":case"generalclickpartner":case"serverpartner":aj.push(aa+"="+encodeURIComponent(ah));break;case"width":var Z=parseInt(ah.replace(/px/,"")),ag=parseInt(af[af.length-1].limit*100),al=ag/Z,ak=parseInt((al===1)?100:al*100);aj.push("_width="+Z);aj.push("_height="+ak);break;default:aj.push(aa+"="+ah);break}af[af.length-1][aa]=ah}else{if(aa=="name"){ah="custom"}af[af.length-1][aa]=ah}window["bb_"+ae[ac]]=""}return aj.join("&")};var m=function m(ae,ac){if(typeof jQuery!="undefined"){return}var aa=document.getElementsByTagName("head")[0],ab=document.createElement("script"),Z=false;ab.type="text/javascript";ab.src=x.google;BooManager.jsonCallStack.push([ae,ac]);if(!y){y=true}else{return}ab.onerror=function(){J()};ab.onload=ab.onreadystatechange=function(){if(!Z&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){Z=true;J();ab.onload=ab.onreadystatechange=null;aa.removeChild(ab)}};return aa.appendChild(ab)};var J=function J(){var ab;if(BooManager.jsonCallStack.length>0){for(var aa=0,Z=BooManager.jsonCallStack.length;aa<Z;aa++){ab=BooManager.jsonCallStack[aa];D(ab[0],ab[1])}}};var D=function D(aa,Z){if(g){$bb=jQuery}else{$bb=jQuery.noConflict()}r(aa,Z)};var r=function r(af,ae){var ac=BooManager.widgets,Z=[],ab="",ag="BooManager.parseJson",aa=Math.floor(Math.random()*(1000));if(p){ab=document.referrer.match(c)?encodeURIComponent(document.referrer):""}Z.push(Y._api+ac[ae]["name"]+"/list");Z.push("?callback="+ag);Z.push("&"+af);Z.push("&el="+ae);if(ab!=""){Z.push("&sref="+ab)}Z.push("&rnd="+aa);if(ae>6){Z.push("&no_ads=true")}A(Z.join(""),null,function(){BooManager.parseJson({el:ae})})};var T=function T(af){var ae=BooManager.widgets,ac=af.ad,aa=[],ab;ab=parseInt(af.el);ac.el=ab;if(typeof ae[ab]["clickpartnerseq"]!="undefined"){ac.url=ae[ab]["clickpartnerseq"]+ac.url}if(M=="https"&&/^http:\/\/static\.boo-box\.com/.test(ac.img)&&(ac.content_type=="image"||ac.content_type=="flash")){ac.img="https://"+ac.img.replace(/^http:\/\//,"")}switch(ac.content_type){case"image":if(typeof ae[ab]["clickpartner"]!="undefined"){ae[ab]["clickpartner"]+=encodeURIComponent(Y._dummyurl)}aa.push(e(ac));break;case"flash":if(typeof ae[ab]["clickpartner"]!="undefined"){ac.url=ae[ab]["clickpartner"]+ac.url}aa.push(B(ac));break;case"js":aa.push(N(ac));break;case"overlay":aa.push(X(ac));break;default:if(typeof ae[ab]["clickpartner"]!="undefined"){var Z=ae[ab]["clickpartner"]+ac.url+"?uri=";ac.img=ac.img.replace(/<#CLICKPARTNER>/g,Z)}ae[ab]["bb_ad"]=ac;aa.push("<iframe");aa.push(' src="'+document.location.href+'#boo-blank"');aa.push(' id="boo-frame-'+ab+'"');aa.push(' width="'+ac.width+'"');aa.push(' height="'+ac.height+'"');aa.push(' scrolling="no" frameborder="0" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" allowtransparency="true"></iframe>');aa.push('<script type="text/javascript">BooManager.loadIframe(BooManager.widgets['+ab+"]['bb_ad'].img, "+ab+")<\/script>");if(ac.aditional_content){aa.push("<span>"+ac.aditional_content+"</span>")}break}return aa.join("")};var e=function e(ae,Z){var aa=[],ac=BooManager.widgets,ab;ab=parseInt(ae.el);aa.push("<a ");if(typeof Z=="undefined"){aa.push(' target="_blank"')}if(typeof ac[ab]["clickpartner"]!="undefined"){aa.push(" onclick=\"BooManager.clickPartner('"+ac[ab]["clickpartner"]+"');\"")}else{if(typeof ac[ab]["generalclickpartner"]!="undefined"){aa.push(" onclick=\"BooManager.clickPartner('"+ac[ab]["generalclickpartner"]+"');\"")}}aa.push(' href="'+ae.url+'">');aa.push('<img style="border:0;width:'+ae.width+"px;height:"+ae.height+'px;" src="'+ae.img+'" />');aa.push("</a>"+(ae.aditional_content||""));return aa.join("")};var B=function B(af){var aa=af.width,ac=af.height,Z=[],ae=BooManager.widgets,ab,ag;ab=parseInt(af.el);ag=af.img.split("/");ag=ag[ag.length-1];ag="booflash"+ag.split(".swf")[0];if(af.aditional_content&&af.aditional_content.match(/(mytruewidth:)/)){aa=af.aditional_content.split("mytruewidth:")[1];aa=aa.split("|")[0]}if(af.aditional_content&&af.aditional_content.match(/(mytrueheight:)/)){ac=af.aditional_content.split("mytrueheight:")[1];ac=ac.split("|")[0]}$bb("div#boo-"+af.el).css("height",ac+"px");Z.push('<div style="position:absolute;width:'+af.width+"px;height:"+af.height+'px;overflow:hidden;z-index:1000 !important">');Z.push('<object id="'+ag+'" width="'+aa+'" height="'+ac+'">');Z.push('<param name="movie" value="'+af.img+'"></param>');Z.push('<param name="allowFullScreen" value="true"></param>');Z.push('<param name="allowscriptaccess" value="always"></param>');Z.push('<param name="wmode" value="transparent"></param>');Z.push('<param name="menu" value="false"></param>');Z.push('<param name="quality" value="high"></param>');Z.push('<param name="flashvars" value="'+K(af.flash_var,af.url)+'"></param>');Z.push('<embed src="'+af.img+'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" menu="false" quality="high" flashvars="'+K(af.flash_var,af.url)+'" width="'+aa+'" height="'+ac+'"></embed>');Z.push("</object>");Z.push((af.aditional_content||""));Z.push("</div>");return Z.join("")};var N=function N(aa){var Z=[];Z.push('<script type="text/javascript" src="'+ad.img+'"><\/script>'+(ad.aditional_content||""));return Z.join("")};var X=function X(ab){var aa=[],Z=[];Z.push("javascript:BooManager.openAnyFormat({");Z.push("%22is_ad%22:"+ab.overlay.is_ad+",");Z.push("%22img%22:%22"+ab.overlay.img+"%22,");Z.push("%22width%22:"+ab.overlay.width+",");Z.push("%22height%22:"+ab.overlay.height+",");Z.push("%22flash_var%22:[%22"+(ab.overlay.flash_var||"")+"%22],");Z.push("%22url%22:%22"+ab.overlay.url+"%22,");Z.push("%22content_type%22:%22"+ab.overlay.content_type+"%22,");Z.push("%22aditional_content%22:%22"+(ab.overlay.aditional_content||"")+"%22,");Z.push("%22name%22:%22"+ab.overlay.name+"%22");Z.push("}, 'overlay', ["+(ab.overlay_view_url?"'"+ab.overlay_view_url+"'":"")+"]);");Z.push("$bb.get('"+ab.overlay.url+"');");Z.push("void(0);");ab.url=Z.join("");if(ab.img.match(/.swf/)){aa.push(B(ab))}else{aa.push(e(ab,true))}return aa.join("")};var U=function U(af){var ac=BooManager.widgets,ab=af.products,ao=[],aq=ab.length,aa,ak,at,ah,Z,ap;if(ab.length<=0){return S(af)}ah=parseInt(af.el);Z=$bb("#boo-"+ah);aa=ac[ah]["name"];ak=ac[ah]["format"];at=ac[ah]["partner_url"]||undefined;if(navigator&&navigator.userAgent){ap=(navigator.userAgent.toLowerCase().match(/iphone/))}if(!ap&&typeof(ac[ah]["width"])=="undefined"){ac[ah]["width"]="200px"}else{if(ap){ac[ah]["width"]="auto"}}if(typeof ac[ah]["format"]=="undefined"){ac[ah]["format"]="default"}Z.addClass(ac[ah]["format"]+" "+ac[ah]["name"]);if(ac[ah]["format"]=="default"&&typeof ac[ah]["width"]!="undefined"){var ar=ac[ah]["width"];ar.match(/px/)?Z.width(ar):Z.width(ar+"px")}ao.push('<ul class="boo-gallery" style="display:none;">');if(H["_"+aa]&&H["_"+aa].limits&&H["_"+aa].limits[ak]&&aq>H["_"+aa].limits[ak]){aq=H["_"+aa].limits[ak]}for(var an=0;an<aq;an++){var av=F.utf8_decode(ab[an].name),ai=av,al=ab[an].price,ae=ab[an].url,am=(ab[an].content_type=="flash");if(ac[ah]["ads"]){ae=ac[ah]["ads"]+ae}if(H["_"+aa]&&H["_"+aa].chars&&H["_"+aa].chars[ak]){ai=R(ai,H["_"+aa].chars[ak])}else{ai=R(ai,50)}ai=d(ai,(!($bb.browser.msie&&parseInt($bb.browser.version)<7)?"&#8203;":"<wbr>"));if(an==0&&aa.match(H._list)){ao.push('<li class="boo-lipartner">');ao.push('<a class="boo-apartner"');if(at){ao.push(' href="'+at+'"')}ao.push(' target="_blank">');ao.push(H["_"+aa].label);ao.push("</a>");ao.push("</li>")}ao.push("<li");if(an==0||(an==1&&aa!="submarinoW"&&(ak=="bbi"||ak=="bbj"||ak=="bbl"||ak=="bbm"||ak=="bbn"||ak=="bbo"))||(an==2&&aa!="submarinoW"&&(ak=="bbn"||ak=="bbo"))){ao.push(' class="boo-first"')}else{if(an==aq-1){ao.push(' class="boo-last"')}}ao.push(">");if(!am){ao.push('<a class="boo-aimg" href="'+ae+'" ');ao.push('onmouseover="BooManager.onHoverP(this, true);" onmouseout="BooManager.onHoverP(this, false);" ');ao.push('title="'+av+" - "+al+'" target="_blank">');ao.push('<img alt="'+F.utf8_decode(ab[an].name)+'" src="'+((aa!="americanas")?ab[an].img:ab[an].img.replace(/p.gif/g,"g.gif"))+'" class="bbno" onerror="BooManager.onError(this);" />');ao.push("</a>");ao.push('<a class="boo-aspan" href="'+ae+'" ');ao.push('onmouseover="BooManager.onHoverP(this, true);" onmouseout="BooManager.onHoverP(this, false);" ');ao.push('title="'+av+" - "+al+'" target="_blank">');ao.push('<span class="boo-tspan">'+ai+"</span> ");ao.push('<span class="boo-pspan">'+al+"</span>");ao.push("</a>");if(ab[an].price!=""){var ag=ab[an].price,aj="COMPRE";if(ac[ah]["price"]!="no"){ao.push('<span title="'+av+" - "+al+'" class="boo-price" onmouseover="BooManager.onHoverP(this, true);" onmouseout="BooManager.onHoverP(this, false);"><a href="'+ae+'" title="'+av+" - "+al+'" target="_blank">'+ag+"</a></span>")}ao.push('<span title="'+av+" - "+al+'" class="boo-compra" onmouseover="BooManager.onHoverP(this, true);" onmouseout="BooManager.onHoverP(this, false);"><a href="'+ae+'" title="'+av+" - "+al+'" target="_blank">'+aj+"</a></span>")}}else{var au=ab[an];ao.push('<embed wmode="transparent" menu="false" width="'+au.width+'" height="'+au.height+'" flashvars="'+K(au.flash_var,au.url)+'" allowscriptaccess="always" allowfullscreen="true" quality="high" name="movie_player" src="'+au.img+'" type="application/x-shockwave-flash"/>')}ao.push("</li>")}ao.push("</ul>");ao.push('<div class="clear"><!-- --></div>');ao.push('<div class="boo-powered"><a target="_blank" class="boo-brand" href="http://boo-box.com">Ganhe mais usando boo-box</a></div>');ao.push('<div class="clear"><!-- --></div>');return ao.join("")};var K=function K(ag,af){var Z=[],ae=(typeof ag==="string")?[ag]:ag,ac=(typeof af==="string")?[af]:af;if(!ae){return""}for(var ab=0,aa=ae.length;ab<aa;ab++){Z.push(ae[ab]+"="+ac[ab]);if(ab!==aa-1){Z.push("&")}}return Z.join("")};var S=function S(ag){if(ab&&ae[ab]&&ae[ab]["name"]&&ae[ab]["name"].match(/submarino/)){return""}var ae=BooManager.widgets,Z=[],ac=null,af=Y._static+"images/campaigns/joker/",ab,aa;ab=parseInt(ag.el);aa=$bb("#boo-"+ab);if(typeof ae[ab]["format"]!="undefined"){aa.addClass(ae[ab]["format"]+" custom")}else{aa.css("width",$bb(aa.parentNode).width()+"")}switch(ae[ab]["format"]){case"bba":case"bbb":ac={width:728,height:90,img:af+"728x90.gif"};break;case"bbc":ac={width:468,height:60,img:af+"468x60.gif"};break;case"bbd":ac={width:234,height:60,img:af+"234x60.gif"};break;case"bbe":case"bbf":ac={width:125,height:125,img:af+"125x125.gif"};break;case"bbg":case"bbh":ac={width:120,height:600,img:af+"120x600.gif"};break;case"bbi":ac={width:160,height:600,img:af+"160x600.gif"};break;case"bbj":ac={width:180,height:150,img:af+"180x150.gif"};break;case"bbk":ac={width:120,height:240,img:af+"120x240.gif"};break;case"bbl":ac={width:200,height:200,img:af+"200x200.gif"};break;case"bbm":ac={width:250,height:250,img:af+"250x250.gif"};break;case"bbn":ac={width:300,height:250,img:af+"300x250.gif"};break;case"bbo":ac={width:336,height:280,img:af+"336x280.gif"};break;default:ac={width:125,height:125,img:af+"125x125.gif"};break}ac.url="http://www.boo-box.com/";if(ac){Z.push(e(ac))}return Z.join("")};var v=function v(Z,aa){$bb("div#boo-"+aa).html(Z);if(typeof ltgc=="undefined"){ltgc=new Function()}};var z=function z(){if(M=="http"){window.__mtdata={client:"2658a2",action:"hit"};var Z=document.createElement("script");Z.src="http://cdn.meaningtool.com/pixer/js/0.3/mt.js";Z.type="text/javascript";Z.id="popego_2658a2";$bb("head")[0].appendChild(Z)}};var C=function C(ae){var aa=255,ac=ae.split(","),af=[],ag;for(var ab=0,Z=ac.length;ab<Z;ab++){ag=ac[ab].trim().replace(/\s{2,}/g," ");if(!ag){continue}if(af.join(",").length+ag.length<aa){af.push(ag)}}return af.join(",")};var a=function a(Z){if(!l[Z]){l[Z]=true;$bb('<link rel="stylesheet" type="text/css" href="'+Z+'" />').appendTo("head")}};var A=function A(ab,aa,Z){if(!u[ab]){u[ab]=true;$bb.ajax({url:ab,dataType:"script",success:aa,error:Z})}else{if(aa){aa()}}};var d=function d(Z,aa){if(Z.length>4){Z=Z.replace(RegExp("(\\w{4})","g"),function(ab){return ab+aa})}return Z};var R=function R(Z,ac){var ab=[],aa=0;Z=Z.split(" ");while(aa<Z.length&&ab.join(" ").length<ac){ab.push(Z[aa++]);if(ab.join(" ").length>ac){ab.pop();break}}if(!ab.length){ab.push(Z)}return ab.join(" ")};var t=function t(ae,Z,ab){var aa="",ac;if(ab){ac=new Date();ac.setTime(ac.getTime()+(ab*24*60*60*1000));aa="; expires="+ac.toGMTString()}document.cookie=ae+"="+Z+aa+"; path=/"};var j=function j(ab){var ac=ab+"=",Z=document.cookie.split(";");for(var aa=0;aa<Z.length;aa++){var ae=Z[aa].trim();if(ae.indexOf(ac)==0){return ae.substring(ac.length,ae.length)}}return null};var E=function E(Z){createCookie(Z,"",-1)};var F=new function(){var Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";this.utf8_encode=function ab(ag){var af="";ag=ag.replace(/\r\n/g,"\n");for(var ai=0;ai<ag.length;ai++){var ah=ag.charCodeAt(ai);if(ah<128){af+=String.fromCharCode(ah)}else{if((ah>127)&&(ah<2048)){af+=String.fromCharCode((ah>>6)|192);af+=String.fromCharCode((ah&63)|128)}else{af+=String.fromCharCode((ah>>12)|224);af+=String.fromCharCode(((ah>>6)&63)|128);af+=String.fromCharCode((ah&63)|128)}}}return af};this.utf8_decode=function ae(af){var ag="",ah=0,ai=c1=c2=0;while(ah<af.length){ai=af.charCodeAt(ah);if(ai<128){ag+=String.fromCharCode(ai);ah++}else{if((ai>191)&&(ai<224)){c2=af.charCodeAt(ah+1);ag+=String.fromCharCode(((ai&31)<<6)|(c2&63));ah+=2}else{c2=af.charCodeAt(ah+1);c3=af.charCodeAt(ah+2);ag+=String.fromCharCode(((ai&15)<<12)|((c2&63)<<6)|(c3&63));ah+=3}}}return ag};this.encode=function aa(ah){var af="",ag=0,ao,am,ak,an,al,aj,ai;ah=F.utf8_encode(ah);while(ag<ah.length){ao=ah.charCodeAt(ag++);am=ah.charCodeAt(ag++);ak=ah.charCodeAt(ag++);an=ao>>2;al=((ao&3)<<4)|(am>>4);aj=((am&15)<<2)|(ak>>6);ai=ak&63;if(isNaN(am)){aj=ai=64}else{if(isNaN(ak)){ai=64}}af=af+Z.charAt(an)+Z.charAt(al)+Z.charAt(aj)+Z.charAt(ai)}return af+"-"+af.length};this.decode=function ac(ah){var af="",ag=0,ao,am,ak,an,al,aj,ai;ah=ah.split("-")[0];ah=ah.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(ag<ah.length){an=Z.indexOf(ah.charAt(ag++));al=Z.indexOf(ah.charAt(ag++));aj=Z.indexOf(ah.charAt(ag++));ai=Z.indexOf(ah.charAt(ag++));ao=(an<<2)|(al>>4);am=((al&15)<<4)|(aj>>2);ak=((aj&3)<<6)|ai;af=af+String.fromCharCode(ao);if(aj!=64){af=af+String.fromCharCode(am)}if(ai!=64){af=af+String.fromCharCode(ak)}}af=F.utf8_decode(af);return af}};var h=function O(aa){var Z={el:aa.el,view_url:aa.view_url,ad:{content_type:"tag",height:aa.adserver.height,width:aa.adserver.width,img:aa.adserver.tag,is_ad:true,aditional_content:"",el:aa.el,flash_var:[],url:"",name:""}};return Z};this.widgets=[];this.jsonCallStack=[];this.init=function P(){f();var ab=BooManager.widgets,ae=o(),ac=ab.length-1,Z=false,af=false,aa=false;if(typeof ab[ab.length-1]["name"]=="string"&&ab[ab.length-1]["name"]!="undefined"&&ab[ab.length-1]["name"]!=""){aa=true}if(!aa){return false}if(typeof jQuery!="undefined"){D(ae,ac)}else{g=false;m(ae,ac)}};this.parseJson=function W(ac){var ah=BooManager.widgets,ae=ah[parseInt(ac.el)].el=parseInt(ac.el),aa=$bb("script.bb_script:eq("+ae+")"),af=ah[ae]["name"]||"",ai=ah[ae]["aff"]||"",ag=ah[ae]["format"]||"",Z=ac.shop||af,ab;z();if(Z.match(H._list)){af=ah[ae]["name"]=Z;ah[ae]["partner_url"]=ac.partner_url}if(af.match(i)){if(af=="submarino"&&ai!=undefined&&ai!=""){af=ah[ae]["name"]=af+"W"}ab=af}else{ab="widget"}if(!ac.invisible){a(Y._static+"stylesheets/widgets/"+ab+".css");aa.before('<div class="boo-widget'+(ag!=undefined?" "+ag:"")+(af!=undefined?" "+af:"")+'" id="boo-'+ae+'"></div>');if(ac.ad||ac.adserver){if(ac.adserver){ac=h(ac)}v(T(ac),ae)}else{if(ac.products){v(U(ac),ae)}else{v(S(ac),ae)}}}if(ac.script){if(!u[ac.script]){u[ac.script]=true;$bb("div#boo-"+ae).append("<span/>").html(ac.script)}}if(ac.autocash){A(Y._static+"javascripts/autocash/link.js")}if(ac.view_url){$bb.ajax({url:ac.view_url,type:"POST",cache:false})}};this.onHoverP=function w(aa,Z){if(Z){$bb(aa.parentNode).addClass("boo-ativo")}else{$bb(aa.parentNode).removeClass("boo-ativo")}};this.onError=function Q(Z){$bb(Z).attr("src",Y._static+"images/bbj.jpg")};this.clickPartner=function I(aa,ab){var Z=[];Z=new Image();Z.src=aa||"";BooManager.openClickTag(ab)};this.openClickTag=function G(aa){if(typeof aa!="undefined"){var Z=window.open(aa,"_blank")}};this.loadIframe=function q(ae,aa){var ab=$bb("iframe#boo-frame-"+aa)[0],Z=(ab.contentDocument)?ab.contentDocument:ab.contentWindow.document,ac=(!$bb.browser.msie)?250:750,ae=(!$bb.browser.msie)?ae:ae.replace("dfr",'defer="true"'),af=["<html><head>\n",'<script type="text/javascript">\n',"var bb_adIndex = "+aa+";\n","if (window.addEventListener) \n","{\n","	_booAddEventListener = window.addEventListener;\n","	window.addEventListener = function() \n","	{\n","		if (arguments[0] == 'load') { arguments[1](); }\n","		else { _booAddEventListener(arguments[0], arguments[1], arguments[2]); }\n","	};\n","} \n","else if (window.attachEvent) \n","{","	_booAttachEvent = window.attachEvent;\n","	window.attachEvent = function(e, f) \n","	{\n","		if (arguments[0] == 'onload') { arguments[1](); }\n","		else { _booAttachEvent(arguments[0], arguments[1]); }\n","	};\n","}\n","<\/script>\n",'<style type="text/css">html,body{margin:0;padding:0}</style>\n',"</head><body>",ae,"</body></html>"];Z.write(af.join(""));setTimeout(function(){Z.close()},ac)};this.openAnyFormat=function L(ah,Z,aa){var ag=((Z!="imagezoom")?15:25)*1000;$bb("head").append('<link type="text/css" rel="stylesheet" href="'+Y._static+"stylesheets/engine/"+Z+'.css" />');$bb("body").attr("status","loading");clearTimeout(k.loadingTimeout);k.loadingTimeout=setTimeout(function(){if($bb("body").attr("status")!="loaded"){$bb("body").attr("status","timeout");window.location.href=ah}},ag);$bb("object").each(function(){if(!$bb.browser.msie&&$bb("embed",this).length){var ak=$bb(this).clone(),aj=$bb("param[name=wmode]",ak);if(!aj.length){ak.prepend('<param name="wmode" value="transparent">')}else{aj.attr("value","transparent")}if(aj.val()!="transparent"||!aj.length){$bb("embed",ak).attr("wmode","transparent");$bb(this).before(ak).remove()}}});var ai=function ai(){ac("bb_"+Z,ah)};var ac=function ac(am){var ak=[];for(var al=1,aj=arguments.length;al<aj;al++){ak.push(arguments[al])}return(this[am].apply(this,ak))};A(Y._static+"javascripts/engine/"+Z+".js",function(){ai()});if(aa){if(typeof aa=="string"){aa=[aa]}var af=[];for(var ae=0,ab=aa.length;ae<ab;ae++){af[ae]=new Image();af[ae].src=aa[ae]}}return false}}}BooManager.init();
