// JavaScript Document

   
     //grayscale image
    var img1_1 = new Image();
    img1_1.src="/images/cropped/branch.jpg";
   
     //Colored image
    var img2_1 = new Image();
    img2_1.src="/images/cropped/coil.jpg";
   
     
   
     
    function SwapImage(imgName, imgType, imgIndex) {
         var sourceImg = document.images[imgName];
         var targetImg = eval("img" + imgType + "_" + imgIndex);
         sourceImg.src=targetImg.src;
    }
   
     function forwardToPage(pageName) {
          window.location=pageName;
    }
   
     function high(which2){
         theobject=which2;
         highlighting=setInterval("highlightit(theobject)",60);
    }
    function low(which2){
         clearInterval(highlighting);
         which2.filters.alpha.opacity=20;
    }
    function highlightit(cur2){
         if (cur2.filters.alpha.opacity<100)
              cur2.filters.alpha.opacity+=7
         else if (window.highlighting)
              clearInterval(highlighting)
    }
   