
jQuery(document).ready(function() {
	
	// smooth scrolling
	jQuery("a.scrollPage").click(function() {
		var elementClicked = jQuery(this).attr("href");
		var destination = jQuery(elementClicked).offset().top;
		jQuery("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination-20}, 1000 );
		return false;
	});
	
	jQuery('textarea#comment').autoResize({
    // On resize:
    onResize : function() {
        jQuery(this).css({opacity:0.8});
    },
    // After resize:
    animateCallback : function() {
        jQuery(this).css({opacity:1});
    },
    // Quite slow animation:
    animateDuration : 150,
    // More extra space:
    extraSpace : 20
		});
	
		// alternating rowcolors
		jQuery(".dataTable tr:even").addClass('even') 
		jQuery(".dataTable tr:odd").addClass('odd')
	
	
});
