function initPage(){formTela=document.formTela}var RecaptchaOptions={theme:"custom",lang:"pt_BR",custom_theme_widget:"recaptcha_widget"};$.noConflict(),jQuery(document).ready(function(e){function t(){var t=e("#wrap").height()-(e("#header").height()+e("#containerFooter").height());if(e("#containerContent").height()<t&&e("#containerContent").css("min-height",t),e.browser.msie&&"7.0"==e.browser.version){var i=e("#containerNavegacao").height(),a=e("#containerConteudoPrincipal").height();i>a&&e("#containerConteudoPrincipal .boxConteudo").css("min-height",i)}}e("[name=formTela]").find(".tit").parent("tr").next().attr("height","1px"),t(),e(window).resize(function(){t()});var i=e("ul.menu > li"),a=Math.round(i.length/2);if(beginUp=a+Math.round(i.length/4),a>5&&i.filter(":gt("+beginUp+")").addClass("up"),e("ul.menu > li.subMenu > ul").each(function(t){var i=!1;e(this).find("span").each(function(t){e(this).text().length>27&&(i=!0)}),1==i&&(e(this).find("span").each(function(t){e(this).parent("a").parent("li").hasClass("subMenu")?e(this).addClass("largo"):e(this).addClass("largoNot")}),e(this).find("a").addClass("largo"),e(this).find("li").addClass("largo"),e(this).addClass("largo"),e(this).find("ul").addClass("largo"),e(this).find("li").hasClass("largo")&&e(this).find("ul").addClass("largoLeft"))}),e.criaBotaoFade=function(){e("input.botaoFade").each(function(){var t=e(this),i="",a="";""!=t.attr("id")&&(i='id="'+t.attr("id")+'"',t.removeAttr("id"));for(var s=1;6>=s;s++)t.hasClass("t"+s)&&(a="t"+s,t.removeClass("t"+s));t.removeClass("botaoFade"),t.wrap("<span "+i+" class='botaoFade "+a+"'></span>"),t.after("<span class='botaoFade'></span>")})},e.criaBotaoFade(),e(".botaoFade input").hover(function(){e(this).siblings(".botaoFade").stop().animate({opacity:"0"},500)},function(){e(this).siblings(".botaoFade").stop().animate({opacity:"1"},500)}),e("select:not([name=cmbDominioCD], [name=cmbDominio])").selectbox(),e("#containerPublicidade select[name=cmbDominioCD]").attr("class","boxPublicidadeSelect"),e.browser.msie&&(e("#containerPublicidade select[name=cmbDominioCD]").live("blur",function(){e(this).attr("class","boxPublicidadeSelect")}),e("#containerPublicidade select[name=cmbDominioCD]").live("mousedown",function(){e(this).attr("class","")}),e("#containerPublicidade select[name=cmbDominioCD]").live("change",function(){e(this).attr("class","boxPublicidadeSelect")})),e("#containerPublicidade select[name=cmbDominio]").attr("class","boxPublicidadeSelect"),e.browser.msie&&(e("#containerPublicidade select[name=cmbDominio]").live("blur",function(){e(this).attr("class","boxPublicidadeSelect")}),e("#containerPublicidade select[name=cmbDominio]").live("mousedown",function(){e(this).attr("class","")}),e("#containerPublicidade select[name=cmbDominio]").live("change",function(){e(this).attr("class","boxPublicidadeSelect")})),0==e("div.boxPublicidade").length&&e("#content").removeClass("threeCol"),e("div#containerPublicidade div#boxPublicidadeTop").length>0){e("div#containerPublicidade").css("width","80px");var s=e("div#boxPublicidadeTop div.icoCaixaMensagem").children("a:first").attr("rel");s=parseInt(s),s>0&&e("div#boxPublicidadeTop div.icoCaixaMensagem").children("a:first").append("<div>"+s+"</div>")}disableSelect=function(e){if(e.parent("div.jquery-selectbox.jquery-custom-selectboxes-replaced").length>0&&1==e.attr("disabled")){var t="<div class='selectboxBlock'>&nbsp;</div>";e.attr("disabled","disabled"),e.closest("div.jquery-selectbox.jquery-custom-selectboxes-replaced").append(t),e.parent("div.jquery-selectbox.jquery-custom-selectboxes-replaced").find(".jquery-selectbox-currentItem").css("color","#ADADAD"),e.closest("div.jquery-selectbox.jquery-custom-selectboxes-replaced").find(".jquery-selectbox-currentItem").attr("disabled","disabled")}},disableDireto=function(e){if(e.parent("div.jquery-selectbox.jquery-custom-selectboxes-replaced").length>0){var t="<div class='selectboxBlock'>&nbsp;</div>";e.attr("disabled","disabled"),e.closest("div.jquery-selectbox.jquery-custom-selectboxes-replaced").append(t),e.closest("div.jquery-selectbox.jquery-custom-selectboxes-replaced").find(".jquery-selectbox-currentItem").css("color","#ADADAD"),e.closest("div.jquery-selectbox.jquery-custom-selectboxes-replaced").find(".jquery-selectbox-currentItem").attr("disabled","disabled")}},availableSelectBox=function(t){var i=e("[name="+t+"]");i.closest("div.jquery-selectbox.jquery-custom-selectboxes-replaced").unselectbox(),i.removeAttr("disabled"),i.selectbox()},e("select").each(function(t){disableSelect(e(this))}),e("p.erro, p.aviso, p.sucesso").each(function(t){var i=e(this);null!=i.children("span:first").html()&&i.children("span:first").html().length>0&&i.show()}),initPage(),getJqueryObj=function(t,i){var a="";return"name"==t?a=e("[name="+i+"]"):"id"==t&&(a=e("#"+i)),a},getThisObj=function(t){var i=e(t);return i},e(".jquery-selectbox.jquery-custom-selectboxes-replaced").live("click",function(){var t=e(this),i=parseInt(e(window).height()),a=t.offset(),s=a.top,o=parseInt(t.find(".jquery-selectbox-list.jquery-custom-selectboxes-replaced-list").height());o+15>i-s?t.find(".jquery-selectbox-list.jquery-custom-selectboxes-replaced-list").addClass("selectBoxTop"):t.find(".jquery-selectbox-list.jquery-custom-selectboxes-replaced-list").removeClass("selectBoxTop")})}),formTela=null;