
/****************************************************
*	        DOM Image rollover:
*		by Chris Poole
*		http://chrispoole.com
*               Script featured on http://www.dynamicdrive.com
*		Keep this notice intact to use it :-)
****************************************************/

function init_rollover() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}

onload=init_rollover;

/****************************************************
*	        Button simulation:
*		by Neil Watkins
****************************************************/
function high(EID)
{
  document.getElementById(EID).style.backgroundColor = "#DDFFCC";
  document.getElementById(EID).style.borderColor = "#777777 #EEEEEE #EEEEEE #777777";
}

function low(EID)
{
  document.getElementById(EID).style.backgroundColor = "#CCDDFF";
  document.getElementById(EID).style.borderColor = "#EEEEEE #777777 #777777 #EEEEEE";
}

/****************************************************
*	        Row highlighting:
*		by Neil Watkins
****************************************************/
function inrow(EID)
{
  document.getElementById(EID).style.backgroundColor = "#FFDDDD";
}

function outrow(EID)
{
  document.getElementById(EID).style.backgroundColor = "#FFFFFF";
}

