var PolarityTypes = [];
PolarityTypes.NEGATIVE = 0;
PolarityTypes.NEGATIVE_OR_NEUTRAL;
PolarityTypes.NEUTRAL = 0;
PolarityTypes.POSITIVE_OR_NEUTRAL;
PolarityTypes.POSITIVE = 4;

AggregationType = [];
AggregationType.DAILY = 0;
AggregationType.HOURLY = 1;

DataRowTypes = [];
DataRowTypes.COUNT = 0;
DataRowTypes.PERCENT = 1;

/**
 * Look up query parameter.  Code from http://www.netlobo.com/url_query_string_javascript.html
 */
this.gup = function(name) {
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp( regexS );
	var results = regex.exec( window.location.href );
	if( results == null )
		return "";
	else
		return results[1];
}


function debug(text) {
  document.getElementById("debug").innerHTML = text;
}