// Easing equation, borrowed from jQuery easing plugin
// http://gsgd.co.uk/sandbox/jquery/easing/
 jQuery.preloadImages = function(){
  //Loop through the images
  for(var i = 0; i<arguments.length; i++){
    jQuery("<img>").attr("src", arguments[i]);
  }
}
 
// Call the function:
$.preloadImages(
	"css/middle.png",
	"css/souvlakifundogeral.jpg",
	"css/back.gif",
	"css/forward.gif",	
	"css/VA.gif",
	"images/thumbs/2dsketches-t.jpg",
	"images/thumbs/killzone2-t.jpg",
	"images/thumbs/boxingmonkey1-t.jpg",
	"images/thumbs/metalslugt-t.jpg",
	"images/thumbs/bird-ht.jpg",
	"images/thumbs/runner-t.jpg",
	"images/thumbs/metalslugmarco-t.jpg",
	"images/thumbs/nobleman-t.jpg",
	"images/thumbs/batman-t.jpg",	
	"images/thumbs/bird-ht.jpg");


         $(document).ready(function(){
	$(".thumbs").fadeTo(200, 1);
	$(".thumbs").hover(function(){
		
		$(this).fadeTo(200, 0.8); 
	}
	,function(){
   		$(this).fadeTo(200, 1); 
	});
});
$(document).ready(function(){
	$(".prev").fadeTo(200, 0.3); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	$(".prev").hover(function(){		
		$(this).fadeTo(200, 1.0); // This should set the opacity to 100% on hover
	}
	,function(){
   		$(this).fadeTo(200, 0.3); // This should set the opacity back to 60% on mouseout
	});
});
$(document).ready(function(){
	
	$(".next").hover(function(){		
		$(this).fadeTo(200, 1.0); // This should set the opacity to 100% on hover
	}
	,function(){
   		$(this).fadeTo(200, 0.3); // This should set the opacity back to 60% on mouseout
	});
});

$(document).ready(function(){
	
	$(".about_container").hide();
 	$(".resume_container").hide();
	
	$(".contact").click(function(){
		$(".about_container").slideToggle("slow"); $(".resume_container").slideUp("slow");});
 	$(".resume").click(function(){
		$(".resume_container").slideToggle("slow"); $(".about_container").slideUp("slow");
	});
		$(".flat").click(function(){
		$(".gallery_container").toggle();
		
		
	});
});
$(document).ready(function(){
	
	$(".gallery_container").hide();
 		
	$(".thumbs").click(function(){
		
		var relid = this.id;
		
		$(".gallery_container[rel=" + relid + "]").toggle("slow");
		$(".gallery_container[rel!=" + relid + "]").hide();
	});});
	
				
$(document).ready(function(){
	$.localScroll(	{
	
	duration:0,
		});});

jQuery(function( $ ){
	

	$('#slideshow').serialScroll({
		items:'li',
		prev:'.prev',
		next:'.next',
		 //when scrolling to photo, stop 230 before reaching it (from the left)
		start:0, //as we are centering it, start at the 2nd
		duration:300,
		force:true,
		cycle:false,	
		step:1, // How many items to scroll each time ( 1 is the default, no need to specify )
		 //don't pull back once you reach the end
		
		 //click on the images to scroll to them
		
		
	});});
	

















