// Code for clipping the on button image using imagemap clipping region
function setBeginEnd(which,fromX,toX,fromY,toY,RollOverX,RollOverY) {
// X clipping coordinates
    RollOverX[which] = new Array();
    RollOverX[which][0] = fromX;
    RollOverX[which][1] = toX;
// Y clipping coordinates	
	RollOverY[which] = new Array();
    RollOverY[which][0] = fromY;
    RollOverY[which][1] = toY;
}

function mapOn(which,on,buttonSubLayer,buttonLayer,RollOverX,RollOverY) {
  if(isAll||isID) {
    theElement=document.all ? document.all[buttonSubLayer].style : document.getElementById(buttonSubLayer).style;
  }
  if(isLayers) {
    theElement=document.buttonLayer.document.buttonSubLayer;
  }
  if (!on) {
    theElement.visibility = "hidden";
    return;
  }
  clTop = RollOverX[which][0];
  clBottom = RollOverX[which][1];
  clLeft = RollOverY[which][0];
  clRight = RollOverY[which][1];
  if(isLayers) {
    theElement.clip.top = clTop;
    theElement.clip.bottom = clBottom;
    theElement.clip.left = clLeft;
    theElement.clip.right = clRight;
  }
  else {
    theElement.clip = "rect("+clTop+"px,"+clRight+"px,"+clBottom+"px,"+clLeft+"px)";
  }
  theElement.visibility="visible";
}


// End clipping imagemap rollover code
