$(document).ready( 
	function(){ 
		//Messages on homepage
 		$('#banner')
		.after('<div id="pagernav">')
		.cycle({
 			fx: 'fade',
 			speed: 1000,
 			timeout: 8000,
 			containerheight: '250px',
			pager: '#pagernav'
 		});
		//testimonials on homepage
 		$('#testimonials_home').innerfade({
 			animationtype: 'fade',
 			speed: 1500,
 			timeout: 11000,
 			type: 'random',
 			containerheight: '180px'
 		});	

		//testimonials on secondary pages 
 		$('#testimonials').innerfade({
 			animationtype: 'fade',
 			speed: 1500,
 			timeout: 11000,
 			type: 'random',
 			containerheight: '180px'
 		});	
		//testimonials on compliance page 
 		$('#testimonials_compliance').innerfade({
 			animationtype: 'fade',
 			speed: 1500,
 			timeout: 11000,
 			type: 'sequence',
 			containerheight: '420px'
 		});	
		//blue box on all pages 
 		$('#bluebox').innerfade({
 			animationtype: 'fade',
 			speed: 1000,
 			timeout: 8000,
 			type: 'sequence',
 			containerheight: '100px'
 		});	
		//Dropdown menu script for IE6
 		$("ul.dropdown li").hover(function(){
 		  $(this).addClass("hover");
 		  $('> .dir',this).addClass("open");
 		  $('ul:first',this).css('visibility', 'visible');
 		},function(){
 		  $(this).removeClass("hover");
 		  $('.open',this).removeClass("open");
 		  $('ul:first',this).css('visibility', 'hidden');
 		});	
		//for orange click boxes on landing pages
		 $('.ads').cycle({
			fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
			prev:   '#prev', 
		    next:   '#next',
			speed: 1500,
 			timeout: 5500,
			after: function() {
	        $('#caption').html($(this).children('img').attr('alt'));
		   }
		});
		 $('#s4') 
			.before('<div id="pagernav">') 
			.cycle({ 
				fx:     'turnDown', 
				speed: 1000,
 				timeout: 8000,
				pager:  '#pagernav' 
			});
		$('a[rel*=facebox]').facebox()
		
 } );

