if(window.onload==null) {
	window.onload = function(){
		//initMenu();
		
		//make images mouse-overable
		/*
		var overs = getElementsByStyleClass('overable');
		for(var i=0; i<overs.length; i++) {
			//define mouse action
			overs[i].onmouseover = function(){overImg(this);}
			overs[i].onmouseout = function(){outImg(this);}
			overs[i].onfocus = function(){overImg(this);}
			overs[i].onblur = function(){outImg(this);}
		}
		*/
		
		/*
		if(typeof isTextOnly != undefined && true == isTextOnly) {
			setCookie('textOnly', 'true', '/');
			textOnly();
		} else {
			var cookieValue = getCookie('textOnly');
			if(null != cookieValue) textOnly();
		}
		*/
		var cookieName = 'rmode';
		if('text' == rmode) {
			setCookie(cookieName, 'text', '/');
			textOnly();
		} else if('g' == rmode) {
			expireCookie(cookieName, '/');
		} else {
			var cookieValue = getCookie(cookieName);
			if(null != cookieValue) textOnly();
		}
		
	}
}
