$(window).bind('load', function(){
	$('#content .slideshow').cycle({
		speed:   1200,
		timeout: 4000
	});

	$('#screenshot').cycle({
		speed:   1600,
		timeout: 8000
	});

	var minHeight=$('#projectcycle img').innerHeight();

	minHeight=minHeight+16;

	if(minHeight==16){
		minHeight='auto';
	}else{
		minHeight=minHeight+'px';
	}

	$('#projectcycle')
		.css('height',minHeight)
		.after('<div id="projectcyclenav">')
		.cycle({
			speed:   600,
			timeout: 0,
			pager: '#projectcyclenav'
	});
});
