/*
* PCT Chemie
* slideshow.js
*
* Author: Holger M. Stangl
* Company: Limeflavour | http://www.limeflavour.com
* Date: April 2011
*/

jQuery(document).ready(function(){

	jQuery('#slideshow').each(function(){
					
		var scrollable = jQuery(".outer", this)
		.scrollable({ 
			easing: 'easeOutQuad',
			speed: 800,
			items:'.wrap',
			prev:'.prev',
			next:'.next',
			circular: true
		}).autoscroll({ interval: 4500 });
		var scrollableAPI = jQuery(".outer", this).scrollable({api: true});
		
	});
	
	jQuery('.item').hover(
		function(){ 
			jQuery(this).find('.morelink').stop().fadeTo(200, 1);
		},
		function(){ 
			jQuery(this).find('.morelink').stop().fadeTo(100, 0);
		}
	);
	
	jQuery('#slideshow .prev').hover(
		function(){ 
			jQuery(this).stop().animate({left:0},200);
		},
		function(){ 
			jQuery(this).stop().animate({left:'-10px'},200);
		}
	);
	
	jQuery('#slideshow .next').hover(
		function(){ 
			jQuery(this).stop().animate({right:0},200);
		},
		function(){ 
			jQuery(this).stop().animate({right:'-10px'},200);
		}
	);
	
});
