function rssMouseOver(e) {
  var oMat = obj('rss_mat');
  if (oMat && oMat.style.display != 'block') {
    oMat.style.position = 'absolute';
    oMat.style.display = 'block';
    var iPopupHeight = getElementHeight(obj('rss_popup'));
    var iInnerHeight = getElementHeight(obj('rss_inner'));
    if (bAbove && bAbove == true) {
      oMat.style.top = (iPopupHeight * -1) + 'px';
      oMat.style.height = iPopupHeight + iInnerHeight;
    }
    else {
      oMat.style.height = iPopupHeight + iInnerHeight;
      oMat.style.paddingTop = iInnerHeight + 'px';
    }
  }  
}

function rssMouseOut(e) {
  if (obj('rss_mat').style.display == 'block' && mouseOutside(e, obj('rss_mat'))) {
    obj('rss_mat').style.display = 'none';            
  }
}

function mouseOutside(e, oElement) {
  ptMouse = getMousePos(e);
  ptElement = getElementOffset(oElement);
  bOut = ((ptMouse.left < ptElement.left || ptMouse.left > (ptElement.left + oElement.clientWidth))
    || (ptMouse.top < ptElement.top || ptMouse.top > (ptElement.top + (oElement.clientHeight - 4))));
  return bOut;   
}

function showRSS() {
  window.open('http://www.else.co.nz/else-rss.xml', '_blank');
  obj('rss_mat').style.display = 'none';
}