/* 
Progess Bar Widget
written by Matthew Harvey (matt at smallish.com) 
Licensed under a Creative Commons Attribution-Share Alike 2.5 License (http://creativecommons.org/licenses/by-sa/2.5/)

*/

function drawProgressBar(color, width, percent) { 
   var pixels = width * (percent / 100);
   document.write('<div class="smallish-progress-wrapper" style="width: ' + width + 'px">'); 
   document.write('<div class="smallish-progress-bar" style="width: ' + pixels + 'px; background-color: ' + color + ';"></div>');
   document.write('<div class="smallish-progress-text" style="width: ' + width + 'px">' + percent + '%</div>');
   document.write('</div>');
 } 