(function($) { $(window).load(function(){ //setting //on off rollover,advance load var src_on = "_on.", src_off = "_off.", //to page,to top offset = 0, scroll_speed = "slow", //opacty rollover on_speed = 0, off_speed = "fast", transp = 0.7, //pngfix exclusion png_exc = "exc"; //hover $(".hover").hover( function(){ $(this).stop(true, true).fadeTo(300,0.5); }, function(){ $(this).stop(true, true).fadeTo(300,1.0); }); //to page $("a.to_page").click(function(){ var href = $(this).attr("href"); href = href.split("#"); if($("#" + href[1]).size() > 0 || href[0] == ""){ var p = $("#" + href[1]).offset().top - offset; $("html,body").animate({ scrollTop:p },scroll_speed); return false; } }); //to top $("a.to_top").click(function(){ $("html,body").animate({ scrollTop:0 },scroll_speed); return false; }); $("#tab li").click(function() { var num = $("#tab li").index(this); $(".content_wrap").addClass('disnon'); $(".content_wrap").eq(num).removeClass('disnon'); $("#tab li").removeClass('tab_select'); $(this).addClass('tab_select') }); }); $(window).on('load resize', function(){ $('.tile01').matchHeight(); $('.tile02').matchHeight(); $('.tile03').matchHeight(); $('.tile04').matchHeight(); $('.att02').matchHeight(); }); })(jQuery);