function getPosicaoElemento(e){var t=document.getElementById(e);var n=0;var r=0;while(t){n+=t.offsetLeft;r+=t.offsetTop;t=t.offsetParent}if(navigator.Agent.indexOf("Mac")!=-1&typeof document.body.leftMargin!="undefined"){n+=document.body.leftMargin;r+=document.body.topMargin}return{left:n,top:r}} $(document).ready(function() { $("#body a[target!='_blank']").click(function() { fadeIn('alvo', 1.0); }); $(".fancybox").click(function() { fadeOut('alvo', 1.0); }); $(".album").click(function() { fadeOut('alvo', 1.0); }); var nav = $('.viewsys_menu'); var nav2 = $('.viewsys_menu_2x');var navtop = getPosicaoElemento('viewsys_menu').top +80; $(window).scroll(function(){if($(this).scrollTop()>navtop){nav.addClass("f-nav");nav2.addClass("f-nav2")}else{nav.removeClass("f-nav");nav2.removeClass("f-nav2")}}) }); $.lazyLoadXT.onload = function() { var $el = $(this); $el .removeClass('lazy-hidden') .addClass('animated ' + $el.attr('data-effect')); }; $(function() { $(".lazy").recliner({ attrib: "data-src", // selector for attribute containing the media src throttle: 300, // millisecond interval at which to process events threshold: 100, // scroll distance from element before its loaded live: true // auto bind lazy loading to ajax loaded elements }); }); var menu_topo = document.getElementById("menu_topo"); var width = '1366';if (width < 800){menu_topo.className = "none_menu";} if(window.top!=window.self){var body=document.body,html=document.documentElement;var height=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);var pb=parent.document.getElementById("mobile-simu");var ed=parent.document.getElementById("ed");ed.innerHTML=' '+document.URL} 5o2x35