
jQuery(document).ready(function()
{
   //$('#tabs').tabs();
   $("a#fancybox").fancybox();

	$("a.gallery").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600,
		'speedOut'		:	200,
		'overlayShow'	:	true,
		'overlayOpacity': 0.8 
	});




});

function showLightbox() {
        document.getElementById('over').style.display='block';
        document.getElementById('fade').style.display='block';
        setTimeout("hideLightbox()",5000);

}
function hideLightbox() {
        document.getElementById('over').style.display='none';
        document.getElementById('fade').style.display='none';
}
function load_temporada(ver,others){
	for(var i=0; i<others.length; i++)
    {
    	document.getElementById('temporada_'+others[i]).style.display='none';
    }
    document.getElementById('temporada_'+ver).style.display='block';

}

function change_clasification(id){
	switch(id){
		case 'ultima':
		$('#clasificacion').hide('slow');
        $('#calendario').hide('slow');
        $('#ultima').show('slow');
		break;
		case 'clasificacion':
		$('#ultima').hide('slow');
        $('#calendario').hide('slow');
        $('#clasificacion').show('slow');
		break;
		case 'calendario':
		$('#ultima').hide('slow');
        $('#clasificacion').hide('slow');
        $('#calendario').show('slow');
		break;

	}
	return false;
}
function change_lomas(id){
$("#tab_on").attr("id","tab_off_off");
$("#tab_off").attr("id","tab_on");
$("#tab_off_off").attr("id","tab_off");
//alert(id);
	switch(id){
		case 'comentados':
		$('#vistos').hide('slow');
        $('#comentarios').show('slow');
		break;
		case 'vistos':
        $('#comentarios').hide('slow');
        $('#vistos').show('slow');
		break;
	}
	return false;
}






