function imprimir() { 
	if (!document.getElementById) return true;
	document.getElementById("imprimir").onclick = function() {
		window.print();
	    return false;
	}
}
function CreateBookmarkLink(url,titulo) {
if (window.sidebar) { // Mozilla Firefox
window.sidebar.addPanel(titulo, url,"");
} else if( window.external ) { // IE
window.external.AddFavorite( url, titulo); }
else if(window.opera && window.print) { // Opera
window.external.AddFavorite( url, titulo); }
}

function favoritos() { 
	if (!document.getElementById) return true;
	document.getElementById("favoritos").onclick = function() {
		CreateBookmarkLink('http://www.escribe-lee.es', 'Asociación Escribe-Lee / Idatzi-Irakurri Elkartea');
	    return false;
	}
}
var subir;
subir=1;
function aumentar()
{
subir+=0.1;
 elem = document.body;
 elem.style.fontSize = ''+subir+'em';
}
function inicial()
{
 subir=1;
 elem = document.body;
 elem.style.fontSize = ''+subir+'em';
}
function reducir()
{
 subir-=0.1;
 elem = document.body;
 elem.style.fontSize = ''+subir+'em';
}
function aumentarFont() { 
	if (!document.getElementById) return true;
	document.getElementById("aumentarFont").onclick = function() {
		aumentar();
	    return false;
	}
}
function inicialFont() { 
	if (!document.getElementById) return true;
	document.getElementById("inicialFont").onclick = function() {
		inicial();
	    return false;
	}
}
function reducirFont() { 
	if (!document.getElementById) return true;
	document.getElementById("reducirFont").onclick = function() {
		reducir();
	    return false;
	}
}
function rollover() { 
	if (!document.getElementById) return true;
	document.getElementById("patrocina1").onmouseover = function() {
		document.getElementById("patrocina1").src='img/lateral/udala_over.gif';
	    return false;
	}
	document.getElementById("patrocina1").onmouseout = function() {
		document.getElementById("patrocina1").src='img/lateral/udala.gif';
	    return false;
	}
	document.getElementById("patrocina2").onmouseover = function() {
		document.getElementById("patrocina2").src='img/lateral/aldundia_over.gif';
	    return false;
	}
	document.getElementById("patrocina2").onmouseout = function() {
		document.getElementById("patrocina2").src='img/lateral/aldundia.gif';
	    return false;
	}
}
function cargarTools() {
	imprimir();
	favoritos();
	aumentarFont();
	reducirFont();
	inicialFont();
	rollover();
}

window.onload = cargarTools;
