// Rollover.js - 27 June 2000 - MP
// Script to handle image rollovers.
// If the browser recognises the document.images 
// object, then it can cope with image rollovers.
// Netscape v3.0 or later, MSIE v4.0 or later.

if (document.images) {
   // Left nav:
   personalon = new Image(146,25);
   personalon.src = "/ie/images/leftnav/personal_on.gif";
   personaloff = new Image(146,25);
   personaloff.src = "/ie/images/leftnav/personal_off.gif";
   medicalon = new Image(146,25);
   medicalon.src = "/ie/images/leftnav/medical_on.gif";
   medicaloff = new Image(146,25);
   medicaloff.src = "/ie/images/leftnav/medical_off.gif";
   moneyon = new Image(146,25);
   moneyon.src = "/ie/images/leftnav/money_on.gif";
   moneyoff = new Image(146,25);
   moneyoff.src = "/ie/images/leftnav/money_off.gif";
   shoppingon = new Image(146,25);
   shoppingon.src = "/ie/images/leftnav/shopping_on.gif";
   shoppingoff = new Image(146,25);
   shoppingoff.src = "/ie/images/leftnav/shopping_off.gif";
   interactiveon = new Image(146,25);
   interactiveon.src = "/ie/images/leftnav/interactive_on.gif";
   interactiveoff = new Image(146,25);
   interactiveoff.src = "/ie/images/leftnav/interactive_off.gif";
   lifestyleon = new Image(146,25);
   lifestyleon.src = "/ie/images/leftnav/eubaby_on.gif";
   lifestyleoff = new Image(146,25);
   lifestyleoff.src = "/ie/images/leftnav/eubaby_off.gif";
   abouton = new Image(146,25);
   abouton.src = "/ie/images/leftnav/about_on.gif";
   aboutoff = new Image(146,25);
   aboutoff.src = "/ie/images/leftnav/about_off.gif";
}
function rollon(imgName) {
   if (document.images) {
      document[imgName].src = eval(imgName + "on.src");
   }
}
function rolloff(imgName) {
   if (document.images) {
      document[imgName].src = eval(imgName + "off.src");
   }
}
function tableCellColorChange(i,stage) {
	if (stage=="in")
		newColor="red";
	else
		newColor="#40FFFF";

	if (document.layers)
        window.document.layers['id' + i].bgColor = newColor;
    else if (document.all)
        window.document.all['id' + i].style.background = newColor;
}
