$(function() {
	$(".btn_ingresar").colorbox({width:"500px", inline:true, href:".ingresar_form", close:"cerrar"});	
	$('#slideshow img:first').fadeIn(1000, function() {
		$('#prev').fadeIn();
		$('#next').fadeIn();			
		$('#slideshow').cycle({
			fx:	'scrollHorz',
			timeout: 4000,
			prev:	'#prev',
			next:	'#next'
		});
	});
	$('#banners img:first').fadeIn(1000, function() {
		$('#prev').fadeIn();
		$('#next').fadeIn();			
		$('#banners').cycle({
			fx:	'fade',
			timeout: 4000,
			prev:	'#prev',
			next:	'#next'
		});
	});

	$('.clickeable').mouseover(function() {
		$(this).not('.activo').animate({ borderBottomColor: "white", color: "black" }, 300);
	});
	$('.clickeable').mouseout(function() {
		$(this).not('.activo').animate({ borderBottomColor: "#545454", color: "#274453" }, 300);
	});

// show hide
	$('.text_directivo').hide();
	//$('.seccion:first').addClass('activo').next().show();
	$('.seccion').click(function(){
		if( $(this).next().is(':hidden') ) { 
			$('.seccion').removeClass('activo').next().slideUp();
			$(this).toggleClass('activo').next().slideDown();
			$(this).animate({ borderBottomColor: "#d5d8db", color: "#274453" }, 300);
		} else {
			$('.seccion').removeClass('activo').next().slideUp();
			$(this).animate({ borderBottomColor: "#545454", color: "#274453" }, 300);
		}
	});
	
});


// onmouseover="$(this).animate({ backgroundColor: 'white' }, 500 );" onmouseout="$(this).animate({ backgroundColor: '' }, 500 );"
