<!--
function menu(a){	
	$(".menu a:eq("+a+") ").css({'color':'#fe9b0f'});
}

$(document).ready(function(){
  $.preloadCssImages();
  $("#nuevo").easyTooltip();
  $("#olvido").easyTooltip();
  
  $(".imagenes a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
   $("a[rel^='prettyPopin']").prettyPopin({
			modal : false, /* true/false */
			width : false, /* false/integer */
			height: false, /* false/integer */
			opacity: 0.7, /* value from 0 to 1 */
			animationSpeed: 'fast', /* slow/medium/fast/integer */
			followScroll: true, /* true/false */
			loader_path: '/Content/images/prettyPopin/loader.gif', /* path to your loading image */
			callback: function(){} /* callback called when closing the popin */
		});
   
			});
   				   
function abrir(a,e,b,c,d){
	if(document.all){var ventanaW=document.body.clientWidth;}
	else{var ventanaW=window.innerWidth}
	if(document.all){var ventanaH=document.body.clientHeight+150;}
	else{var ventanaH=window.innerHeight}
	var w = ventanaW/2;
	w = w-(b/2);
	var h = ventanaH/2;
	h = h-(c/2);
	window.open(a, e, 'width='+b+', height='+c+', top='+h+',left='+w+', scrollbars='+d+', location=0');
}

function validarContacto(formu) {
    var texto = '';
    if (formu.nombre.value == '' || formu.nombre.value == 'Nombre')
        texto += "- El campo nombre es obligatorio.\n";
    if (formu.mail.value == '' || formu.mail.value == 'Email')
        texto += "- El campo email es obligatorio.\n";
    else if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(formu.mail.value))) {
        texto += "- Formato de email incorrecto.\n";
    }
    if (formu.telefono.value == '' || formu.telefono.value == 'Teléfono')
        texto += "- El campo telefono es obligatorio.\n";
    if (formu.comentario.value == '' || formu.comentario.value == 'Comentario')
        texto += "- El campo comentario es obligatorio.\n";
    if (texto != '') {
        alert(texto);
        return false;
    }
    return true;
};

function validarSolicitud(formu) {
    var texto = '';
    if (formu.solicitud.value == '')
        texto += "- Debe adjuntar la solicitud.\n";
    if (texto != '') {
        alert(texto);
        return false;
    }
    return true;
};

function validarInicio(formu) {
    var texto = '';
    if (formu.uxUsuario.value == '' || formu.uxContrasena.value == '') 
        texto += "Introduzca su usuario y contrase\xF1a.\n";
    if (texto != '') {
        alert(texto);
        return false;
    }
    return true;
};

function validarComentario(formu) {
    var texto = '';
    if (formu.nombre.value == '' || formu.nombre.value == 'Nombre')
        texto += "- Debe introducir un titulo.\n";
    if (formu.comentario.value == '' || formu.comentario.value == 'Comentario')
        texto += "- Introduzca un comentario.\n";
    if (texto != '') {
        alert(texto);
        return false;
    }
    return true;
};

function validarNuevoTema(formu) {
    var texto = '';
    if (formu.titulo.value == '' || formu.titulo.value == 'Nombre')
        texto += "- Debe introducir un titulo.\n";
    if (formu.tema.value == '' || formu.tema.value == 'Tema')
        texto += "- Introduzca un tema.\n";
    if (texto != '') {
        alert(texto);
        return false;
    }
    return true;
};

function validarComentarioForo(formu) {
    var texto = '';
    if (formu.comentario.value == '' || formu.comentario.value == 'Comentario')
        texto += "- Introduzca un tema.\n";
    if (texto != '') {
        alert(texto);
        return false;
    }
    return true;
};



 


		

