//ROTATING IMAGES
		function slideSwitch() {
			var $active = $('#slideshow IMG.active');
		
			if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
		
			var $next =  $active.next().length ? $active.next()
				: $('#slideshow IMG:first');
		
			$active.addClass('last-active');
		
			$next.css({opacity: 0.0})
				.addClass('active')
				.animate({opacity: 1.0}, 1000, function() {
					$active.removeClass('active last-active');
				});
		}
		
		$(function() {
			setInterval( "slideSwitch()", 6000 );
		});

//TESTIMONIALS FADER

//this.randomtip = function(){

//	var pause = 8000; // define the pause for each tip (in milliseconds) 
//	var length = $("#tips li").length; 
//	var temp = -1;		

//	this.getRan = function(){
		// get the random number
//		var ran = Math.floor(Math.random()*length) + 1;
//		return ran;
//	};
//	this.show = function(){
//		var ran = getRan();
		// to avoid repeating
//		while (ran == temp){
//			ran = getRan();
//		}; 
//		temp = ran;
//		$("#tips li").hide();	
//		$("#tips li:nth-child(" + ran + ")").fadeIn("slow");		
//	};
	
//	show(); setInterval(show,pause);
	
//};

//$(document).ready(function(){	
//	randomtip();
//});

