/**
 * JQuery code for the Heaney Watson website
 * @file: /js/jq.js
 */

// Only do this once the document is fully loaded and the DOM is ready
	$(document).ready(function()
	{
		$('ul#slideshow').innerfade
		({
			speed: 1000,
			timeout: 5000,
			type: 'sequence',
			containerheight: '220px'
		});
		
		$.swapImage(".swapImage");	
		
		// Fade in the content
			$('#content').fadeIn('slow');
			
		// Slide in all the images
			$('img').not('#slideshow li img').load(function()
			{
				$(this).slideDown('fast');
			});

			$('img').not('#slideshow li img').slideDown('fast');
			
			$('#slideshow li img').load(function()
			{
				$('#slideshow li img').fadeIn('slow');
			});
			
			$('#slideshow li img').fadeIn('slow');
			
		// Stretch the background
			/*$(document).bgStretcher({
				images: ['/bgimages/0.jpg', '/bgimages/1.jpg', '/bgimages/2.jpg', '/bgimages/3.jpg', '/bgimages/4.jpg', '/bgimages/5.jpg', '/bgimages/6.jpg'],
				//images: ['bgimages/0.jpg'],
				imageWidth: 960,
				imageHeight: 700
			});*/

	});

