document.documentElement.className="js";$(function(){if(Page.is("/atendimento/")){Page.lock("#conteudo form")}if(jQuery.isFunction($.fn.colorbox)){$(".galeria a").colorbox({photo:true,opacity:0.8,close:"Fechar",previous:"Anterior",next:"Próxima",current:"{current} / {total}"})}$("a.externo").click(Popup.event);Geral.rolarAteMensagemDeErro();});var Geral={rolarAteMensagemDeErro:function(){if($(".mensagem-atencao").length>0){$("html").animate({scrollTop:$(".mensagem-atencao:first").offset().top-10})}}};function isAlien(a){return isObject(a)&&typeof a.constructor!="function"}function isArray(a){return isObject(a)&&a.constructor==Array}function isBoolean(a){return typeof a=="boolean"}function isFunction(a){return typeof a=="function"}function isNull(a){return typeof a=="object"&&!a}function isNumber(a){return typeof a=="number"&&isFinite(a)}function isObject(a){return(a&&typeof a=="object")||isFunction(a)}function isRegexp(a){return a&&a.constructor==RegExp}function isString(a){return typeof a=="string"}function isUndefined(a){return typeof a=="undefined"}function isEmpty(f){var d,e;if(isObject(f)){for(d in f){e=f[d];if(isUndefined(e)&&isFunction(e)){return false}}}return true}if(isUndefined(Array.indexOf)){Array.prototype.indexOf=function(i,h,g){var f,j;h=h||0;for(f=h;f<this.length;f++){j=this[f];if(g?j===i:isRegexp(i)?i.test(j):isFunction(i)?i(j):j==i){return f}}return -1}}var Popup={_POPUP_FEATURES:"",raw:function(f,g,e){e=e||Popup._POPUP_FEATURES;g=g||"_blank";var h=window.open(f,g,e);h.focus();return h},link:function(c,d){return Popup.raw(c.getAttribute("href"),c.getAttribute("rel")||"_blank",d)},event:function(b){Popup.link(b.currentTarget);return false},eventFeatures:function(b){return function(a){Popup.link(a.currentTarget,b);return false}},close:function(){window.close();return false}},Page={current:window.location.href.toLowerCase(),locked:false,getCurrent:function(d){var c;d=d||Page.current;c=d.replace("http://"+window.location.host,"");c=(c.indexOf(".asp")!=-1)?c.substring(0,c.indexOf(".asp")+4):(c.indexOf("?")!=-1)?c.substring(0,c.lastIndexOf("?")):(c.indexOf("#")!=-1)?c.substring(0,c.lastIndexOf("#")):c;return c},is:function(){return $(Page.is.arguments).filter(function(){return(Page.getCurrent().substring(Page.getCurrent().length-this.length)==this)}).length>0},contains:function(c){var d=new RegExp(c);return d.test(Page.current)},lock:function(d,c){c=c||"O formul�rio j� est� sendo processado. Por favor, aguarde alguns instantes.";$(d).submit(function(){if(Page.locked){alert(c);return false}Page.locked=true;return true})},unlock:function(){Page.locked=false;return true}};
