// Somente para pána principal. Depende jquery
$(document).ready(function(){$("div #chatVivver").length&&$("div #chatVivver").css("text-align","center"),$("#edt_login").length&&$("#edt_login").val()==""?$("#edt_login").focus():$("#edt_senha").length&&$("#edt_senha").val()==""&&$("#edt_senha").focus();var a=window.location.pathname;a="#nav_"+a.replace("/",""),a=="#nav_"&&(a="#nav_home_page"),$("#menu").children("ul").children().removeClass("active"),$("#menu").children("ul").children(a).addClass("active"),$("#map").length&&$("#map").css({width:"800px",height:"500px",background:"silver"}),$(function(){swapValues=[],$(".swap_value").each(function(a){swapValues[a]=$(this).val(),$(this).focus(function(){$(this).val()==swapValues[a]&&$(this).val("")}).blur(function(){$.trim($(this).val())==""&&$(this).val(swapValues[a])})})}),$(".ui-widget").delay(1e3).fadeOut(2e3,function(){$(this).remove()}),window.location.pathname=="/contato"&&$("#map").gMap({markers:[{latitude:"-19.872266",longitude:"-43.978270",icon:{image:"/assets/vivver-icon.ico",iconsize:[24,24],iconanchor:[12,46],infowindowanchor:[12,0]},html:"<img src='http://www.vivver.com.br/vivver-logo-www.png'/><br /><strong>Venha conhecer a Vivver!</strong><br />Rua Joubert Guerra,  32 - São Luiz<br />Belo Horizonte - MG - 31.310-230<br />Contato: +55 (31) 3025-3550 - contato@vivver.com.br",popup:!0}],maptype:G_SATELLITE_MAP,zoom:20})})
