<!--

browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));

if (browser) {

   /* set global path */
   iPath = "images/";
   iPrefix = ".jpg";
   iSec = '';
   imgPath = '';
   main = '';

   /* an array which we populate with new Image()'s */
   imgCache = new Array();
   cacheCount = 0;

}

/* the functions */

function PreCache (imgSrc, imgName) {
   imgPath = iPath+imgSrc+iPrefix;

   imgCache[ ++cacheCount ] = new Image ();
   imgCache[ cacheCount ].src = imgPath; 

   if(imgName) {

      /* place in the real image */
      document.images[imgName].src = imgPath;
   }
}

function msover(imgSrc) {

   if (document.images && browser) {
      imgPath = iPath+iSec+"hbt"+imgSrc+iPrefix;
      document.images[imgSrc].src = imgPath;

      if(main && iSec == "main/") {
         imgPath = iPath+iSec+imgSrc+iPrefix;
         document.images["side"].src = imgPath;
      }
   }

   return true;
}

function msoff(imgSrc) {

   if (document.images && browser) {

      imgPath = iPath+iSec+"ubt"+imgSrc+iPrefix;
      document.images[imgSrc].src = imgPath;

      if(main && iSec != "navb/") {
         imgPath = iPath+iSec+"side"+iPrefix;
         document.images["side"].src = imgPath;
      }
   }

   return true;
}

function mainprecache() {

   if (browser) {

      /* precache the images */

   PreCache('navb/hbtmain');
   PreCache('navb/ubtmain', 'btmain');

   PreCache('navb/hbtcont');
   PreCache('navb/ubtcont', 'btcont');

   PreCache('navb/hbtbene');
   PreCache('navb/ubtbene', 'btbene');

   PreCache('navb/hbttest');
   PreCache('navb/ubttest', 'bttest');

   PreCache('navb/hbthome');
   PreCache('navb/ubthome', 'bthome');

   PreCache('navb/hbtpric');
   PreCache('navb/ubtpric', 'btpric');

   }
}

// -->
