var d = document;

addLoadEvent(initNavBar);

function initNavBar() {
	//	If DOM supported, removes the title text from each menu item
	if(!d.getElementById || !d.getElementsByTagName) return;
	if(d.getElementById("nav"))	{
		var nav = d.getElementById("nav");
		var links = nav.getElementsByTagName("a");
		for(var i = 0; i < links.length; i++) {
			links[i].setAttribute("title","");
		}
	}
	if(d.getElementById("rightcol"))	{
		var rightcol = d.getElementById("rightcol");
		var links = rightcol.getElementsByTagName("a");
		for(var i = 0; i < links.length; i++) {
			links[i].setAttribute("title","");
		}
	}
}

//	The following function provides an easy method of adding a number of different
//	functions to the "window.onload" event
//	It is called, for example, by the statement:  addLoadEvent(initButtons);
function addLoadEvent(funcName) {
	var prevonload = window.onload;
	if (typeof window.onload != 'function') {
		// this is the first action to be added to 'onload'
		window.onload = funcName;
	} else {
		window.onload = function() {
			prevonload();
			funcName();
		}
	}
}