/*

function:	navBG(topNode)
author:		Miroslav Wiesner
date:		April 18, 2006

This function loops through the navigation and assigns a background image
to the list items in any List Item (LI) that has an ID attribute.

The list item ID must be structured based on the name of the background image.
Eg. image: b-section-name.gif id: li-section-name
It is also required that you declare the physical path to the images directory.
This function requires initialization in the page onLoad.

*/

function navBG(obj) {
	Element.cleanWhitespace(obj);
	var topNode	= isIE5() ? document.getElementById(obj) : $(obj);
	var LIs		= topNode.getElementsByTagName("li");
	var path	= "/images/buttons/";
	for (i=0; i < LIs.length; i++) {
		var id		= LIs[i].className;
		var title 	= id.substring(3);
		if(id) {
			LIs[i].childNodes[0].style.backgroundImage = "url(" + path + "b-" + title + ".gif)";
		}
	}
}

function init() {
	blurLinks();
	navBG('left-col');
}