  var beschreibungen = new Array ( );
  var grosse_bilder = new Array ( );
  for (i=0;i<40;i++){
  beschreibungen [i] = "";
  grosse_bilder [i] = new Image () ; 
  grosse_bilder [i].src = "loading.gif" ;
  }

  function showHelp()
  {  
   if ( document.getElementById ) {
     block = document.getElementById("helpText");
  } else {
    block = document.helpText;
  }
  block.style.top = 330 ; 
  }

  function hideHelp()
  {  
   if ( document.getElementById ) {
     block = document.getElementById("helpText");
  } else {
    block = document.helpText;
  }
  block.style.top = -400 ; 
  }

  function showHelpAfterDelay(){ 
          
          window.setTimeout( 'showHelp()' , 15000 ); 

  }
  
 
function zeig_gross_bild ( bild_nummer , bild_name ) {

      var pic_pos = 0 ; 

  window.document.images[0].src = "system/loading.gif" ; 
  
 /* alert ( " bild URL " + grosse_bilder [bild_nummer].src ) ; 

   if ( grosse_bilder [bild_nummer].src == "http://www.metallbau-veit.de/system/loading.gif" ) { 
  if ( grosse_bilder [bild_nummer].src == "file:///G:/webmillers/veit/loading.gif" ) { */ 

  bild_URL = grosse_bilder [bild_nummer].src  ;  
  if ( bild_URL.indexOf ( "loading.gif" ) > 0 ){ 
  	// alert ( "going to load new pic" + bild_nummer + bild_name ) ;   
    if ( document.getElementById ) {
        block = document.getElementById("big_pics_div");
      } else {
        block = document.big_pics_div;
      }
      block.style.zIndex = 10 ; 
      if ( window.pageYOffset ) pic_pos = window.pageYOffset ;
      if ( document.body.scrollTop ) pic_pos = document.body.scrollTop ;
      block.style.top = pic_pos ; 

    grosse_bilder [bild_nummer].src = bild_name ;
      	procname = "zeig_gross_bild(" + bild_nummer + " , '" +  bild_name + "' )";
    /*  alert ( " procname " + procname ) ; */

      window.setTimeout(procname,1000); 

  }
  else {
    if ( grosse_bilder [bild_nummer]. complete == true ) {
    	  	// alert ( "pic now loaded" ) ;   

      window.document.images[0].src = grosse_bilder [ bild_nummer ].src ; 
      if (beschreibungen [bild_nummer]!= "" ) {
        showTooltip(beschreibungen [bild_nummer]); 
      }
          if ( document.getElementById ) {
        block = document.getElementById("big_pics_div");
      } else {
        block = document.big_pics_div;
      }
      block.style.zIndex = 10 ; 
      if ( window.pageYOffset )      pic_pos = window.pageYOffset ;
      if ( document.body.scrollTop ) pic_pos = document.body.scrollTop ;
      block.style.top = pic_pos ; 

    }
    else {
    	// alert ( " setting timer again " + bild_nummer + bild_name  ) ; 
     	procname = "zeig_gross_bild(" + bild_nummer + " , '" +  bild_name + "' )";
      window.setTimeout(procname,1000); 
    }	
  }
}

function versteck_gross_bild (  ) {

 hideTooltip(); 

 if ( document.getElementById ) {
     block = document.getElementById("big_pics_div");
  } else {
    block = document.big_pics_div;
  }
  block.style.zIndex = 1 ; 
  block.style.top = 1600 ; 
}

  function showTooltip(text)
  {  

   if ( document.getElementById ) {
     block = document.getElementById("tooltip");
  } else {
    block = document.tooltipDiv;
  }
  block.innerHTML = text ; 
  block.style.zIndex = 12 ; 
  block.style.top = 100 ; 
  }

  function hideTooltip()
  {  
   if ( document.getElementById ) {
     block = document.getElementById("tooltip");
  } else {
    block = document.tooltipDiv;
  }
  block.style.zIndex = 2 ; 
  block.style.top = 1600 ; 
  }
         