$(document).ready(function() {

			$.featureList(
				$("#tabs li a"),
				$("#output li"), {
					start_item	:	1
				}
			);

			/*
			
			// Alternative

			 
			$('#tabs li a').featureList({
				output			:	'#output li',
				start_item		:	1
			});

			*/
			/*$('<img />').load(function() {
		  	   $('#bgOverlay')
			   .css({
				   width: $(window).width(),
				   height: $(window).height()
			   })
			   .fadeOut();
			   })
				.attr('src', '/templates/test/img/body-home-bg.jpg');
				*/

		});

$(window).load(function() {
			    var bgimages = [
			   '/templates/test/img/body-home-bg.jpg',
			   '/templates/test/img/body-home-2-bg.jpg',
			   '/templates/test/img/body-home-3-bg.jpg',
			   '/templates/test/img/body-home-4-bg.jpg' 
				];
				var bgImg = bgimages[Math.floor(Math.random() * bgimages.length)];
				
				$('<img />').load(function() {
				   $('#bgOverlay')
					   .css({
						   width: $(window).width(),
						   height: $(window).height()
					   })
					   .fadeOut();
				   $('body').css('background-image', 'url(' + bgImg + ')');
				})
				.attr('src', bgImg);
});