// Funcionalidades del sitio

jQuery(document).ready(function($){

	$("#tabVotar").click(function(){
		$("#resultados").hide();
		$("#encOpt").show();
		return false;
	});
	$("#tabResultados").click(function(){
		$("#encOpt").hide();
		$("#resultados").show();
		return false;
	});

$(".contactoAnuncios").colorbox({width:"660px",height:"640px",iframe:true, href:"form-publicidad.html"});
$(".contactoEditorial").colorbox({width:"660px",height:"920px",iframe:true, href:"contacto-editorial.html"});
//$(".newsletter").colorbox({width:"660px",height:"550px",iframe:true, href:"newsletter-form.html"});

//Galerias Home (A veces se utiliza)
	jQuery("#boton a[rel='notaGaleriaHome']").colorbox({
			current:'',
			scalePhotos:true,
			width:660,
			height:600,
			innerWidth:640,
			innerHeight:580,
			opacity:0.85
		});
	jQuery("#ebooks a[rel='notaGaleriaHome']").colorbox({
			current:'',
			scalePhotos:true,
			width:660,
			height:600,
			innerWidth:640,
			innerHeight:580,
			opacity:0.85
		});
		
	    $(".tab_content").hide();  
		$("ul.tabs li:first").addClass("active").show();
		$(".tab_content:first").show();
		
		$("ul.tabs li").click(function(){  
			
			$("ul.tabs li").removeClass("active");
			$(this).addClass("active");
			$(".tab_content").hide();
			var activeTab = $(this).find("a").attr("href");  
    		$(activeTab).fadeIn();  
    		return false;  
		});  


});
// vim: set fdm=marker fmr={,}: */

