$(document).ready(function (){
		
	/* ----------------------------------------------------
	 * remove image of guy on car so all available space is 
	 * clickable on an 800 x 600 screen resolution.
	 * ----------------------------------------------------*/
		
		// check on page load to see if the page is smaller than 1000px
		var pageWidth = $(window).width();
		if (pageWidth < 1000) {
			$('.guy').fadeOut('slow');
		} else {
			$('.guy').fadeIn('slow');
		}
		
		// animate hiding the guy image when resizing
		$(window).resize(function(e) {
			var pageWidth = $(window).width();
			if (pageWidth < 1000) {
				$('.guy').fadeOut('slow');
			}
			else {
				$('.guy').fadeIn('slow');
			}
		});
		
	/* ----------------
	 * image cycle call
	 * ---------------- */
		
		// if image-left exists were on the index page, run this code
		if ($('.imgTop-left').length) {
			$('.imgTop-left').cycle({fx:'fade',timeout:9500,random:1,delay:-4000});
    		$('.imgTop-center').cycle({fx:'fade',timeout:7200,random:1,delay:-5000});
    		$('.imgTop-right').cycle({fx:'fade',timeout:8500,random:1,delay:-4000});
		}
		
		// if imageContainer exists we're on the film-details page, run this code
		if ($('#imageContainer').length) {
			$('#imageContainer').cycle({fx:'fade',timeout:9500,random:1,delay:-4000});
		}
		
}); 
	

