//JavaScript Graph-it! (Absolute)- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

var graphimageP="../GeneratedItems/funds.gif"

//DEFINE GRAPH VALUES [Item name, Absolute value]
var graphv=new Array()
graphv[0]=["Donated & Pledged:","418,504"]
graphv[1]=["Current Goal:","500,000"]

function graphitP(g,gwidth){

outputP='<table border="0" cellspacing="0" cellpadding="0">'
for (i=0;i<g.length;i++){
calwidthP=gwidth*(parseInt(g[i][1])/100)
outputP+='<tr><td>'+g[i][0]+'</td><td><img src="'+graphimageP+'" width="'+calwidthP+'" height="20"> '+g[i][1]+'</td></tr>'
}
outputP+='</table>'
document.write(outputP)
}

//CALL GRAPHIT FUNCTION
//graphitP(NAME OF GRAPH ARRAY, MAXIMUM WIDTH IN PIXELS)
graphitP(graphv,130)

