
/* ***********************************************  */
/* **********   START of Frame Buster  ***********  */
/* ***********************************************  */

function ensureTop()
{
  if (top != self)
    top.location.href = location.href;
}

/* ***********************************************  */
/* **********   END of Frame Buster    ***********  */
/* ***********************************************  */



/* ***********************************************  */
/* *********   START of ImageFunctions  **********  */
/* ***********************************************  */

   var gImageMenuArray = new Array(30);
   var gImageArray1 = new Array(150);
   var gImageArray2 = new Array(150);


   function swapMenuImage(pImageNum, pNewImageNum)
   {
      document.images[pImageNum+1].src = gImageMenuArray[pNewImageNum].src;
   }

   function swap2Images(pImageNum1, pNewImageNum1, pImageNum2, pNewImageNum2)
   {
      document.images[pImageNum1].src = gImageArray1[pNewImageNum1].src;
      document.images[pImageNum2].src = gImageArray2[pNewImageNum2].src;
   }

   function loadMenuImgages(pNumImages, pImagePath, pImageName, pImageExtension)
   {
      for (var i=0; i<pNumImages;i++)
      {
            gImageMenuArray[i] = new Image();
         gImageMenuArray[i].src = pImagePath + "/" + pImageName  + (i) + "." + pImageExtension;
      }
   }
   function loadImgages2(pNumImages, pImagePath, pImageName, pImageExtension)
   {
      for (var i=0; i<pNumImages;i++)
      {
            gImageArray2[i] = new Image();
         gImageArray2[i].src = pImagePath + "/" + pImageName  + (i) + "." + pImageExtension;
      }
   }

/* ***********************************************  */
/* **********   END of ImageFunctions  ***********  */
/* ***********************************************  */



/* ***********************************************  */
/* *************   START of MailTo  **************  */
/* ***********************************************  */

function wrtemlStand(pMlT1, pMlH, pMlT2)
{
  document.write('<a href="mailto:');
  document.write(pMlH);
  document.write('@');
  document.write(pMlT1);
  document.write('.');
  document.write(pMlT2);
  document.write('&#063;subject=Website Enquiry');
  document.write('">');
  document.write(pMlH);
  document.write('@');
  document.write(pMlT1);
  document.write('.');
  document.write(pMlT2);
  document.write('</a>');
}

function wrtemlCust(pMlT1, pMlH, pMlT2, pWrd)
{
  document.write('<a href="mailto:');
  document.write(pMlH);
  document.write('@');
  document.write(pMlT1);
  document.write('.');
  document.write(pMlT2);
  document.write('&#063;subject=Website Enquiry');
  document.write('">');
  document.write(pWrd);
  document.write('</a>');
}

/* ***********************************************  */
/* **************   END of MailTo  ***************  */
/* ***********************************************  */









