$(document).ready(function() {	
					 	
//=========================ACTIVATE DROP DOWN MENU HOVERS====================================//
	$("ul.topnav li").hover(function() { //On hover...
		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
		//Set a background image(thumbOver) on the <a> tag - Set position to bottom
		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});

		//Animate the image to 0 opacity (fade it out)
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		});
	} , function() { //on hover out...//Fade the image to full opacity 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});
	
 
//=========================ACTIVATE EQUAL HEIGHT COLS====================================//

		function equalHeight(group) {
		   tallest = 0;
		   group.each(function() {
			  thisHeight = $(this).height();
			  if(thisHeight > tallest) {
				 tallest = thisHeight;
			  }
		   });
		   group.height(tallest);
		}
 	//--call function--//
	 equalHeight($(".column"));

//=========================ACTIVATE SPECIAL CALLOUTS====================================//	
	$('.Rounded_Table_White_Font').box();
	$('.Rounded_Blue_Table').box();
	$('.Rounded_Grey_Table').boxGrey();
	$('.Rounded_Biege_Table').boxBeige();
	$('.callout1').wrap('<span class="callout1Wrap" />');
	$('.callout2').wrap('<span class="callout2Wrap" />');
	$('.callout3').wrap('<span class="callout3Wrap" />');
	
	
 

	
	 
	
	

});


//=========================ACTIVATE HOME PAGE SLIDER====================================//
$(window).load(function() {
	$('#slider').nivoSlider(
		{
		directionNav:true,
		directionNavHide:true, //Only show on hover
		controlNav:true, //1,2,3...
		effect:'fade',
		pauseTime:8000,
 pauseOnHover:true 
		
		}
	);
});
