/****************************************************/ /* Javascript developed on: 23-10-09 */ /* Developed by: Perry Gruber */ /****************************************************/ // In this javascript document you will find the sevaral javascript custom scripts to make the effects work */ // Also look in the help file for extensive help to edit these effects /*************************************/ /* jCarouselLite ON THE HOMEPAGE */ /*************************************/ $(function() { $("#mySlides").jCarouselLite({ btnNext: ".next", btnPrev: ".prev", speed: 500, auto: 8000, visible: 1 }); }); /*****************************/ /* ACTIVATE THE NAVIGATION */ /*****************************/ // initialise plugins jQuery(function(){ jQuery('ul#navigation').superfish(); }); /***********************************/ /* FOOTER GO TO THE TOP BUTTON */ /***********************************/ //Anonymous function that is applied to all internal-links var jump=function(e) { //prevent the "normal" behaviour which would be a "hard" jump e.preventDefault(); //Get the target var target = $(this).attr("href"); //perform animated scrolling $('html,body').animate( { //get top-position of target-element and set it as scroll target scrollTop: $(target).offset().top //scrolldelay: 2 seconds },1000,function() { //attach the hash (#jumptarget) to the pageurl location.hash = target; }); } $(document).ready(function() { $('a[href*=#]').bind("click", jump); return false; });