	$(document).ready(function() {

  		$('#nav ul li').has('ul').addClass('morenav');

		$('#nav ul:first ul:first').addClass('sub_menu');

		$('#nav ul:first li:last').addClass('last');

		$('#spotlights div a').hover(function(){

			$(this).parent().css({ opacity: 0.5 });

		}, function() {

			$(this).parent().css({ opacity: 1.0 });

		});
		
		$('.bar2').mosaic({

			animation	:	'slide'		//fade or slide

		});

		

		//To switch directions up/down and left/right just place a "-" in front of the top/left attribute

		//Caption Sliding (Partially Hidden to Visible)

		$('.boxgrid.caption').hover(function(){

			$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:500});

		}, function() {

			$(".cover", this).stop().animate({top:'263px'},{queue:false,duration:500});

		});

		

		$('#testimonials').cycle({

			fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...

			timeout:       10000,  // milliseconds between slide transitions (0 to disable auto advance)	

			pause:         true,   // true to enable "pause on hover" 

			cleartype:  false // disable cleartype corrections

		});

	});
