<!-- Hide script from older browsers
    /* global variables */
	var mouseInImg = "false";
	
	function hide() {
		document.getElementById("hide").style.display = "none";
		document.getElementById("products").style.border = "solid 0px black";
	}
	function unHide() {
		var the_products = document.getElementById("products"); 
 
 		document.getElementById("hide").style.display = "block";
		the_products.style.borderTop = "1px solid black";
		the_products.style.borderLeft = "1px solid black";
		the_products.style.borderRight = "1px solid black"; 
   }
   function showSubmenu() {
	    document.getElementById("products").style.display = "block";  
   }
   function showPicture(evt, pic) {
      var frame = document.getElementById("picFrame")
	  var src = document.getElementById("picFrameSrc");  
	  var x, y, cw, ch;
	  var arVersion = navigator.appVersion.split("MSIE");
      var version = parseFloat(arVersion[1]);
	  
	  /* center it and resize the frame to fit */
	  if (navigator.appName == "Microsoft Internet Explorer") {
	      if (version < parseFloat("7")) {
		  	/* IE 6 doesn't return good values, and doesn't seem to work
			   with style.left.  As of Oct 2010, it only has 5% of the
			   market, so I'm just not going to support it */
			 return; 
		  } else {
        	  ch = document.documentElement.clientHeight;
        	  cw = document.documentElement.clientWidth;
		  }
	  } else {
    	  cw = window.innerWidth;
    	  ch = window.innerHeight;
	  }

      src.src = pic;
      frame.style.display = "block"; /* unhide it */
	  
	  x = (cw - src.width) / 2;
	  y = (ch - src.height) / 2;
	  
	  /* check for bogus numbers */
	  x = (x < 0) ? 0 : x;
	  y = (y < 0) ? 0 : y;
  	  x = (x > cw) ? 0 : x;
  	  y = (y > ch) ? 0 : y;

	  frame.style.left = x + "px";
	  frame.style.top = y + "px";
	  frame.style.width = src.width;
	  frame.style.height = src.height;
	  
  	  /* see if the mouse is over the big picture */
	  if ((evt.clientX > x && evt.clientX < (x + src.width)) && (evt.clientY > y && evt.clientY < (y + src.height))) {
	  	mouseInImg = "true";
	  } else {
	    mouseInImg = "false";
	  }

    }
	function hidePicture(img) {
	   if (img.id == "picFrameSrc" || mouseInImg == "false") {
		   document.getElementById("picFrame").style.display = "none"; 
	   }
    }	
	function preLoad(img) {
	   var preload_image;
	   
	   /* first preload all the images that I'll use in showPicture */
	   for(var i=0; i<img.length; i++) {
		   preload_image = new Image();
    	   preload_image.src= img[i]; 
	   }
	}
	function fixPNG() {
	   var arVersion = navigator.appVersion.split("MSIE");
       var version = parseFloat(arVersion[1]); 

	   /* Now if we're running an old version of the browser, fix
	      the png transparency problem */
	   if ((version >= parseFloat("5.5")) &&  (version <= parseFloat("7")) && (document.body.filters)) {
         for(var i=0; i<document.images.length; i++) {
            var img = document.images[i]
            var imgName = img.src.toUpperCase()
            if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
               var imgID = (img.id) ? "id='" + img.id + "' " : ""
               var imgClass = (img.className) ? "class='" + img.className + "' " : ""
               var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
               var imgStyle = "display:inline-block;" + img.style.cssText 
               if (img.align == "left") imgStyle = "float:left;" + imgStyle
               if (img.align == "right") imgStyle = "float:right;" + imgStyle
               if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
               var strNewHTML = "<span " + imgID + imgClass + imgTitle
               + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
               + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
               + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
               img.outerHTML = strNewHTML
               i = i-1
            }
         }
       }
	}
	function validateContactForm() {
		var email = document.getElementById("email");
		if (email.value == "") {
			alert("Please supply an email address.");
			document.all.email.focus();
			return false;
		}
		return true;		
	}
-->
