function gn_addScript(url, callback) {
	// Create a new script element and set its source
	var head = document.getElementsByTagName("head")[0];
	var script = document.createElement("script");
	script.src = url;

	// Attach handlers for all browsers
	script.onload = script.onreadystatechange = function(){
		if (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") {
			if (typeof callback == 'function') callback.call()

			// Handle memory leak in IE
			script.onload = script.onreadystatechange = null;
			head.removeChild(script);
		}
	};

	head.appendChild(script);
}

// Drop in QuantCast tag
gn_addScript(
	"http://edge.quantserve.com/quant.js",
	function() {
		_qoptions={qacct:"p-918WqlLlRDox2"};
		quantserve();
		_qoptions={qacct:"p-04kAgiUBi0LNA"};
		quantserve();
	}
);

// Drop in Beacon tag
gn_addScript(
	(document.location.protocol == 'https:' ? 'https://sb' : 'http://b')+".scorecardresearch.com/beacon.js",
	function() {
		COMSCORE.beacon({ c1:2, c2:6036161, c3:"", c4:"", c5:"", c6:"", c15:"" })
	}
);

// Drop in GA tag
gn_addScript(
	(document.location.protocol == 'https:' ? 'https://ssl' : 'http://www') + ".google-analytics.com/ga.js",
	function() {
		var pageTracker = _gat._getTracker("UA-94323-62");
		pageTracker._initData();
		pageTracker._trackPageview();
	}
);
