/* Copyright 2002 Prairie 21 Incorporated  
		You may freely use this code as long as this copyright notice remains in the
		code.
*/
      var ImageList = new Array()
      
     // window.onload=PreLoad;
      
      function PreLoad() {
      	var i;
      	for (i = 0; i < document.images.length ; i++){
      	  with (document.images[i]){
      	  	if (lowsrc.length > 0){
      	  		ImageList[i] = new Image();
      	  		ImageList[i].src=lowsrc;
      	  		document.images[i].SaveSrc=src;
      	  	}
      	  }
      	}
      }
      
      function SwapImage(strImageName) {
        try{
          with(document.images[strImageName])
            src=lowsrc;
        }
        catch(e){}
      }
      function RestoreImage(strImageName) {
        try{
          with(document.images[strImageName])
      	    src=SaveSrc;
      	}
        catch(e){}
      }
      

      function SwapButtonImage(strButtonID,strImageName) {
        try{
          with(document.getElementById(strButtonID))
            src=strImageName;
      	}
        catch(e){}
      }
      function RestoreButtonImage(strButtonID,strImageName) {
        try{
          with(document.getElementById(strButtonID))
            src=strImageName;
      	}
        catch(e){}
      }
