﻿// JScript File

    //product sidebar
    function hideAll()
    {
        for(i=1; i<10; i++)
        {
            if(document.getElementById("prodMI"+i))
            {
                document.getElementById("prodMI"+i).style.display="none";
            }
        }
    }
    function menutog(zap)
    {
      if (document.getElementById)
      {
	    var abra = document.getElementById(zap).style;
      if (abra.display == "block") 
      {
       abra.display = "none";
      } 
      else
      {
       abra.display = "block";
      } 
       return false;
     } 
     else
     {
       return true;
     }
    }
    
    function setSubTitle(words)
    {
        document.getElementById("subtitle").innerHTML=words;
    }
    
    //for the gallery pages
    function showbig(filename)
    {   
        document.getElementById("showpic").src=filename;
    }
    function loadGallery()
    {
        showbig(document.getElementById("img1").src);
        captionShow(1);
    }
    function captionShow(number)
    {
        document.getElementById("img1caption").style.display="none";
        document.getElementById("img2caption").style.display="none";
        document.getElementById("img3caption").style.display="none";
        document.getElementById("img4caption").style.display="none";
        document.getElementById("img5caption").style.display="none";
        document.getElementById("img6caption").style.display="none";
        
        var theId="img"+number+"caption";
        
        document.getElementById(theId).style.display="";
    }
