/* Author: Derek Ahmedzai

*/

jQuery(document).ready(function(){
	// Slideshows
	// - with details
	if ($('.slideshow .slide').length > 1) {
		/*$('.slideshow-details .details').stop().delay(1000).animate({
			bottom:'-200px'
		}, 1000);*/
		
		// Is it the homepage?
		if ($('body.home').length) {
			$('.slideshow').cycle({
				delay:  0, 
				timeout: 5000,
				speed:  1000
			});
		}
		else {
			$('.slideshow').after('<div id="slideshowpager" class="slideshow-controls"></div>');
			$('#slideshowpager').show();
			$('.slideshow').cycle({
				delay:  0, 
				timeout: 5000,
				speed:  1000,
				pager:  '#slideshowpager'
			});
		}
	}
	
	// Slidy image captions
	if ($('.slideshow-details .details').length) {
		$('.slideshow-details').hover(function(){
			$('.slideshow-details .details').stop().animate({
				bottom:'0px'
			}, 500);
		}, function(){
			$('.slideshow-details .details').stop().delay(200).animate({
				bottom:'-100px'
			}, 500);
		});
	}
	
	
	
	// Equal heights
	
	
	
	// New windows
	
	
});






















