/****************************************************
 * scrollTo functions for Ormny.com website
 *
 * The following functions specify what links scroll to what panes. 
 */

var scrollSpeed=1600; // change this value to adjust scroll speed (duration of change in ms)

$(document).ready(function(){
	$("ul#menu a#link1").click(function(event){
		$(document).scrollTo("#pane1",scrollSpeed);
		event.preventDefault();
	});
	
	$("a#link2").click(function(event){
		$(document).scrollTo("#pane2",scrollSpeed);
		event.preventDefault();
	});
	
	$("a#link3").click(function(event){
		$(document).scrollTo("#pane3",scrollSpeed);
		event.preventDefault();
	});
	
	$("a#link4").click(function(event){
		$(document).scrollTo("#pane4",scrollSpeed);
		event.preventDefault();
	});
	
	$("a#link5").click(function(event){
		$(document).scrollTo("#pane5",scrollSpeed);
		event.preventDefault();
	});
	
	$("a#link6").click(function(event){
		$(document).scrollTo("#pane6",scrollSpeed);
		event.preventDefault();
	});
	
	$("a#link7").click(function(event){
		$(document).scrollTo("#pane7",scrollSpeed);
		event.preventDefault();
	});
	
	$("a#link8").click(function(event){
		$(document).scrollTo("#pane8",scrollSpeed);
		event.preventDefault();
	});
	
	$("a#bug").click(function(event){
		$(document).scrollTo("#pane1",scrollSpeed);
		event.preventDefault();
	});
	
	/********************************************
	 * This is a template for adding functions
	 
	 * replace (link id) with the id of the link
	 * replace (pane id) with the id of the destination
	 
	 $("a#(link id)").click(function(event){
	 	$(document).scrollTo("#(pane id)",scrollSpeed);
	 	event.preventDefault();
	 });
	 
	 */
	
});