function viewHide(menuItem) {
  var parentLI = menuItem.parentNode; // parent object containing the channel span tag
  var underList = null; // child object representing the "UL" tag
	
	// try to found the UL tag
	for(i=0; i<parentLI.childNodes.length; i++) {
		if (parentLI.childNodes[i].tagName == 'UL' || parentLI.childNodes[i].tagName == 'ul') {
			underList = parentLI.childNodes[i];
			break;
		}
	}
	// If we found the tag with the underlying links
	if (underList != null && underList.style != null) {
		if (underList.style.display != 'block') {
			underList.style.display = 'block';
      parentLI.className = parentLI.className.replace('channelNotSelected', 'channelSelected');
    }
    else {
			underList.style.display = 'none';
      parentLI.className = parentLI.className.replace('channelSelected', 'channelNotSelected');
    }
  }
  if (window.onMenuChange) {
    onMenuChange();
  }
}

