	function openDiv (id) {
		id = document.getElementById(id);
		if (id.style.display == "block") {
			id.style.display = "none";
		} 
		else {
			id.style.display = "block";
		}
	}

	function fontSizeBig () {
		if (getCookie("fontsize") == "big") { return; }
		if (getCookie("fontsize") == "small") { fontSizeNormal(); return; }
		var checkOK = false;
		for (i = 0; i < document.getElementsByTagName("*").length; i++) {
			if (document.getElementsByTagName("*")[i].tagName == "DIV") {
				if (document.getElementsByTagName("*")[i].id == "contentbox") {
					checkOK = true;
				}
				if (document.getElementsByTagName("*")[i].id == "footer") {
					checkOK = false;
				}
			}
			if (checkOK) {
				document.getElementsByTagName("*")[i].style.fontSize = "113%";
			}
		}
		setCookie("fontsize", "big");
	}
	
	function fontSizeSmall () {
		if (getCookie("fontsize") == "small") { return; }
		if (getCookie("fontsize") == "big") { fontSizeNormal(); return; }
		var checkOK = false;
		for (i = 0; i < document.getElementsByTagName("*").length; i++) {
			if (document.getElementsByTagName("*")[i].tagName == "DIV") {
				if (document.getElementsByTagName("*")[i].id == "contentbox") {
					checkOK = true;
				}
				if (document.getElementsByTagName("*")[i].id == "footer") {
					checkOK = false;
				}
			}
			if (checkOK) {
				document.getElementsByTagName("*")[i].style.fontSize = "90%";
			}
		}
		setCookie("fontsize", "small");
	}
	
	function fontSizeNormal () {
		deleteCookie("fontsize");
		window.location.href = window.location.href;
		history.go(0);
		window.location.reload()
	}
	
	function setCookie (type, text) {
		var a = new Date();
		a = new Date(a.getTime() +1000*60*60*24*365);
		document.cookie = type + '=' + text + '; expires=' + a.toGMTString() + ';'; 
	}
	
	function deleteCookie(name) {
	    if (getCookie(name)) {
	        document.cookie = name + "=" + "" + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	    }
	}
	
	function getCookie(name) {
	    var dc = document.cookie;
	    var prefix = name + "=";
	    var begin = dc.indexOf("; " + prefix);
	    if (begin == -1) {
	        begin = dc.indexOf(prefix);
	        if (begin != 0) return null;
	    } else {
	        begin += 2;
	    }
	    var end = document.cookie.indexOf(";", begin);
	    if (end == -1) {
	        end = dc.length;
	    }
	    return unescape(dc.substring(begin + prefix.length, end));
	}
