rem: for(var i=0; i < divs.length; i++) { if(divs[i].className.indexOf("swatch") != -1) { divs[i].onclick=clickswatch 
add: var count=0; for(var i=0; i < divs.length; i++) { if(divs[i].className.indexOf("swatch") != -1) { var colorTitle; switch(count) { case 0: colorTitle='green'; break; case 1: colorTitle='blue'; break; case 2: colorTitle='navyblue'; break; case 3: colorTitle='white'; break; case 4: default: colorTitle='brown'; break; } divs[i].title=colorTitle; divs[i].onclick=setcolor; count++; 
context: function swatch(){  var divs=document.getElementsByTagName("*");  for(var i=0; i < divs.length; i++) {    if(divs[i].className.indexOf("swatch") != -1) {      divs[i].onclick=clickswatch    }  }}
meta: 8223	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8223/56d7fa1da23a4760e53689bfa98f74ae2b46099f/colorize.js/clean/trunk/package/webif/files/www/colorize.js