function irCoimbra()
{
	document.location.href = 'index.php?pagina=index';
}

function infoCoimbra()
{
	var info = "Informacion: Francisco Javier\n";
	var info2 = "\tTelefono: 652.249.228\n";
	var info3 = "\tEmail: ajedrezcoimbra@ajedrezcoimbra.com\n";
	var info4 = "Webmaster: Jose Joaquin\n";
	var info5 = "\tTelefono: 686.889.266\n";
	var info6 = "\tEmail: web@ajedrezcoimbra.com";
	alert(info+info2+info3+info4+info5+info6);
}

/*
TOOLTIP PARA LOS TITLE DE LOS ELEMENTOS CON class='tooltip'
*/
this.tooltip = function(){		
	//Marca las distancias con respecto al enlace
	xOffset = 10;
	yOffset = 20;			
	$("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
	},
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
	});	
	$("a.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};

//Iniciacion del script
$(document).ready(function(){
	tooltip();
});

function SeleccioneIdioma (idioma){
	if(document.location.href.indexOf('index.php?')>=0){
		if(document.location.href.indexOf('idioma')>=0){
			document.location.href = document.location.href.substring(0,document.location.href.indexOf('&idioma')) +'&idioma='+idioma;
		}else{
			document.location.href = document.location.href+"&idioma="+idioma;
		}
	}else{
		document.location.href = 'index.php?idioma='+idioma;
	}
}
//