$(document).ready(function(){

	$('#gallery img').before('<div class="magnify"></div>');
	$('#gallery a[rel="group1"]').colorbox({transition:'elastic', speed:400});

	$('#testimonials')
	.css({visibility:'visible'})
	.cycle(
		{
		timeout:       12000,  // milliseconds between slide transitions (0 to disable auto advance) 
		speed:         1000,  // speed of the transition (any valid fx speed value) 
		next:          '#testimonials'  // id of element to use as click trigger for next slide 
		}
	);
	
	$('#faq .question').click(function(){
		$(this).next().slideToggle();
	});
	
	//setInterval(function() { $('.mainNavLink:eq(4)').glow('green', 700); }, 4000);
	$('.mainNavLink:eq(4)').not('.current')
		.css({background:"url('images/gleem2.gif') no-repeat 50% 50%"})
		.hover(
			function(){
				$(this).css({background:"#FFEDB9"});
			},
			function(){
				$(this).css({background:"url('images/gleem2.gif') no-repeat 50% 50%"});
			}
		);

	$('.container2 a img').hover(
		function(){
			$(this).css({background:"url('images/gleem.gif') no-repeat 50% 50%"});
		},
		function(){
			$(this).css({background:"none"});
		}
	);

}); //.ready()