// image preload function

var iPath = 'images/nav_';
var iExt = 'gif';
var suffix = new Array('on', 'off');

function preLoad()
{
  if(document.images)
  {
    var argLen = arguments.length;
    for(var i = 0; i < argLen; i++)
    {
      var arg = arguments[i];
      var sufLen = suffix.length;
      for(j = 0; j < sufLen; j++)
      {
        var suf = suffix[j]
        self[arg + '_' + suf] = new Image();
        self[arg + '_' + suf].src = iPath + arg + '_' + suf + '.' + iExt;
      }
    }
  }
}


// call preLoad function on page load

function onLoad()
{
  preLoad('home_aboutus', 'home_clients', 'home_services', 'home_products', 'home_library', 'home_partners', 'home_clientcare', 'home_contactus', 'sub_individualcoaching', 'sub_groupseminars', 'sub_consultingservices', 'sub_products', 'cufocus_papers', 'cufocus_ads', 'cufocus_artwork', 'cufocus_league');
}

window.onload = onLoad;


// roll over script

function rollOver(iName, iState)
{
  if(document.images && self[iName + '_' + iState])
  {
    document.images[iName].src = self[iName + '_' + iState].src;
  }
}