58
| <![CDATA[<script type="text/javascript">
jQuery.noConflict();
function setMask(){
jQuery('.telefone').focusout(function() {
var phone, element;
element = jQuery(this);
element.unmask();
phone = element.val().replace(/\D/g, '');
if (phone.length > 10) {
element.mask("(99) 99999-999?9");
} else {
element.mask("(99) 9999-9999?9");
}
}).trigger('focusout');
jQuery(".cpf").mask("999.999.999-99");
jQuery(".cnpj").mask("99.999.999/9999-99");
jQuery(".cep").mask("99999-999");
jQuery(".data").mask("99/99/9999");
jQuery(".ano").mask("9999");
jQuery(".hora").mask("99:99");
}
jQuery(setMask);
jQuery(document).ready(function(){
var largura_tela = jQuery(window).width();
if(largura_tela < 1960) {
valor_left = (1960 - largura_tela) / 2;
valor_left = "-"+valor_left+"px";
} else {
valor_left = (largura_tela - 1960) / 2;
valor_left = valor_left+"px";
}
jQuery('#bannerMain').css("left", valor_left);
});
jQuery(window).on("resize", function(){
largura_tela = jQuery(window).width();
if(largura_tela < 1960) {
valor_left = (1960 - largura_tela) / 2;
valor_left = "-"+valor_left+"px";
} else {
valor_left = (largura_tela - 1960) / 2;
valor_left = valor_left+"px";
}
jQuery('#bannerMain').css("left", valor_left);
});
jQuery(function() {
jQuery('#slide_news').cycle({
fx: 'fade',
timeout: 6000,
speed: 500,
next: '.snext',
prev: '.sprev'
});
jQuery('#slide_noticia').cycle({
fx: 'fade',
timeout: 6000,
speed: 500,
pager: '.numbers'
});
jQuery("#slider_obras").tinycarousel({interval: true, axis:'x'});
});
ddsmoothmenu.init({
mainmenuid: "nav", //menu DIV id
orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
classname: 'ddsmoothmenu', //class added to menu's outer DIV
contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
});
var RecaptchaOptions = {
theme : 'clean'
};
</script>]]>
|