
	
$(document).ready(function() {
	
	/* TOOLTIP */
	/*var $j = jQuery.noConflict();
	$j(".tooltip_produto").tooltip({ effect: 'slide'});*/
	$(".link_produto").hover(function(evt) {
		  $(this).children('.tooltip').attr('style','position:absolute; bottom:120px; left:-130px; text-decoration:none;').fadeIn();
		}, function() {
	  $("div.tooltip").fadeOut('fast');
	});
	
	//SCRIPT AC
	Shadowbox.init();
	
	//Configurações do Menu
		$('#mainmenu li:last').css('border','none');
		$('#mainmenu li').children('ul').addClass();	
			
		/*$('#mainmenu li').hover(function(){
			$(this).children('ul').slideToggle();	
		});*/
		
		$('#mainmenu li').hover(function(){
			$(this).children('ul').toggle();	
		}); 

	//retira a borda do ultimo item do menu
	$('#menuRodape li:last').css('border','none');
	
	 /*Campo Senha form cadastro*/
	$("#ativar_senha").toggle(
	function(event) 
	{ 
		event.preventDefault();
		$("#senhas").show('slow');
		$('.senha').removeAttr("disabled"); 
	}, 
	function (event) 
	{ 
		event.preventDefault();	
		$('.senha').attr("disabled",true); 
		$("#senhas").hide('slow');
	});
	
			//Botões sexo e tamanhos
			$('.option_select').click(function()
			{
				var valor = $(this).text();
				$(this).siblings('#input_hidden').val(valor);
				$(this).addClass('desbotado');
				$(this).siblings('.option_select').removeClass('desbotado');
			});
			
	//end SCRIPT AC
		
	$('.slideshow').cycle(
	{
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 9000,
		pager: '#nav',
		pause: 1,
		pauseOnPagerHover: 1,
		//pagerAnchorBuilder: function(index, DOMelement){
			//	return '<a href="#"></a>'; // Para redefinir o PageLink sem a numeração, link vazio
		//}
	});
	$('.slideshow2').cycle(
	{
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		timeout: 9000,
		pager: '#nav2',
		pause: 1,
		pauseOnPagerHover: 1,
		//pagerAnchorBuilder: function(index, DOMelement){
			//	return '<a href="#"></a>';// Para redefinir o PageLink sem a numeração, link vazio
		//}
	});
	
	
	//Quando o mouse sobrepor
		$(".banner-box-imagem a").hover(function() {
			clearInterval(play); // Paraliza a rotação
		}, function() {
			rotateSwitch(); // Retoma a rotação
		});

		//Ação ao clicar na paginação
		$("#controle_vitrine a").click(function() {
			$active = $(this); // Torna o ítem clicado como ativo
			
			//Reset Timer
			clearInterval(play); // Paraliza a rotação
			rotate(); // Inicia a rotação
			rotateSwitch();
			return false; // Inibe a execução do link da paginação
		});

});





