// JavaScript Document used to control the progress bar of the donations
var currentDonations = 1775;



function drawProgressBar(color, width){  
	  var percent = 10;   //initial value if no number is detected for current donations
	  if(currentDonations>0){
			percent = currentDonations/3000 *100; 
		}
		var displayPercent = Math.round(percent*100)/100;
        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"> &nbsp;</div>');  
        document.write('</div>');  
      }  