if(typeof(calculation_host) == "undefined"){
	var calculation_host = "http://climateculture.com/"
}

JSONscriptRequest.scriptCounter = 1;
function JSONscriptRequest(fullUrl) {
    var noCacheIE = 'noCacheIE=' + (new Date()).getTime();
    var headLoc = document.getElementsByTagName("head").item(0);
    var scriptId = 'JscriptId' + JSONscriptRequest.scriptCounter++;
    var scriptObj = document.createElement("script");
    scriptObj.setAttribute("type", "text/javascript");
    scriptObj.setAttribute("charset", "utf-8");
		var inBetweenCharacter = fullUrl.match(/\?/) ? '&' : '?';
    scriptObj.setAttribute("src", fullUrl + inBetweenCharacter + noCacheIE);
    scriptObj.setAttribute("id", scriptId);
    headLoc.appendChild(scriptObj);
}

JSONscriptRequest.prototype.removeScriptTag = function () {
    this.headLoc.removeChild(this.scriptObj);  
}

var javascript_files = ["javascripts/jquery.min","community/reductions/"+commitment_name,"javascripts/widget/show"];
for (var index = 0; index <= 2; index++){
	new JSONscriptRequest(calculation_host+javascript_files[index]+".js");
}

document.write("<div id='pagecontainer'></div>")

