

function abrir_m1() {
	if($("#m1").height()<20){
		$("#m1").height("446px");
		$("#menu_amigos").css("background-color","#1B1B1B");
		
	}
	else{ 
		$("#m1").height(0);
		$("#menu_amigos").css("background-color",none);
	}
	
}



function abrir_m2() {
	if($("#menu_desplegable").height()>100) {
		$("#menu_desplegable").animate( { height:"0px" },50);
		$("#box").animate( { height:"0px" },50);
	}
	
	if($("#box").height()<20){
		$("#menu_desplegable").animate( { height:"446px" },200);
		$("#box").animate( { height:"446px" },200);
	
	}
	else{
		$("#stuff").animate( { height:"0px" },200);
		$("#menu_desplegable").height(446);
		$("#m1").height(0);
	}	
	
}


function abrir_m3() {
	if($("#stuff").height()>100) {
		$("#stuff").animate( { height:"0px" },50);
		$("#box").animate( { height:"0px" },50);
	}
	
	if($("#box").height()<20){
		$("#stuff").animate( { height:"446px" },200);
		$("#box").animate( { height:"446px" },200);
	
	}
	else{
		$("#menu_desplegable").animate( { height:"0px" },200);
		$("#stuff").height(446);
	}	
	
}



//function abrir_m3() {
//if($("#box").height()<20){
//		$("#stuff").animate( { height:"446px" },200);
//		$("#box").animate( { height:"446px" },200);
//	}
//	else{ 
//		$("#stuff").animate( { height:"0px" },50);
//		$("#box").animate( { height:"0px" },50);
//	}
	
//}
function abrir_m4() {
	if($("#m4").height()<20){
		$("#m4").animate( { height:"100%" },200);
	}
	else{ 
		$("#m4").height(0);
	}
	
}
function abrir_m5() {
	if($("#m5").height()<20){
		$("#m5").animate( { height:"100%" },200);
	}
	else{ 
		$("#m5").height(0);
	}
	
}
	
	
	
function enviar_mensahe() {
	v_nombre=$("#nombre_mensahe").val();
	v_email=$("#email_mensahe").val();
	v_mensaje=$("#mensaje_mensahe").val();
	$.post("/revista_virtual/09/inc/procesador_mensahes.php", { nombre: ""+v_nombre+"",  email: ""+v_email+"", mensaje: ""+v_mensaje+"" },
		   
		   function(data) {
		   $("#mensahes").html(data);
	} );
	
	$("#mensahes").animate( { height:"200px" },500);
	
}
function enviar_newsletter() {
	n_email=$("#email_newsletter").val();
	$.post("/revista_virtual/09/inc/procesador_newsletter.php", { email: ""+n_email+"" },
		   
		   function(data) {
		   $("#newsletter").html(data);
	} );
	
	$("#newsletter").css("background-image","url(/revista_virtual/09/imagenes/newsletter.gif)");
	
}


function martesbox(v_archivo) {
	$("#imagen_box").html('<img src="'+v_archivo+'" alt="MartesBox" /><br /> CERRAR');
	$("#martesbox").css("display","block");
	$("#body").css("overflow","hidden");

}
function martesboxc() {
	$("#martesbox").css("display","none");
	$("#body").css("overflow","auto");

}
