jQuery(function(){
	try{
		jQuery(".abas-cartao .link-aba").click(function(){
			jQuery(".abas-cartao .link-aba").removeClass("selecionado");
			jQuery(this).addClass("selecionado");
			showAbaInterna(jQuery(this).attr("id"));
			var classe = jQuery(this).attr("href");
			jQuery(".bloco-edicao-cartao").hide();
			jQuery(classe).show();
			return false; 
		}); 
	}catch(e){}


	try{
		jQuery("#tema-amor01").click(function(){
			jQuery("#box-frente-cartao").addClass("tema-amor01");
			jQuery("#box-escolha-fotos").hide();
			jQuery("#box-fotos").show();
			return false;
		});
	}catch(e){}



	try{
		jQuery(".listagem-temas a").click(function(){
			jQuery(".listagem-temas a").removeClass("selecionado");
			jQuery(this).addClass("selecionado");
			return false;
		});
	}catch(e){}
	

	try{
		jQuery(".listagem-fotos a").click(function(){
			jQuery(".listagem-fotos a").removeClass("selecionado");
			jQuery(this).addClass("selecionado");
			return false;
		});
	}catch(e){}


	try{
		jQuery("#combo-temas").change(function(){
			jQuery("#texto-temas-escolha").hide();
			jQuery("#box-temas").show();
			showCarrosselTemas(true);
		});
	}catch(e){}
	
	try{
		jQuery(".navegacao-abas-modais a").click(function(){
			jQuery(".navegacao-abas-modais a").removeClass("selecionado");
			jQuery(this).addClass("selecionado");
			return false;
		});
	}catch(e){}
	
	try{
		jQuery(".navegacao-abas-modais a").click(function(){
			jQuery(".navegacao-abas-modais a").removeClass("selecionado");
			jQuery(this).addClass("selecionado");
			var classe = jQuery(this).attr("href");
			jQuery(".box-conteudo-modais-fotos").hide();
			jQuery(classe).show();
			return false;
		});
	}catch(e){}
	
	try{	
		jQuery("#conteudo-modal-fotos-flickr .botao-prosseguir").click(function(){
			var bloco = jQuery(this).attr("href");
			jQuery("#conteudo-modal-fotos-flickr .bloco-modais-fotos-acesso").hide();
			jQuery(bloco).show();
			return false;
		});
	}catch(e){}
	
	try{
		jQuery("#conteudo-modal-fotos-facebook .botao-prosseguir").click(function(){
			var bloco = jQuery(this).attr("href");
			jQuery("#conteudo-modal-fotos-facebook .bloco-modais-fotos-acesso").hide();
			jQuery(bloco).show();
			return false;
		});
	}catch(e){}
	
	try{	
		jQuery("#conteudo-modal-fotos-picasa .botao-prosseguir").click(function(){
			var bloco = jQuery(this).attr("href");
			jQuery("#conteudo-modal-fotos-picasa .bloco-modais-fotos-acesso").hide();
			jQuery(bloco).show();
			return false;
		});
	}catch(e){}
	
	try{
		jQuery(".box-listagem-duvidas-completa .link-duvidas").click(function(){
			jQuery(".box-listagem-duvidas-completa .link-duvidas").removeClass("selecionado");
			jQuery(this).addClass("selecionado");
			jQuery(".box-duvidas").addClass("box-duvidas-ativo");
			return false;
		});
	}catch(e){}
	
	try{	
		jQuery("#link-alterar-tamanho-montagem").click(function(){
			jQuery("#box-tamanho-atual-montagem").hide();
			var destino = jQuery(this).attr("href");
			jQuery(destino).show();
			return false;
		});
	}catch(e){}
	
	try{
		jQuery("#link-confirmar-tamanho-montagem").click(function(){
			jQuery("#box-alterar-tamanho-montagem").hide();
			var destino = jQuery(this).attr("href");
			jQuery(destino).show();
			return false;
		});
	}catch(e){}
	
/* Comentado por alexandre 
	try{
		jQuery("#box-frente-cartao").hover(function(){
			jQuery("#bloco-editar-foto").show();
		},function(){
			jQuery("#bloco-editar-foto").hide();
		});
	}catch(e){}
*/	
	try{
		jQuery(".listagem-album a").click(function(){
			jQuery(".listagem-album li").removeClass("selecionado");
			jQuery(this).parent().parent().addClass("selecionado");
			return false;
		});
	}catch(e){}
	

	
	try{
		jQuery(".borda-interna").hover(function(){
			jQuery(this).find(".excluir-foto-lista").show();
		},function(){
			jQuery(this).find(".excluir-foto-lista").hide();
		});
	}catch(e){}
});
