// JavaScript Document

jQuery.fn.vertiscroll = function(scrollpoint) {
	
	var item_height = 325;
	
	switch (scrollpoint) {
		
		case 'next' :
	   		$("#slider").animate({"top":"-=" + item_height}, 500);
			break;
		
		case 'prev' :
	   		$("#slider").animate({"top":"+=" + item_height}, 500);
			break;
		
		default :
			var new_top = -$("#" + scrollpoint.substring(5)).attr("offsetTop");
			$("#slider").animate({"top":new_top}, 500);
			break;
	}
   
};