<!--





var isNav, isIE, intervalID, is4

var coll = "";

var styleObj = "";

var i = 1;

if (parseInt(navigator.appVersion) >= 4) {

  is4 = true;

  if (navigator.appName == "Netscape") {

    isNav = true;

  } else {

    isIE= true;

    coll = "all.";

    styleObj = ".style";

  }

}



var currentView = "";

var imageArray = new Array();

var onArray = new Array();     

var offArray = new Array();     

var currentArray = new Array();       

var loadTest = 0;

var lastImage = null;

var browserQual = 0;



if (is4) {

   browserQual = 1;

}





function on(imageName) {

  if (loadTest && browserQual) {



    if (lastImage && (lastImage != imageName)) off(lastImage);



    if (imageName != currentView && 

        imageName != 'noReplace' &&

        imageName != '' ) {

      

      if (onArray[imageName] != null) {

        document.images[imageName].src = onArray[imageName].src;

        lastImage = imageName;

      }

    }

  }

}



function off(imageName) {

  if (loadTest && browserQual) {

  

    if (imageName != currentView && 

        imageName != 'noReplace' &&

        imageName != '' ) {



      if (offArray[imageName] != null) {

         if (document.images[imageName] != null ){

           document.images[imageName].src = offArray[imageName].src;

         }

      }

    }

  }

}



function click( imageName ) {

  if (! loadTest && ! browserQual) {

     return;

  }

  if ( imageName == currentView ){

    return false;

  }

  if (imageName != 'noReplace') {

    if (offArray[currentView] != null && 

        currentView != "" && 

        document.images[currentView] != null ) {



      document.images[currentView].src = offArray[currentView].src;

    }



    if (currentArray[imageName] != null) {

      document.images[imageName].src = currentArray[imageName].src;

      currentView = imageName;

    }



  } else {

    

    for (i=0; i<document.images.length; i++) {



      if ( document.images[i].name != 'noReplace' &&

           document.images[i].name != '' ) {

        document.images[i].src = offArray[i].src

        

      }

    }

  }

  return true;

}



function load( thisPage, imagePath, onI, offI, activeI ) {

  currentView = thisPage;



  if ( ! document.images && ! browserQual) {

    return;

  }

  x=0;

  for (i=0; i<document.images.length; i++) {

    if (document.images[i].name != 'noReplace' &&

        document.images[i].name != '' ) {

      imageArray[x] = document.images[i].name;

      x++;

    }

  }

 

  for (i = 0; i < imageArray.length; i++) {

      

    onArray[imageArray[i]] = new Image();

    onArray[imageArray[i]].src = imagePath + imageArray[i] + onI;

    

    offArray[imageArray[i]] = new Image();

    offArray[imageArray[i]].src = imagePath + imageArray[i] + offI;



    currentArray[imageArray[i]] = new Image();

    currentArray[imageArray[i]].src = imagePath + imageArray[i] + activeI;

  }

    

  if (currentArray[thisPage]) {

    document.images[thisPage].src = currentArray[thisPage].src;

  }

  loadTest = 1;

 click( currentView );

}



//-->

