$(document).ready(function() {

////////////////////////////////////////////////////////////////////
// INICIO...

	$('#shutter1').css({backgroundPosition: '0px 0px'});
	$('#shutter2').css({backgroundPosition: '0px 0px'});
	$('#shutter3').css({backgroundPosition: '0px 0px'});

	$(".iniciolink").hover(function(){
	      $(this).parent().animate({backgroundPosition: '(0px -270px)'}, 500 );
	}, function() {
	      $(this).parent().animate({backgroundPosition: '(0px 0px)'}, 500 );
	}); 

////////////////////////////////////////////////////////////////////	
// ENLACESCOLORBOX

	$(".cobertura-video").colorbox({iframe:true, innerWidth:425, innerHeight:344});
	$("a[rel='cobertura-imagen']").colorbox();
	$("a[rel='galeria-foto']").colorbox();
	$(".enlace-noticia").colorbox({width:"50%", height:"50%", iframe:true});
	$(".enlace-foto").colorbox();
	$("a[rel='enlace-foto-rel']").colorbox();
	$("#noticia-principal-btn").colorbox({width:"80%", height:"90%", inline:true, href:"#lanoticiaprincipal"});

////////////////////////////////////////////////////////////////////
// TOGGLE COBERTURA TELEVISION

	$("#cobertura-item-offset-contenedor").hide(); 

	$("#btn-ver-mas").click(function(){
		$("#cobertura-item-offset-contenedor").slideToggle("slow");
	});


	$("#btn-ver-mas").toggle(
		function(){
			 //$(this).addClass("btn-menos");
			// $(this).css('background', 'url(imagenes/btn_ver_mas.jpg)');
			$(this).addClass("activo");
		}, function () {
			//$(this).removeClass("btn-menos");
			//$(this).css('background', 'url(imagenes/btn_ver_menos.jpg)');
			$(this).removeClass("activo");
	});

////////////////////////////////////////////////////////////////////
// TOGGLE COBERTURA INTERNET Y PRENSA

	$("#cobertura-item-offset-contenedor2").hide(); 

	$("#btn-ver-mas2").click(function(){
		$("#cobertura-item-offset-contenedor2").slideToggle("slow");
	});

	$("#btn-ver-mas2").toggle(
		function(){
			$(this).addClass("activo");
		}, function () {
			$(this).removeClass("activo");
	});

////////////////////////////////////////////////////////////////////
// TOGGLE IMPRESIONES

	$("#cobertura-item-offset-contenedor3").hide(); 

	$("#btn-ver-mas3").click(function(){
		$("#cobertura-item-offset-contenedor3").slideToggle("slow");
	});

	$("#btn-ver-mas3").toggle(
		function(){
			$(this).addClass("activo");
		}, function () {
			$(this).removeClass("activo");
	});

////////////////////////////////////////////////////////////////////
// TOGGLE FOTOGRAFIAS

	$("#fotos-contenedor").css('height', '282px');
	$("#fotos-contenedor").css('overflow', 'hidden');

	$("#btn-ver-mas4").toggle(
		function(){
			$("#fotos-contenedor").css('overflow', 'visible');
			$("#fotos-contenedor").css('height', 'auto');
		}, function() {
			$("#fotos-contenedor").css('overflow', 'hidden');
			$("#fotos-contenedor").css('height', '282px');
		});

	$("#btn-ver-mas4").toggle(
		function(){
			$(this).addClass("activo");
		}, function () {
			$(this).removeClass("activo");
	});

////////////////////////////////////////////////////////////////////
// TOGGLE VIDEOS RESUMEN GENERAL

	$("#videos_mas").hide(); 

	$("#btn_videos").click(function(){
		$("#videos_mas").slideToggle("slow");
	});


	$("#btn_videos").toggle(
		function(){
			$(this).addClass("activo");
		}, function () {
			$(this).removeClass("activo");
	});
////////////////////////////////////////////////////////////////////


}); // FIN PONTE.READY

$(function() {
	$("#botonera").lavaLamp({
		speed: 500
	});
});
