$jq		=	jQuery.noConflict();

function tt(base_url){
$jq(function(){

	$jq('#tt1, #tt2, #tt3, #tt4, #tt5, #tt6').Tooltip({
		track: true,
		delay: 0
	});
	
});
}


(function ($) {
	$(document).ready(function ( ) {
		var slide,
		    $container	=	$("#foto_home"),
		    $slides	=	$container.find("> a"),
		    current	=	0,
		    len		=	$slides.length,
		    duration	=	500,
		    timeout	=	6000;
		
		slide		=	function ( ) {
			var next	=	current + 1;
			
			if (next === len) {
				next		=	0;
			}
			
			$slides.filter(":eq(" + current + ")").fadeOut(duration);
			$slides.filter(":eq(" + next + ")").fadeIn(duration);
			
			current	=	next;
			
			setTimeout(slide, timeout);
		};
		
		$slides.filter(":not(:first)").hide();
		
		setTimeout(slide, timeout);
		
	});
}($jq));

