$(document).ready( function(){
    $(" #resultsTop10 tr:nth-child(odd)").addClass("top10TableCor2");
    $("#resultsTop10 tr ").hover(function(){
      $(this).toggleClass("top10TableCorHover");
    });
	
	$(" #resultsTop10Ouvidos tr:nth-child(odd)").addClass("top10TableCor2");
    $("#resultsTop10Ouvidos tr ").hover(function(){
      $(this).toggleClass("top10TableCorHover");
    });
	
	$('.somLivreMiniEcommerce ul li:odd').addClass('bg');
	$('.somLivreMiniEcommerce ul li:even').removeClass('bg');	

		
	//Pagina Especiais
	$('.somLivreMiniEcommerce li:odd').addClass('bg');
	$('.somLivreMiniEcommerce li:even').removeClass('bg');		

	//Busca
	$('.faixas li:odd').addClass('bg');
	$('.faixas li:even').removeClass('bg');		
	
	
	$("#top10ResultsOuvidos").hide();		
	$(".resultado-busca-shows").hide();	
	$(".paginacaoShow").hide();	
	
	   
    $(" .slmeTable tr:nth-child(odd)").addClass("slmeTableCor1");
    $(" .slmeTable tr:nth-child(even)").addClass("slmeTableCor2");


/*    var BUSCAVALUE = "Música, artista, banda, álbum ou estilo...";
    $("#campoBusca").attr("value",BUSCAVALUE);
    $("#campoBusca").mouseup(function(){
        $(this).attr("value", "");
    }).mouseout(function(){
        if ( $(this).attr("value") == "" )
            {
                $(this).attr("value", BUSCAVALUE);
            }
		});
*/

$('#maisVendido').click(function(){	
	$("#top10ResultsOuvidos").hide();
	$("#top10Results").show();												
	}
);
				
$('#maisOuvido').click(function(){					
	$("#top10Results").hide();
	$("#top10ResultsOuvidos").show();	
	}
);

$("#menuList li.comsub").hover(function(){
		$(this).addClass("ativo");
		$(this).children(".submenu").show();
	}, function(){
		$(this).removeClass("ativo");
		$(this).children(".submenu").hide();
	})
	
	$("#boxMeioRight li").hover(function(){
		$(this).addClass("ativo");
	},function(){
		$(this).removeClass("ativo");
	})
	
	$(".menu-abas li").hover(function(){
		$(this).addClass("over");
	},function(){
		$(this).removeClass("over");
	})
	
	$(".menu-abas li").click(function(){
		$(".menu-abas li").removeClass("ativo");
		$(this).addClass("ativo");
		if($(this).hasClass('produtos')){
			$('.resultado-busca-produtos').show();
			$('.resultado-busca-shows').hide();
			$('.paginacaoShow').hide();
			$('.paginacaoProd').show();
			
		}
		if($(this).hasClass('shows')){
			$('.resultado-busca-shows').show();
			$('.resultado-busca-produtos').hide();
			$('.paginacaoProd').hide();	
			$('.paginacaoShow').show();			
		}
	})
	
	$('.teaser .data').click(function() {
		$(this).parent().parent().children('.completo').show();
		$(this).parent('.teaser').hide();
	});
	$('.completo .data').click(function() {
		$(this).parent('.completo').hide();
		$(this).parent().parent().children('.teaser').show();
		
	});
	$('.teaser .info').click(function() {
		$(this).parent().parent().children('.completo').show();
		$(this).parent('.teaser').hide();
	});
	$('.completo .info').click(function() {
		$(this).parent('.completo').hide();
		$(this).parent().parent().children('.teaser').show();
		
	});
	
	
	
	$(".selectbox").toggle(function(){
		$(".selectbox").children(".sub").slideUp("fast");
		$(".selectbox").removeClass("sb-ativo");
		$(this).children(".sub").slideDown("fast");
		$(this).addClass("sb-ativo");
	},function(){		
		$(this).children(".sub").slideUp("fast");
		$(this).removeClass("sb-ativo");
	})
	
	$('*:not(a, ".selectbox" ) ').click(function() {
			$(".selectbox").children(".sub").slideUp("fast");
			$(".selectbox").removeClass("sb-ativo");
			$(".selectbox").stop();
	});


	
	 $('#lastTweets').jcarousel({
        vertical: true,
        scroll: 3
		
    });
	$('#listVideosYouTube').jcarousel({
        vertical: true,
        scroll: 2	
    });	
	
	
});
