// Evento onload
// 
$(document).ready(function() {

	$(".js_hide").css("display", "none");

	$(document).click(function(e) {
		$(".perfil").css('z-index',100);				
      $(".ficha").css('opacity',1);
		$(".cajaperfil").fadeOut();
	});
	$(".perfil").bind("mouseenter",function(e) {
		$(this).css("background", "#84C008")
		
	}).bind("mouseleave",function(event){
		
		$(this).css("background", "#2e352d")
	});

	$(".perfil").click(function(e) {
		//e.preventDefault();
		$(".cajaperfil").hide();
		$(".perfil").css('z-index',100);
		$(this).css('z-index',1000);
		$(this).children(".cajaperfil").fadeIn();
      $(".ficha").css('opacity',0.2);
    	$(this).children(".ficha").css('opacity',1);
		return false;
	});

	$(".lnk_cerrar").click(function(e) {
		e.preventDefault();
		$(".perfil").css('z-index',100);		
      $(".ficha").css('opacity',1);
		$(".cajaperfil").fadeOut();
		return false;
	});
	
	$(".cajaperfil").click(function(e) {
		e.preventDefault();
		return false;
	});
	
});

