      var ns4 = (document.layers)? true:false
      var ie4 = (document.all)? true:false

      if (document.images)
      {
		   /* Menu options at the top of the page */							
         aboutUsoff = new Image(101,42);
         aboutUsoff.src = "Images/AboutUs_OFF.gif";
         aboutUson = new Image(101,42);
         aboutUson.src = "Images/AboutUs_ON.gif";
   						
         ourRangeoff = new Image(104,41);
         ourRangeoff.src = "Images/Range_OFF.gif";
         ourRangeon = new Image(104,41);
         ourRangeon.src = "Images/Range_ON.gif";
						
         contactUsoff = new Image(123,40);
         contactUsoff.src = "Images/Contact_OFF.gif";
         contactUson = new Image(123,40);
         contactUson.src = "Images/Contact_ON.gif";
      }

      function imgOn(imgName, StatusComment)
      {
            if (document.images)
            {
                document[imgName].src = eval(imgName + "on.src");       
            }
            window.status=StatusComment;
      }

     function imgOff(imgName)
     {
            if (document.images)
            {
                document[imgName].src = eval(imgName + "off.src");
            }
            window.status="";
     }
	 
	 /* Inserts the email address using Javascript so as to disguise it from Spam Robots */
	 /* Note: The 'linkParams' is used to add additional parameters to the A tag */
	 function InsertMailLink( linkParams )
	 {
	    document.write ('<A ' + linkParams );
		document.write (' HREF="mai');
        document.write ('lto:leanne');
        document.write ('@');
        document.write ('mermaidschoolwear');
		document.write ('.com.au">leanne');
        document.write ('@');
        document.write ('mermaidschoolwear');		
        document.write ('.com.au</A>');

	  }	
		
