

// smooth scroll
$(document).ready(function(){
    $('a[href^=#], area[href^=#]').click(function(){
        var target;
        target = $( $(this).attr('href') );
        if (target.length == 0) {
            return;
        }
        $('html, body').animate({scrollTop: target.offset().top},1000, 'easeOutExpo');
        return false;
    });
});







jQuery(document).ready(function($) {
	var postfix = '_on';
	$('.imgover').not('[src*="'+ postfix +'."]').each(function() {
		var src = $(this).attr('src');
		var src_on = src.substr(0, src.lastIndexOf('.'))
		           + postfix
		           + src.substring(src.lastIndexOf('.'));
		$(this).after('<img src="' + src_on + '" class="fade-on" />');

		$(this).parent()
		.css({'position' : 'relative'})
		.css({'display' : 'block'});

		$('.fade-on')
		.css({'display' : 'block'});

		$(this)
		.css({'display' : 'block'})
		.css({'position' : 'absolute'})
		.css({'top' : '0'});

		$(this).hover(
			function(){
				$(this).fadeTo(150,0);
			},
			function(){
				$(this).fadeTo(150,1);
			}
		);
	});
});




