jQuery(function( $ ){
	/* 
		Turns all links to scoll links.  
		Links must be children of a node found by "LINK_CONTAINER" (set below)
		Scrolling panes must be children of a node found by "SCROLL_PANE" (set below) 
	
		This function runs on window load
	*/
	
	
	
	
	LINK_CONTAINER = ".scrollLinks";
	SCROLL_PANE = "#scrollPaneBorder";
	SCROLL_TIME = 1200; // in Miliseconds (1 second = 1000)
	
	
	
	
	/* #### DO NOT MODIFY PAST THIS POINT #### */
	
	var $paneTarget = $(SCROLL_PANE);
	$.scrollTo.defaults.axis = 'xy'; 
	
	
	$(LINK_CONTAINER + ' a').click(function(e) {
		target = $paneTarget.find($(this).attr('href'));
		//alert(target.html());
		$paneTarget.scrollTo(target, SCROLL_TIME, {offset: -20, easing: 'easeInOutQuad'});
		return false;
	});
	
});
