// JavaScript Padre Nicolas Web
$(document).ready(function(){
						   
	//Rotador de Ultimas Noticias
	jQuery("#rotanoti > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 8000, true);	
	
	//Muestra informacion de la red de apoyo
	jQuery(".red_apoyo a").hover(function() {
			jQuery(this).next("em").animate({opacity: "show", top: "-90"}, "slow");
		}, function() {
			jQuery(this).next("em").animate({opacity: "hide", top: "-105"}, "fast");
	});	
	
	//Verifica si el link de la imagen esta roto
	jQuery("img").error(function () {
		jQuery(this).attr({
			src:"http://www.padrenicolas.cl/images/no_image.gif",
			alt:"Sin Imagen",
			style:"width:75px; height:75px;"
		});		
	});
	
	//Animacion Webmail
	jQuery('.wrap a').hover(function() {
		jQuery(this).children('.front').stop().animate({ "top" : '70px'}, 'fast');   
	}, function() {
		jQuery(this).children('.front').stop().animate({ "top" : '0'}, 'fast');       
	});
	
	//Funcionario-Over
	jQuery('.funcionario').hover(
			function(){
				jQuery(this).css('border-color','#FF9900');
				jQuery(this).css('background-color','#f5f5f5');
				}, 
			function(){
				jQuery(this).css('border-color','#0099FF');
				jQuery(this).css('background-color','#ffffff');
	});

});