var height;

function mouseOver(c)
{
   c.src ="/narravc/opencms/system/modules/com.szinf.narravc/resources/submenu2.gif";
}

function mouseOut(c)
{
   c.src ="/narravc/opencms/system/modules/com.szinf.narravc/resources/submenu1.gif";
}

// Gets the size of the current body-box-right-content element
function size() {

   if (document.layers) {
      height = document.layers['body-box-right-content'].document.height;
   } else if (document.all) {
      var oheight = document.getElementById('body-box-right-content').offsetHeight;
      height = oheight<=270?270:oheight;
   } else if (document.defaultView) {
      //alert(document.getElementById('body-box-right-content').offsetHeight);
      //height = document.defaultView.getComputedStyle(document.documentElement,null).getPropertyValue("height");
      height = document.getElementById('body-box-right-content').offsetHeight;
   }

   return height;
}

// setStyleById: given an element id, style property and 
// value, apply the style.
// args:
//  i - element id
//  p - property
//  v - value
//
function setStyleById(i, p, v) {
   var n;
   if (document.getElementById(i)) {
      n = document.getElementById(i);
      n.style[p] = v;
   }
}

