Galleria.loadTheme("/static/js/libs/fullscreen/galleria.fullscreen.min.js");$(document).ready(function(){var i,j,a,f,e,k,g,h,d,c,b,l;$("a.mail").each(function(){var m;m=this.rel.replace("/google","@visuals");this.href="mailto:"+m;$(this).text(m);return $(this).attr("rel",m)});k=function(){var m;m=$(window).height()-30;return $(".full-window-part").css("height",m)};$(window).resize(k);k();d=null;$("#navi a").click(function(){$("#navi a").removeClass("active");$(this).addClass("active");$("html,body").animate({scrollTop:$($(this).attr("href")).offset().top},{duration:"slow",easing:"swing"});return d=$(this).attr("href")});$(".visuals-list li").each(function(){return $(this).html("<strong>></strong>"+$(this).text())});if($("#part-home").length!==0){b=function(){if($("#navi a[href$=#part-home-gallery].active").length!==0){return $("#part-home").toggleClass("part-home-flash")}};setInterval(b,100)}else{if($("#part-home-gallery").length!==0){l=8;h=3000;i=0;a=1280;g=function(){if($("#navi a[href$=#part-home-gallery].active").length!==0){i+=1;if(i===l){i=0}return $("#part-home-gallery").animate({"background-position":-i*a},h)}};setInterval(g,h+4000)}}$(document).scroll(function(){var o,n,m;m=$(window).scrollTop();o=m+$(window).height();n=$(window).height();return $(".full-window-part").each(function(){var q,p;p=$(this).offset().top+n/2;q=(m<=p)&&(o>=p);if(q){if("#"+$(this).attr("id")!==d){d="#"+$(this).attr("id");$("#navi a").removeClass("active");return $('#navi a[href$="'+d+'"]').addClass("active")}}})});f="management-info-01-bg";$("#management a").click(function(){var m;m=$(this).attr("rel");$("#part-management .transbox-info span").hide();$("#"+m).show();$("#part-management").removeClass(f).addClass(m+"-bg");f=m+"-bg";return false});j=$("#gallery-events");if(j.length!==0){for(e=1;e<=35;e++){j.append("<img src='/static/img/events/"+e+"G-eventos-vi.jpg'>")}}$("#gallery-events").galleria();$("#logos-design-big-container").click(function(){return $(this).hide()});$("#logos-design-big").click(function(){return $("#logos-design-big-container").hide()});$(".logos-design a").click(function(){var m;m=$(this).attr("rel");$("#logos-design-big").css("background","url("+m+") no-repeat center");$("#logos-design-big-container").show();return false});c=function(){return $("#part-press").toggleClass("part-press-hover")};return $("#art-press").hover(c,c)});
