// JavaScript Document
jQuery.noConflict();
// JavaScript Document
jQuery(document).ready(function() {
						   
	function galeria() {
		jQuery(".galeria a").click(function() {
			var ruta = jQuery(this).attr("href");
			var talt = jQuery(this).attr("title");
			jQuery(".foto").attr({ src: ruta, alt:talt});
			jQuery('div.pie_foto p').text(talt);
			return false;
		});
	}
	if(jQuery('.foto').length){galeria();};
	jQuery('#nav > li').hover(function() {
		jQuery(this).addClass('hover');
		jQuery('> a', this).addClass('hover');
	}, function() {
		jQuery(this).removeClass('hover');
		jQuery('> a', this).removeClass('hover');
	});
	jQuery('.pasos #paso1').hover(function() {
		jQuery('#paso1').addClass('on');
	}, function() {
		jQuery('#paso1').removeClass('on');
	});
	jQuery('.noticias .otras .noticia:even').addClass('altern');
	jQuery('.section p:last').css({'margin-bottom': '2px' });

	jQuery('.recordatorio_usuario').click(function() {
		jQuery('.recordatoriousuario').show();
		jQuery('.recordatoriopwd').hide();
		return false;
	});
	
	jQuery('.recordatorio_pwd').click(function() {
		jQuery('.recordatoriousuario').hide();
		jQuery('.recordatoriopwd').show();
		return false;
	});
	
	jQuery('#link_olvido').click(function() {
		jQuery('.recordatorio .pregunta').show();
		return false;
	});
	
	ancho = 800;
	alto = 600;
	posx = (screen.width-ancho)/2;
	posy = (screen.height-alto)/2;

	jQuery("a.popup").each(function(){
			   jQuery(this).click(function(){
					ventana = window.open(this.href, "ventana", "width=" + ancho + ",height=" + alto + ",top=" + posy + ",left=" + posx + ",scrollbars=yes,statusbar=no,menubar=no");
					return false;
				});
	});
});
function showLightbox() {
	document.getElementById('over').style.display='block';
	document.getElementById('fade').style.display='block';
}
function hideLightbox() {
	document.getElementById('over').style.display='none';
	document.getElementById('fade').style.display='none';
}
