$(document).ready(function(){

	// contact page fade in map 
	$('.google_map').fadeIn(4000);

	//Set css in Firefox (Required to use the backgroundPosition js)
	$('#home-slider').css({backgroundPosition: '0px 0px'});
	
	$('a.right-arrow').click(function(){
		console.log('right click');
		return false;
	});
	
	$('a.left-arrow').click(function(){
		console.log('left click');
		return false;
	});
	
	// faded video boxes	
	$('a.video').animate({
				"opacity" : 0.5
	});
	
	// fade in the home page slider
	$('#list').fadeIn(1000);
	
	//two hover over funcitons, one for hover over and one for hover off (returns to original state here)
	//Stop() function is used in here to stop anything that this item is doing and tells it to animate opacity...
	
	$('a.video').hover(function (){
			$(this).stop().animate({"opacity" : 1 },300);
	}, function(){
			$(this).stop().animate({"opacity" : 0.5 },300);
	});
	
	// add last child with ie6 & ie7 
	$("#menu-main-nav li:last-child").addClass('ie7last-child');

});

