/* Functions for new style rollovers; these are actual event handlers,   not just called from an event handler. */
function rollover_handler(e) {
  // get the source element in a cross-browser way
  if (window.event) { thisimg = window.event.srcElement;
  } else if (e.target) { thisimg = e.target;
  } else { return;
  }
  thisimg.src = thisimg.src.replace(/(\.[a-z0-9]+)$/i,'_on$1');
}
function rollout_handler(e) {
  // get the source element in a cross-browser way
  if (window.event) { thisimg = window.event.srcElement;
  } else if (e.target) { thisimg = e.target;
  } else { return;
  }
  thisimg.src = thisimg.src.replace(/_on(\.[a-z0-9]+)$/i,'$1');
}


if (document.images)
{
  preload_image_object = new Image();
  // set image url
  image_url = new Array("../Style Library/images/menu01_on.gif",
 						"../Style Library/images/menu02_on.gif",
		  				"../Style Library/images/menu03_on.gif",
						"../Style Library/images/menu04_on.gif",
						"../Style Library/images/menu05_on.gif",
						"../Style Library/images/menu06_on.gif",
						"../Style Library/images/menu07_on.gif",
						"../Style Library/images/sous_menu_01_on.gif",
						"../Style Library/images/sous_menu_02_on.gif",
						"../Style Library/images/sous_menu_03_on.gif",
						"../Style Library/images/sous_menu_04_on.gif",
						"../Style Library/images/sous_menu_05_on.gif"
						);

   var i = 0;
   for(i=0; i<image_url.length; i++) 
	 preload_image_object.src = image_url[i];
}
