/*
  MenuSwap
  Version 1.0
  23th June 2010
  Mark Gervais, http://www.tohimbeglory.org
  
 Description:
   Defines a function used for mouse rollover in menus.
 
 Instructions:
   Include this script at the bottom of the "Body" section.
   The variable __navi_init_done__ is also used in MenuInit.
*/

preLoadNaviImages = function() {
for(var i=0; i<document.images.length; i++) {
 if (document.images[i].name.indexOf("CM4all_") == 0) {
  eval(document.images[i].name + "_hi = new Image()");
  eval(document.images[i].name + "_no = new Image()");
  var thenormsrc;
  var thenormsrcUrl;
  if (typeof(URL) != "undefined") {
   thenormsrcUrl = new URL(document.images[i].src, true, true);
} else if (typeof(window.top.URL) != "undefined") {
   thenormsrcUrl = new window.top.URL(document.images[i].src, true, true);
}
  if (thenormsrcUrl) {
   thenormsrcUrl.removeAllParams();
   thenormsrc = thenormsrcUrl.toString();
} else {
   thenormsrc = document.images[i].src;
}
  eval(document.images[i].name + "_hi.src = '" + thenormsrc.substring(0,thenormsrc.length-6) + "_m.gif'");
  eval(document.images[i].name + "_no.src = '" + thenormsrc.substring(0,thenormsrc.length-6) + "_n.gif'");
}
}
__navi_init_done__ = true;
}
setTimeout("preLoadNaviImages();", 250);

