<!--
function menu(a){	
	$("#m_"+a ).css({'background':'url(images/m_'+a+'.png)','text-decoration':'underline', 'cursor':'default'});
	puntoMenu = a;
}
function subMenu(a,b){	
	$("#sm_"+a+"_"+b ).css({'background':'url(images/sm_'+a+'_'+b+'.png)', 'cursor':'default', 'color':'#000'});
	seccion = a;
	puntoSubMenu = b;
}

var puntoMenu;
var seccion;
var puntoSubMenu;

$(document).ready(function(){  						  
 	$.preloadCssImages();
	$("#social li").hover(
	  function () {
		var orden =  $("#social li").index(this);
		$("#social li:eq("+orden+")").animate({
			top: "0px"
		  }, 300 );
	  }, 
	  function () {
		var orden =  $("#social li").index(this);
		$("#social li:eq("+orden+")").animate({
			top: "-10px"
		  }, 300 );
	  }
	);
}); 

$(window).load(function(){	
						
	if($("#m_"+puntoMenu)){
		$("#m_"+puntoMenu).click(function () {				
			$("#m_"+puntoMenu).attr({ 
			  href: "#"
			});									
			return false;
		});
	}
	if($("#sm_"+seccion+"_"+puntoSubMenu )){
		$("#sm_"+seccion+"_"+puntoSubMenu ).click(function () {				
			$("#sm_"+seccion+"_"+puntoSubMenu ).attr({ 
			  href: "#"
			});									
			return false;
		});
	}
}); 


function validamelo(){
	var theForm = document.form1;
	var emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	var telefonoNN = /^([0-9]{9})+$/;
	var errMsg = "";
	var setfocus = "";
	
	if (theForm['$comentarios'].value == ""){
		errMsg = "Inserte su consulta";
		setfocus = "['$comentarios']";
	}
	if (!telefonoNN.test(theForm['$tfno'].value)){
		errMsg = "Inserte su telefono";
		setfocus = "['$tfno']";
	}
	if (!emailRE.test(theForm['$mail'].value)){
		errMsg = "Inserte su direccion de correo electronico";
		setfocus = "['$mail']";
	}
	if (theForm['$nombre'].value == ""){
		errMsg = "Inserte su nombre y apellidos";
		setfocus = "['$nombre']";
	}
	
	
	if (errMsg != ""){
		alert(errMsg);
		eval("theForm" + setfocus + ".focus()");
	}
	//else theForm.action = "sendForm/sendForm.php";
	
	else theForm.submit();
	
	//alert("ppppppppppppppppppppfdsfpdsfpsfpsdfpdpsddpfkpsd"); 
	
	
}

//-->
