// JavaScript Document

 var img = Null, interval=100;


 function GrowIn(ImgId,ImgSrc){

      old = document.getElementById('company' );
      old.style.width  = '180px';
      old.style.height = '400px';
      old = document.getElementById('services');
      old.style.width  = '180px';
      old.style.height = '400px';
      old = document.getElementById('showcase');
      old.style.width  = '180px';
      old.style.height = '400px';

      img = document.getElementById(ImgId);
      img.src =  GrowIn.arguments[1];
      img.style.width = '180';
      img.style.height= '400';
      setTimeout(iResize,interval);
      }

 function iResize(){
      wstr = img.style.width;
      w    = wstr.substring(0,3);
      w    = parseInt(w);
      w   += 2;

      hstr = img.style.height;
      h    = hstr.substring(0,3);
      h    = parseInt(h);
      h   += 4;

      img.style.width  = w+'px';
      img.style.height = h+'px';

      if (w<=200){
         setTimeout(iResize,interval);
         }
      else {
         img.style.width  = '200px';
         img.style.height = '445px';
         }
      }

 function ShrinkOut(ImgId,ImgSrc){
          var img = document.getElementById(ImgId);
          img.src =  ShrinkOut.arguments[1];
          img.style.width  = '200';
          img.style.height = '445';
          setTimeout(rResize,interval);
          }

 function rResize(){
          wstr = img.style.width;
          w    = wstr.substring(0,3);
          w    = parseInt(w);
          w -= 5;

          hstr = img.style.height;
          h    = hstr.substring(0,3);
          h    = parseInt(h);
          h -= 8;

          img.style.width  = w+'px';
          img.style.height = h+'px';

          if (w>180){
             setTimeout(rResize,interval);
             }
          else {
             img.style.width  = '180px';
             img.style.height = '400px';
             }
          }

