var ua = navigator.userAgent.toLowerCase(); 
var isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) ); 
var isMac = (ua.indexOf('mac') != -1);

function hideLinks() {
/* */
if (!isIE || !isMac) {
  var hasLinks = false;
  var seeAlso = document.getElementById('SideLinks');
  var nodeToHide = document.getElementById('SidebarContainer') ? document.getElementById('SidebarContainer') : document.getElementById('Sidebar');
  var childNodes = seeAlso.childNodes;
  for (i=0;i<childNodes.length; i++) {
    if (childNodes[i].nodeType == 1) {
      if (childNodes[i].nodeName =='A'){
        hasLinks = true;
        break;
      }// end if A
      var subNodes = childNodes[i].childNodes;
      for(j=0;j<subNodes.length; j++) {
        if (subNodes[j].nodeName == 'A') {
          hasLinks = true;
          break;
        }// end if A
      }// end for subNodes
    }// end if LI
    if (hasLinks) {
      break;
    }//end if hasLinks
  }// end for childNodes
  if (!hasLinks) {
    nodeToHide.style.display = 'none';
  }
} // end if IE Mac
/* */
}//end function