function findTopPosition(oElement) {
  if( typeof( oElement.offsetParent ) != 'undefined' ) {
    for( var posX = 0; oElement; oElement = oElement.offsetParent ) {
      posX += oElement.offsetLeft;
    }
    return posX;
  } else {
    return oElement.x;
  }
}


function hideMenu(mMenuID)
{
  var theDivElement  = document.getElementById("DivMenu" + mMenuID);
  theDivElement.style.visibility = "hidden";
}


function showMenu(mMenuID, x, y)
{
  var theDivElement  = document.getElementById("DivMenu" + mMenuID);
  var theTDElement  = document.getElementById("mTDCenter");
  strLeft = findTopPosition(theTDElement) -40;

  theDivElement.style.left = strLeft + 'px';
  theDivElement.style.top  = y + 'px';
  theDivElement.style.visibility = "visible";
}



function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}


function showGold () {

	MM_changeProp('goldfeatures','','display','block','DIV');
	MM_changeProp('greenfeatures','','display','none','DIV');
	MM_changeProp('bluefeatures','','display','none','DIV');

}

function showGreen () {

	MM_changeProp('goldfeatures','','display','none','DIV');
	MM_changeProp('greenfeatures','','display','block','DIV');
	MM_changeProp('bluefeatures','','display','none','DIV');

}

function showBlue () {

	MM_changeProp('goldfeatures','','display','none','DIV');
	MM_changeProp('greenfeatures','','display','none','DIV');
	MM_changeProp('bluefeatures','','display','block','DIV');

}

