var getObjectById = function(id) {
	if(document.layers)					return document.layers[id];
	else if(document.all)				return document.all[id];
	else if(document.getElementById)	return document.getElementById(id);
	else 								return null;
}
var changeFontSize = function(reduce) {
	var fontSize = parseInt(getObjectById('fontSize').innerHTML);
	if(reduce == false) {
		if(fontSize >= '160') return false;
		document.body.style.fontSize = (fontSize+20)+'%';
		getObjectById('fontSize').innerHTML = (fontSize+20);
	}
	else {
		if(fontSize <= '60') return false;
		document.body.style.fontSize = (fontSize-20)+'%';
		getObjectById('fontSize').innerHTML = (fontSize-20);
	}
}
var currHash	= "";
var hashSpooler = null;
var startHashSpooler = function(obj) {
	currHash =  window.location.hash;
	hashSpooler = window.setInterval(checkHash, 5, obj);
}
var checkHash = function(obj) {
	if(currHash != window.location.hash) {
		//alert("hashChanged!!\n"+window.location.hash);
		if(typeof(obj) == "object") {
			obj.init(true);
			currHash = window.location.hash;
		}
		else return false;
	}
}