colorPix = new Array('orangen', 'saeulen', 'pinguine', 'gesicht', 'seerosen', 'blaetter1', 'blaetter2', 'fische1', 'fische2', 'fische3', 'brunnen', 'tisch_rund1', 'tisch_rund2', 'tisch_rund3', 'delphine', 'tisch');

function colorIt(what) {
	for (var i=0; i<colorPix.length; i++) {
	  if (what=='fische') {
			  clearAll();
		document.getElementById('fische1').style.display = 'block';
		document.getElementById('fische2').style.display = 'block';		
		document.getElementById('fische3').style.display = 'block';	
		continue;
	  } 
	  
	  if (what=='tisch_rund') {
			  clearAll();
		document.getElementById('tisch_rund1').style.display = 'block';	
		document.getElementById('tisch_rund2').style.display = 'block';		
		document.getElementById('tisch_rund3').style.display = 'block';				
		continue;
	  }	
	  
	  if (what=='blaetter') {
			  clearAll();
		document.getElementById('blaetter1').style.display = 'block';
		document.getElementById('blaetter2').style.display = 'block';
		continue;
	  } 
	  
	  if (colorPix[i]==what) {
			  clearAll();
		document.getElementById(colorPix[i]).style.display = 'block';
		continue;
	  }   
	  else document.getElementById(colorPix[i]).style.display = 'none';
	}
}

function clearAll() {
	for (var i=0; i<colorPix.length; i++) document.getElementById(colorPix[i]).style.display = 'none';
}

