
/* ***********************************************  */
/* **********   START of Frame Buster  ***********  */
/* ***********************************************  */

function ensureTop()
{
  if (top != self)
    top.location.href = location.href;
}



var vNems = "http://www.nems.com.au";
var vParent = "/index.html"
var vSubPath = vNems;
var vSetPath = vSubPath + vParent;

function ensureNems()
{

  if (top.location.href.search(vSubPath) == -1)
    top.location.href = vSetPath;
}





/* ***********************************************  */
/* **********   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 Browser Detect  **********  */
/* ***********************************************  */

//  document.write(BrowserDetect);
//  document.write('\n');

/* ***********************************************  */
/* **********   END of Browser Detect  ***********  */
/* ***********************************************  */





/* ***********************************************  */
/* *************   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('">');
  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('">');
  document.write(pWrd);
  document.write('</a>');
}

/* ***********************************************  */
/* **************   END of MailTo  ***************  */
/* ***********************************************  */







/* ***********************************************  */
/* *********   START of Setting Layout  **********  */
/* ***********************************************  */


function topMenu()
{
  document.write('<table class="menu" align="center" width="830" border="0" cellpadding="3" cellspacing="3">');
  document.write('<TR align="center" valign="top">');
  document.write('<TD align="center" valign="top"><A  href="../index.html" target="_parent">');
  document.write('<ACRONYM title="Home page">');
  document.write('<IMG src="../i/menu/menu0.gif" alt="Home" align="center" border="0" onmouseover="javascript:swapImage(0, 1);" onmouseout="javascript:swapImage(0, 0);">');
  document.write('</ACRONYM></A></TD>');
  document.write('<TD align="center" valign="top">');
  document.write('<A href="contact.html" target="_parent">');
  document.write('<ACRONYM title="Contact Details"><IMG src="../i/menu/menu2.gif" alt="Contact"');
  document.write('align="center" border="0" onmouseover="javascript:swapImage(1, 3);"');
  document.write('onmouseout="javascript:swapImage(1, 2);">');
  document.write('</ACRONYM></A></TD>');
  document.write('<TD align="center" align="center" valign="top">');
  document.write('<A  href="products.html" target="_parent">');
  document.write('<ACRONYM title="Products">');
  document.write('<IMG src="../i/menu/menu4.gif" alt="Products" align="center" border="0" onmouseover="javascript:swapImage(2, 5);" onmouseout="javascript:swapImage(2, 4);">');
  document.write('</ACRONYM></A></TD>');
  document.write('<TD align="center" valign="top">');
  document.write('<A  href="directions.html" target="_parent">');
  document.write('<ACRONYM title="Directions to the shopfront">');
  document.write('<IMG src="../i/menu/menu6.gif" alt="Directions" align="center" border="0"');
  document.write('onmouseover="javascript:swapImage(3, 7);" onmouseout="javascript:swapImage(3, 6);">');
  document.write('</ACRONYM></A></TD>');
  document.write('<TD align="center" valign="top">');
  document.write('<A  href="links.html" target="_parent">');
  document.write('<ACRONYM title="Links to other websites">');
  document.write('<IMG src="../i/menu/menu8.gif" alt="Links" align="center" border="0"');
  document.write('onmouseover="javascript:swapImage(4, 9);" onmouseout="javascript:swapImage(4, 8);">');
  document.write('</ACRONYM></A></TD>');
  document.write('</TR>');
  document.write('</table>');
}


function startStructure()
{
  document.write('<TABLE class="table" width="830" align="center" cellpadding="3" cellspacing="3" border="0">');

  document.write('<tr>');
  document.write('<td align="center" class="titlebanner">');
  document.write('<IMG src="../i/banner.jpg" align="center" border="0" class="titlebanner" vspace="5" hspace="0">');
  document.write('</td>');
  document.write('</tr>');

  document.write('<tr>');
  document.write('<td align="center"  class="menu">');
//  document.write('<iframe src="navlinks-top.html" scrolling="no" width="830" height="200" frameborder="1" align="texttop"></iframe>');
  topMenu();

  document.write('</td>');
  document.write('</tr>');

  document.write('<tr class="table">');
  document.write('<td valign="top" align="center">');

  document.write('<!--   MAIN EDIT AREA   -->');

}



function endStructure(pTitle)
{
  document.write('<!-- END MAIN EDIT AREA -->');
  document.write('</td>');

  document.write('</tr>');

  document.write('<tr>');
  document.write('<td align="center" class="default">');
  document.write('This website is supplied by');
  document.write('<br>');
  document.write('<a href="../../index.html" target="_blank">');
  document.write('<ACRONYM title="This website is supplied by New England Marketing Services">');
  document.write('<IMG src="../i/menu/suppliedbynems.gif" border="0" alt="New England Marketing Services" align="top">');
  document.write('</ACRONYM>');
  document.write('</a>');
  document.write('<br><br>');
  document.write('&#169;Copyright 2007');
  document.write('<br>');
  document.write('</td>');
  document.write('</tr>');

  document.write('</table>');
}




function topMenuIndex()
{
  document.write('<table class="menu" align="center" width="830" border="0" cellpadding="3" cellspacing="3">');
  document.write('<TR align="center" valign="top">');
  document.write('<TD align="center" valign="top"><A  href="index.html" target="_parent">');
  document.write('<ACRONYM title="Home page">');
  document.write('<IMG src="i/menu/menu0.gif" alt="Home" align="center" border="0" onmouseover="javascript:swapImage(0, 1);" onmouseout="javascript:swapImage(0, 0);">');
  document.write('</ACRONYM></A></TD>');
  document.write('<TD align="center" valign="top">');
  document.write('<A href="pages/contact.html" target="_parent">');
  document.write('<ACRONYM title="Contact Details"><IMG src="i/menu/menu2.gif" alt="Contact"');
  document.write('align="center" border="0" onmouseover="javascript:swapImage(1, 3);"');
  document.write('onmouseout="javascript:swapImage(1, 2);">');
  document.write('</ACRONYM></A></TD>');
  document.write('<TD align="center" valign="top">');
  document.write('<A  href="pages/products.html" target="_parent">');
  document.write('<ACRONYM title="Products">');
  document.write('<IMG src="i/menu/menu4.gif" alt="Products" align="center" border="0" onmouseover="javascript:swapImage(2, 5);" onmouseout="javascript:swapImage(2, 4);">');
  document.write('</ACRONYM></A></TD>');
  document.write('<TD align="center" valign="top">');
  document.write('<A  href="pages/directions.html" target="_parent">');
  document.write('<ACRONYM title="Directions to the shopfront">');
  document.write('<IMG src="i/menu/menu6.gif" alt="Directions" align="center" border="0"');
  document.write('onmouseover="javascript:swapImage(3, 7);" onmouseout="javascript:swapImage(3, 6);">');
  document.write('</ACRONYM></A></TD>');
  document.write('<TD align="center" valign="top">');
  document.write('<A  href="pages/links.html" target="_parent">');
  document.write('<ACRONYM title="Links to other websites">');
  document.write('<IMG src="i/menu/menu8.gif" alt="Links" align="center" border="0"');
  document.write('onmouseover="javascript:swapImage(4, 9);" onmouseout="javascript:swapImage(4, 8);">');
  document.write('</ACRONYM></A></TD>');
  document.write('</TR>');
  document.write('</table>');
}




function startStructureIndex()
{
  document.write('<TABLE class="table" width="830" align="center" cellpadding="3" cellspacing="3" border="0">');

  document.write('<tr>');
  document.write('<td align="center" colspan="2"  class="titlebanner">');
  document.write('<IMG src="i/banner.jpg" align="center" border="0" class="titlebanner" vspace="5" hspace="0">');
  document.write('</td>');
  document.write('</tr>');

  document.write('<tr>');
  document.write('<td align="center"  class="menu">');
//  document.write('<iframe src="pages/navlinks-top.html" scrolling="no" width="830" height="100" frameborder="1" align="texttop"></iframe>');
  topMenuIndex();
  document.write('</td>');
  document.write('</tr>');


  document.write('<tr class="table">');
  document.write('<td valign="top" align="center">');

  document.write('<!--   MAIN EDIT AREA   -->');

}



function endStructureIndex(pTitle)
{
  document.write('<!-- END MAIN EDIT AREA -->');
  document.write('</td>');
  document.write('</tr>');

  document.write('<tr>');
  document.write('<td align="center" class="defaultbg">');
  document.write('This website is supplied by');
  document.write('<br>');
  document.write('<a href="../index.html" target="_blank">');
  document.write('<ACRONYM title="This website is supplied by New England Marketing Services">');
  document.write('<IMG src="../i/menu/suppliedbynems.gif" border="0" alt="New England Marketing Services" align="top">');
  document.write('</ACRONYM>');
  document.write('</a>');
  document.write('<br><br>');
  document.write('&#169;Copyright 2007');
  document.write('<br>');
  document.write('</td>');
  document.write('</tr>');
  document.write('</table>');
}

/* ***********************************************  */
/* **********   END of Setting Layout  ***********  */
/* ***********************************************  */





