function test() {
	jQuery('#test ul li').css({opacity: 0.0});
	jQuery('#test ul li:nth-child(1)').css({opacity: 1.0});
	setInterval('rotate_testimonials()',8000);
	
}

function rotate_testimonials() {	
	var current = (jQuery('#test ul li.show')?  jQuery('#test ul li.show') : jQuery('#test ul li:nth-child(2)'));
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? jQuery('div#test ul li:nth-child(2)') :current.next()) : jQuery('div#test ul li:nth-child(2)'));	
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
}

function gallery() {
	
	jQuery('#banner ul li').css({opacity: 0.0});
	jQuery('#banner ul li:first').css({opacity: 1.0});
	setInterval('rotate_galley()',4000);
	
}


/* Main Gallery */
function rotate_galley() {	
	var current = (jQuery('#banner ul li.show')?  jQuery('#banner ul li.show') : jQuery('#banner ul li:first'));
	var next = ((current.next().length) ? ((current.next().hasClass('show')) ? jQuery('div#banner ul li:first') :current.next()) : jQuery('div#banner ul li:first'));	
	next.css({opacity: 0.0})
	.addClass('show')
	.animate({opacity: 1.0}, 1000);
	current.animate({opacity: 0.0}, 1000)
	.removeClass('show');
}



