//<![CDATA[
$(document).ready(function(){
	//showcase
	$('#content #showcase .display .SlideTab').tabSwitch('create', {type: 'slide', height: 270, width: 960});
	//$('#content #showcase .display .SlideTab').tabSwitch('moveStep' ,{step: parseInt($(this).attr('rel'))});
	$('#content #showcase .display .SlideTab').tabSwitch('moveTo',{index : $(this).attr('rel') });
	$('#content #showcase .display .SlideTab').tabSwitch('startAuto',{interval: 6000});
	var infoP = 'Para pausar, coloque o cursor sobre a imagem';
	var infoC = '[pausado]';	
	$('#content #showcase .close .info').html(infoP);
	$('#content #showcase .display .SlideTab').mouseover(function() {
		$('#content #showcase .display .SlideTab').tabSwitch('stopAuto',{interval: 6000});
		$('#content #showcase .close .info').html(infoC);
	});
	$('#content #showcase .display .SlideTab').mouseout(function() {														 
		$('#content #showcase .display .SlideTab').tabSwitch('startAuto',{interval: 6000});
		$('#content #showcase .close .info').html(infoP);
	});
	$("#content #showcase .control .nav").click(function(){
			$(".SlideTab").tabSwitch('moveStep',{step: parseInt($(this).attr('rel'))});
	});
	$("#content #showcase .control .goto").click(function(e){
			$(".SlideTab").tabSwitch('moveTo',{index : $(this).attr("rel") });
			//setTabIndex();
			e.preventDefault();
		});
});
//]]>
