﻿function MontaFlash(baseURL) { var flhVideo = new SWFObject("../../swf/home/conceitual.swf", "flashDestaques", "556", "275", "9"); flhVideo.addParam("wmode", "transparent"); flhVideo.addParam("menu", "false"); flhVideo.addVariable("baseURL", baseURL); flhVideo.addVariable("xmlURL", "/swf/home/destaques.xml"); flhVideo.write("flashConceitual") } $(document).ready(function() { $('.boxSimulacaoCont li').css('visibility', 'visible'); $(".boxSimulacaoCont").jCarouselLite({ btnNext: ".btnNext", btnPrev: ".btnPrev", visible: 1, circular: false }); $('.combo select').combobox({ comboboxContainerClass: "comboboxContainer", comboboxValueContainerClass: "comboboxValueContainer", comboboxValueContentClass: "comboboxValueContent", comboboxDropDownClass: "comboboxDropDownContainer", comboboxDropDownButtonClass: "comboboxDropDownButton", comboboxDropDownItemClass: "comboboxItem", comboboxDropDownItemHoverClass: "comboboxItemHover", comboboxDropDownGroupItemHeaderClass: "comboboxGroupItemHeader", comboboxDropDownGroupItemContainerClass: "comboboxGroupItemContainer", animationType: "fadeIn", width: "210px" }); $('#modLogin').jqm(); $('.s2 a').click(function() { $('#modLogin').jqmShow() }); $('#boxBusca input').focus(function() { if ($(this).val() == 'O que você Procura') $(this).val('') }).blur(function() { if ($(this).val() == '' || $(this).val() == ' ') $(this).val('O que você Procura') }); $('.comboboxDropDownContainer li').click(function() { var gVarSelectValue = $(this).parent().prev().prev().val(); if (gVarSelectValue != 0) { window.location = gVarSelectValue } }); setTimeout(function() { $('#flashConceitual div').css("color", "#333"); $('#flashConceitual div a').css("color", "#666") }, 1000) }); function showFinasaClique() { $('#acessoRapidoDrop').show() }; function hideFinasaClique() { $('#acessoRapidoDrop').hide() }; function showAjuda() { $('#ajudaLogin').show() }; function hideAjuda() { $('#ajudaLogin').hide() }; function mascara(o, f) { v_obj = o; v_fun = f; setTimeout("execmascara()", 1) }; function execmascara() { v_obj.value = v_fun(v_obj.value) }; function soNumeros(v) { v = v.replace(/\D/g, ""); return v }; function cep(v) { v = v.replace(/\D/g, ""); v = v.replace(/(\d{5})(\d)/, "$1-$2"); return v }; function telefone(v) { v = v.replace(/\D/g, ""); v = v.replace(/^(\d\d)(\d)/g, "($1) $2"); v = v.replace(/(\d{4})(\d)/, "$1-$2"); return v }; function data(v) { v = v.replace(/\D/g, ""); v = v.replace(/(\d{2})(\d)/, "$1/$2"); v = v.replace(/(\d{2})(\d)/, "$1/$2"); return v }; function cpf(v) { v = v.replace(/\D/g, ""); v = v.replace(/(\d{3})(\d)/, "$1.$2"); v = v.replace(/(\d{3})(\d)/, "$1.$2"); v = v.replace(/(\d{3})(\d{1,2})$/, "$1-$2"); return v }; function cnpj(v) { v = v.replace(/\D/g, ""); v = v.replace(/(\d{2})(\d)/, "$1.$2"); v = v.replace(/(\d{3})(\d)/, "$1.$2"); v = v.replace(/(\d{3})(\d)/, "$1/$2"); v = v.replace(/(\d{4})(\d{1,2})$/, "$1-$2"); return v }; function identFrames() { var nomesf = new Array(); nomesf[0] = "barra"; nomesf[1] = "conteudo"; nomesf[2] = "barraBottom"; var nframes = 3; var endsite = "http://www.finasa.com.br"; try { if (parent.frames.length > 0) { if (parent.frames.length != nframes) { } for (x = 0; x < parent.frames.length; x++) { if (nomesf[x] != parent.frames[x].name) {  } } } } catch (e) { var detect = navigator.userAgent.toLowerCase(); if (detect.indexOf('mac') < 1) { } } }; identFrames();