Current File : /home/aventura/public_html/js/script.min.js
function include(e){document.write('<script src="'+e+'" type="text/javascript" ></script>')}function hideLoading(){$("body").css({overflow:"auto"});$("#loader").fadeOut(500)}function contactFormInit(){function t(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#ffffff"},800,"easeOutBack")}else{$(this).stop().css({backgroundColor:"#ffffff"})}Cufon.replace($(this),{fontFamily:"Bebas Neue",color:"#8b2786"})}function n(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#ff599f"},800,"easeOutBack")}else{$(this).stop().css({backgroundColor:"#ff599f"})}Cufon.replace($(this),{fontFamily:"Bebas Neue",color:"#ffffff"})}var e=navigator.userAgent.toLowerCase();$("#form1").forms({ownerEmail:"#"});$(".btns > a").hover(t,n)}function sphereButtonsAddEvent(e){function n(){$(this).find("div").css({position:"relative"}).stop().animate({top:"-40px"},400,"easeOutBack");if($(this).index()==3){if(t.indexOf("msie")==-1){$("#sphere_2_shadow").stop().animate({scale:.8},400,"easeOutBack")}}}function r(){$(this).find("div").css({position:"relative"}).stop().animate({top:"0px"},1200,"easeOutElastic");if($(this).index()==3){if(t.indexOf("msie")==-1){$("#sphere_2_shadow").stop().animate({scale:1},1200,"easeOutElastic")}}}var t=navigator.userAgent.toLowerCase();e.hover(n,r)}function moreButtonsAddEvent(){function t(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#ffffff"},800,"easeOutBack")}else{$(this).stop().css({backgroundColor:"#ffffff"})}Cufon.replace($(this),{fontFamily:"Bebas Neue",color:"#8b2786"})}function n(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#8B2786"},800,"easeOutBack")}else{$(this).stop().css({backgroundColor:"#8B2786"})}Cufon.replace($(this),{fontFamily:"Bebas Neue",color:"#ffffff"})}function r(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#ff599f"},800,"easeOutBack")}else{$(this).stop().css({backgroundColor:"#ff599f"})}Cufon.replace($(this),{fontFamily:"Bebas Neue",color:"#ffffff"})}function i(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#ff599f"},800,"easeOutBack")}else{$(this).stop().css({backgroundColor:"#ff599f"})}}function s(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#8b2786"},800,"easeOutBack")}else{$(this).stop().css({backgroundColor:"#8b2786"})}}var e=navigator.userAgent.toLowerCase();$(".moreButton_Type1").hover(t,r);$(".moreButton_Type2").hover(t,n);$(".moreButton_Type3").hover(i,s)}function addScrollHandler(){function t(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#8b2786"},400,"easeInOutCubic")}else{$(this).css({backgroundColor:"#8b2786"})}}function n(){if(e.indexOf("msie")==-1){$(this).stop().animate({backgroundColor:"#ff599f"},200,"easeInOutCubic")}else{$(this).css({backgroundColor:"#ff599f"})}}var e=navigator.userAgent.toLowerCase();$(".scroll").cScroll({showTrack:false});$(".up").click(function(){$(".scroll").cScroll("up");return false});$(".down").click(function(){$(".scroll").cScroll("down");return false});$(".up").hover(t,n);$(".down").hover(t,n)}function resizeHandler(){$(window).backgroundScale({imageSelector:$("#backgroundImage"),centerAlign:true,containerPadding:0})}include("js/jquery.animate-colors-min.js");include("js/jquery.easing.js");include("js/jquery.transform-0.9.3.min.js");include("js/jquery.background.image.scale-0.1.js");include("js/gallery.js");include("js/jquery-ui-1.8.11.custom.min.js");include("js/jquery.mousewheel.js");include("js/cScroll.js");include("js/forms.js");include("js/cufon-yui.js");include("js/cufon-replace.js");include("js/Bebas_Neue_400.font.js");include("js/lobster.cufonfonts.js");include("js/jquery.fancybox-1.3.4.pack.js");include("js/ajax.min.js");include("js/menu.js");include("js/jquery.fb-album.js");include("js/jquery.lightbox-0.5.pack.js");include("js/jquery.nivo.slider.js");include("js/jquery.tzineClock.js");$(document).ready(function(){contactFormInit();moreButtonsAddEvent();addScrollHandler();sphereButtonsAddEvent($("#sphere_1"));sphereButtonsAddEvent($("#sphere_2"));sphereButtonsAddEvent($("#sphere_3"));$(window).load(function(){function e(){console.log("as");$(this).find(".over").stop().fadeTo(500,.5)}function t(){$(this).find(".over").stop().fadeTo(500,0)}$("body").animate({scrollTop:"0"},1);$(window).resize(resizeHandler);resizeHandler();setTimeout(menuInit,1e3);setTimeout(hideLoading,1400);$(".page1_image_1").hover(e,t);$(".over").fadeTo(0,0);$("#slider").nivoSlider({pauseOnHover:false,effect:"fade"});$(".page1_image_1 > a").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:300,speedOut:300})})})