function preparaLinks(){
	

	var url=document.URL;
	var trozos=url.split('/');
	var n=trozos.length;
	var fin=trozos[n-2];
	if(fin=='en' || fin=='mala')
			$('#home').addClass("current_page_item");
	else
			$('#home').removeClass("current_page_item");
	

}
	


function validar(lang) {
	
	$("#signupForm").validate({
		rules: {
			data_first_name: "required",
			custom_country_id: "required",
			data_email: {
				required: true,
				email: true
			}
		},
		
		messages: {
			data_first_name:(lang=='es')?"Por favor introduzca su nombre": "Please enter your firstname",
			custom_country_id: (lang=='es')?"Por favor introduzca su Pais":"Please enter your country",			
			data_email:(lang=='es')?"Por favor introduzca un email v&aacute;lido ":"Please enter a valid email address"			
		}
	});
	
	/*// propose username by combining first- and lastname
	$("#cp").focus(function() {
		var nombre = $("#nombre").val();
		var pais = $("#pais").val();
		if(nombre && pais && !this.value) {
			this.value = firstname + "." + lastname;
		}
	});*/
	
	
}
function registrar(){
	
	/*$.ajax({type:'POST', url: "http://www.musicreg.net/checkform", data: $("#signupForm").serialize(),success: function(txt){
		$("#container_form").html(txt);
        
      }});*/
	return true;
	
	
	
}
function cargaLinkVideo(lang){
	 
	 	var texto1=$("#videosidebar-3 h5").html();
	  	$("#videosidebar-3 h5").html("<a href='http://www.youtube.com/user/MalaRodriguezVEVO' target='_blank'>"+texto1+"</a>");
	  var texto2=$("#videosidebar-8 h5").html();
	  	$("#videosidebar-8 h5").html("<a href='http://www.youtube.com/user/MalaRodriguezVEVO' target='_blank'>"+texto2+"</a>");
	 
	  
	  
	
	
	
	
}
