/****************************************************
 * scrollTo functions for Auxiliary Design Co. 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(){

	/* Javascript Styling */
	
	$('body').css({ 'overflow':'hidden'});
	$('.pane').css({'float':'left'});
	$('.auxiliary-pane').css({'display':'block'});
	$('.row').css({'float':'left', 'width':'5000px'});
	
	
	/* Navigation Animations */
	
	$("ul#menu a#link1").click(function(event){
		$('#pane-container').stop().animate({'left':'0px', 'top':'0px'},scrollSpeed);
		event.preventDefault();
	});
	
	/* Home */
	$("a#link2").click(function(event){
		$('#pane-container').stop().animate({'left':'0px', 'top':'0px'},scrollSpeed);
		event.preventDefault();
	});
	
	/* About */
	$("a#link3").click(function(event){
		$('#pane-container').stop().animate({'left':'-3000px', 'top':'-1600px'},scrollSpeed);
		event.preventDefault();
	});
	
	/* Services */
	$("a#link4").click(function(event){
		$('#pane-container').stop().animate({'left':'-2000px', 'top':'0px'},scrollSpeed);
		event.preventDefault();
	});
	
	/* Portfolio */
	$("a#link5").click(function(event){
		$('#pane-container').stop().animate({'left':'-4000px', 'top':'-1600px'},scrollSpeed);
		event.preventDefault();
	});
	
	
					/* Website Designing */
			$("a#link6").click(function(event){
				$('#pane-container').stop().animate({'left':'-1000px', 'top':'0px'},scrollSpeed);
				event.preventDefault();
			});
			
					/* Graphics designing */
			$("a#link7").click(function(event){
				$('#pane-container').stop().animate({'left':'-3000px', 'top':'0px'},scrollSpeed);
				event.preventDefault();
			});
			
			
			
					/* Flash work */
			$("a#link8").click(function(event){
				$('#pane-container').stop().animate({'left':'0px', 'top':'-1600px'},scrollSpeed);
				event.preventDefault();
			});
			
					/* Corporate identity */
			$("a#link9").click(function(event){
				$('#pane-container').stop().animate({'left':'-4000px', 'top':'-800px'},scrollSpeed);
				event.preventDefault();
			});
			
					/* PSD to HTML */
			$("a#link10").click(function(event){
				$('#pane-container').stop().animate({'left':'-1000px', 'top':'-800px'},scrollSpeed);
				event.preventDefault();
			});
			
	/* Testimonial */
	$("a#link11").click(function(event){
		$('#pane-container').stop().animate({'left':'-3000px', 'top':'-800px'},scrollSpeed);
		event.preventDefault();
	});
	
	/* Hosting */
	$("a#link12").click(function(event){
		$('#pane-container').stop().animate({'left':'-4000px', 'top':'0px'},scrollSpeed);
		event.preventDefault();
	});
	
	/* Free Quoet */
	$("a#link13").click(function(event){
		$('#pane-container').stop().animate({'left':'-2000px', 'top':'-1600px'},scrollSpeed);
		event.preventDefault();
	});
	
	/* Contact */
	$("a#link14").click(function(event){
		$('#pane-container').stop().animate({'left':'0px', 'top':'-800px'},scrollSpeed);
		event.preventDefault();
	});
	
	
	/*Feedback */
	$("a#link15").click(function(event){
		$('#pane-container').stop().animate({'left':'-1000px', 'top':'-1600px'},scrollSpeed);
		event.preventDefault();
	});
	
	
	
	
	/********************************************
	 * This is a template for adding functions
	  
	 * replace the anchor's id
	 * set the location in 'px' of the top left corner
	 
	 $("a#identity").click(function(event){
		$('#pane-container').animate({'left':'0px', 'top':'0px'},scrollSpeed);
		event.preventDefault();
	});
	 });
	 
	 */
	
});
