<!--smooth scroll-->

$(function() {
	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var target = $(this.hash);
			target = target.length && target;
			if (target.length) {
				var sclpos = 0;
				var scldurat = 1200;
				var targetOffset = target.offset().top - sclpos;
				$('html,body')
					.animate({scrollTop: targetOffset}, {duration: scldurat, easing: "easeOutExpo"});
				return false;
			}
		}
	});
});



<!--garelly1-->

$(document).ready(function(){
	var totWidth=0;
	var positions = new Array();

	$('#slides .slide').each(function(i){
		positions[i]= totWidth;
		totWidth += $(this).width();

		if(!$(this).width())
		{
			alert("Please, fill in width & height for all your images!");
			return false;
		}
	});

	$('#slides').width(totWidth);
	$('#menu ul li a').click(function(e){
		$('li.menuItem').removeClass('act').addClass('inact');
		$(this).parent().addClass('act');

		var pos = $(this).parent().prevAll('.menuItem').length;

		$('#slides').stop().animate({marginLeft:-positions[pos]+'px'},650);

		e.preventDefault();
	});

	$('#menu ul li.menuItem:first').addClass('act').siblings().addClass('inact');
});


<!--garelly2-->

$(document).ready(function(){
	var totWidth=0;
	var positions = new Array();

	$('#slides2 .slide').each(function(i){
		positions[i]= totWidth;
		totWidth += $(this).width();

		if(!$(this).width())
		{
			alert("Please, fill in width & height for all your images!");
			return false;
		}
	});

	$('#slides2').width(totWidth);
	$('#menu2 ul li a').click(function(e){
		$('li.menuItem').removeClass('act').addClass('inact');
		$(this).parent().addClass('act');

		var pos = $(this).parent().prevAll('.menuItem').length;

		$('#slides2').stop().animate({marginLeft:-positions[pos]+'px'},650);

		e.preventDefault();
	});

	$('#menu2 ul li.menuItem:first').addClass('act').siblings().addClass('inact');
});


<!--mouseover-->
$(function(){  

     $('a img').hover(function(){  

        $(this).attr('src', $(this).attr('src').replace('_off', '_on'));  

          }, function(){  

             if (!$(this).hasClass('currentPage')) {  

             $(this).attr('src', $(this).attr('src').replace('_on', '_off'));  

        }  

   });  

}); 


