//======================================================================================================//
//  Filename	: imageSwap.js										//
//  Release	: 2002 12-18 										//
//													//
//  1. Include function for communication between scripts.						//
//  2. Swap function, just a simple image swap.								//
//======================================================================================================//


//======================================================================================================//
// Global Functions.											//
//======================================================================================================//
function include(fileName)
{
  document.write('<script type="text/javascript" src="' +fileName+ '"></script>');
}

//======================================================================================================//
// Simple image swap.											//
//======================================================================================================//
function swap(img, ref)
{
  if (document.images[img] != null)
  {
    document.images[img].src = "img/" +ref;
  }
}


