/*

- Chris Lattanzio
- http://www.chrislattanzio.com/
- designed by Switch Creative Group
- http://www.groupswitch.com

*/

	
	/* ! ---- Fullscreenr ---- */
	var FullscreenrOptions = {  width: 1024, height: 768, bgID: '#bgimg' };
	jQuery.fn.fullscreenr(FullscreenrOptions);
	
	
	$(document).ready(function(){
		
			
		/* ! ---- Home Page Animations ---- */
		/* ---------------------------------------------------- */
		var img_array = new Array('_img/home_background_1.jpg',
															'_img/home_background_2.jpg',
															'_img/home_background_3.jpg',
															'_img/home_background_4.jpg',
															'_img/home_background_5.jpg',
															'_img/home_background_6.jpg'
															);
		
		var col_array = new Array('#ccc',
															'#b2fbcc',
															'#e6ed6b',
															'#fda520',
															'#e32d40',
															'#cd12cb'
															);
		
		var png_array = new Array('url(_img/home_background_raster_1.png)',
															'url(_img/home_background_raster_2.png)',
															'url(_img/home_background_raster_3.png)',
															'url(_img/home_background_raster_4.png)',
															'url(_img/home_background_raster_5.png)',
															'url(_img/home_background_raster_6.png)'
															);
		
		$('#bgimg').hide().fadeIn('slow');
		
		$('#hn_list li').hover(
		
			function(){
				
				$('#bgimg').hide();
				var index = $(this).index();
				if(index == 0) {
					$('#hn_list a').removeClass('white');
				} else {
					$('#hn_list a').addClass('white');
				}
				$('body').css('background-color', col_array[index]);
				$('#realBody').css('background', png_array[index]);
				$('#bgimg').attr('src', img_array[index]).fadeIn('slow');
		
			},
			function(){
			}
		);
		
		
	
	});
