	//currentMoneyRaised is obviously the proceeds that have been raised by the campaign.
	//campaignGoal is the total amount of money trying to reach
	var currentMoneyRaised 	= 19300000;			//**change this variable when updating the campaign's raised funds**
	var campaignGoal 		= 19000000;
	var graphTitle			= "Campaign Status";

	/**Caution**/
	//Caution against editing the following variables, could result in breaking the application
	var totalRaisedTitle	= currentMoneyRaised;
	var yetToRaiseTitle		= campaignGoal-currentMoneyRaised;
	var dimensionX 			= 95;
	var dimensionY 			= 200;
	var status				= (currentMoneyRaised/campaignGoal)*100;
	
	var raised = shrinkNum(yetToRaiseTitle);
	var currentFunds = shrinkNum(totalRaisedTitle);
	
	//shrinks numbers, example 18900000 to 18.9M
	function shrinkNum(num) {
		var units = 'M';
		shrunk = num*.000001;
		if ( shrunk < 1 ) {
			shrunk = num*.001;
			units = 'K';
		}
		if( shrunk < 1 ) {
			shrunk = num;
			units = '';
		}
		shrunk = Math.round((shrunk*10))*.1;
		shrunk = shrunk+'';	//data casting
		shrunk = shrunk.substring(0,4)+units;
		return shrunk;
	}
	if( typeof window.onload == 'function' ) {
		x = new Object();
		x['ol'] = window.onload;
		window.onload = function() {
			x['ol']();	
			loadGraph();
		}
	} else {
		window.onload = loadGraph;
	}
	function loadGraph() {
		var imgSrc = "http://chart.apis.google.com/chart?cht=bvs&"+
		"chd=t:"+status+"&"+
		"chs="+dimensionX+"x"+dimensionY+"&chxt=y&chxl=0:|0|9.5M|19M&"+
		"chl= $ "+currentFunds;
		var img = document.createElement('img');
		img.src = imgSrc;
		var div = document.createElement('div');
		div.style.background = "#FFF";
		div.style.margin = "10px 0 0 0";
		var b = document.createElement('b');
		b.style.display = "block";
		b.style.textAlign = "center";
		b.appendChild(document.createTextNode(graphTitle));
		div.appendChild(b);
		div.appendChild(img);
		document.getElementById('sidebar').appendChild(div);
	}