			$(document).ready(function(){
				// preload images
				$.preloadImages("images/fade.png","images/home1.jpg","images/home2.jpg","images/home3.jpg","images/home4.jpg");
				// fade background images on timer
				$("#home #hook").everyTime(5000,function(i) {
					$(this).css( {backgroundPosition: "0 0"} )
					$(this).stop().animate({backgroundPosition: "-2500px 0"}, {duration:500, complete:function(){
						$("#home #wrapper").css({ backgroundImage : "url(images/home" + eval(((i+3) % 4) + 1) + ".jpg)" });
						$(this).animate({backgroundPosition: "0 0"}, 200);
					}})
				});
			});