/* 
 * Author: nick@thinkstorm.co.uk
*/


/*
 * Give images an inward shadow.
*/
$(function() {
 $('.image-container').each(function(i) {
		var imgHeight = $(this).find("img").height();
		var imgWidth = $(this).find("img").width();
	  $(this).prepend("<div class='shadow-edge' style='width:" + imgWidth + "px; height:" + imgHeight + "px'></div>");
 });	
});


/*
 * Create cycleplugin slideshow
 * http://jquery.malsup.com/cycle/
*/

$(function() {
	$('.slides') 
	.after('<div id="slideshow-controls"><a href="#" id="prev">prev</a><span id="slide-nav"></span><a href="#" id="next">next</a></div>')
	.cycle({ 
	    timeout: 5000, 
	    pager:  '#slide-nav',
	    next:   '#next',
	    prev:   '#prev'
	});  
});
