<!--
// Handle hiding and unhiding of the product navigation

// keep track of the state of the menu
var currentItem = "bands";

function toggleList(newItem) {
	
	var currentItemStyle;
	var currentListStyle;
	var newItemStyle;
	var newListStyle;
	
	// if different item has been selected
	if (newItem != currentItem) {

		// handle "standards" compliant browser
		if (document.getElementById) {

			// get currently selected items's styles
			currentItemStyle = document.getElementById(currentItem).style;
			currentListStyle = document.getElementById(currentItem + "-list-box").style;
			
			// get newly selected item's styles
			newItemStyle = document.getElementById(newItem).style;
			newListStyle = document.getElementById(newItem + "-list-box").style;

		// handle older MS Internet Explorer
		} else if (document.all) {

			// get currently selected items's styles
			currentItemStyle = document.all[currentItem].style;
			currentListStyle = document.all[currentItem + "-list-box"].style;
			
			// get newly selected item's styles
			newItemStyle = document.all[newItem].style;
			newListStyle = document.all[newItem + "-list-box"].style;

		// handle Netscape Navigator 4.x
		} else if (document.layers) {
			alert("This site does not support Netscape Navigator 4.x.  Please upgrade your browser and try again.");
		}
	}

	currentItemStyle.backgroundPosition = "0px 0px";
	currentListStyle.display = "none";
	newItemStyle.backgroundPosition = "0px -11px";
	newListStyle.display = "block";
	currentItem = newItem;

}

// handle mouse over events of the navigation items
function setOver(item) {

	var itemStyle;

	if (item != currentItem) {
		
		// handle "standards" compliant browser
		if (document.getElementById) {

			// get hovered items's styles
			itemStyle = document.getElementById(item).style;

		// handle older MS Internet Explorer
		} else if (document.all) {

			// get currently selected items's styles
			itemStyle = document.all[item].style;

		// handle Netscape Navigator 4.x
		} else if (document.layers) {
			alert("This site does not support Netscape Navigator 4.x.  Please upgrade your browser and try again.");
		}
	}
	itemStyle.backgroundPosition = "0px -11px";
}

// handle mouse out events of the navigation items
function setOut(item) {

	var itemStyle;

	if (item != currentItem) {
		
		// handle "standards" compliant browser
		if (document.getElementById) {

			// get hovered items's styles
			itemStyle = document.getElementById(item).style;

		// handle older MS Internet Explorer
		} else if (document.all) {

			// get currently selected items's styles
			itemStyle = document.all[item].style;

		// handle Netscape Navigator 4.x
		} else if (document.layers) {
			alert("This site does not support Netscape Navigator 4.x.  Please upgrade your browser and try again.");
		}
	}
	itemStyle.backgroundPosition = "0px 0px";
}

// trim whitespaces off of the server included category list
function trim(str) {
	str.replace(/^\s*/, '').replace(/\s*$/, ''); 
	return str;
} 

//-->
