var $aurora = jQuery.noConflict(); function aurora_mainmenu(){ $aurora(" #nav a").removeAttr("title"); // flickering bug fix $aurora(" #nav ul ").css({display: "none"}); // Opera Fix $aurora(" #nav li").hover(function(){ $aurora(this).find('ul:first').css({visibility: "visible",display: "none"}).slideDown(400); },function(){ $aurora(this).find('ul:first').css({visibility: "hidden"}); }); } function aurora_footer(){ $aurora(".footer_head").addClass("footer_slide_button") .append(''); $aurora("#footer_body").css({display: "none"}); $aurora(".footer_head a").bind ("click",function(){ $aurora("#footer_body").slideToggle('slow'); $aurora(".footer_head").toggleClass('slidebutton2'); return false; }); } function my_smothscroll(){ $aurora('a[href*=#]').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var $target = $aurora(this.hash); $target = $target.length && $target || $aurora('[name=' + this.hash.slice(1) +']'); if ($target.length) { var targetOffset = $target.offset().top; $aurora('html,body') .animate({scrollTop: targetOffset}, 700); return false; } } }); } $aurora(document).ready(function(){ aurora_mainmenu(); aurora_footer(); my_smothscroll(); });