var ActivityIndicator = {
	options: {
		segments: 10,
		width: 8,
		length: 10,
		color: '4fc6db'
	},
	show: function(msg){
		msg = msg || '';
		var jq = $('#ActivityIndicator');
		if (jq.length == 0){
			// No existing activity indicator, create on
			jq = $('<div id="ActivityIndicator">');

			jq.append($('<div>').css({fontSize: '12pt'}).text(msg));
			$('body').append(jq);

			// Do the styling
// 			gfx.css({width: '60px', height: '60px'});
			jq.css({position: "fixed", top: "0px", left: "0px", backgroundColor: "white", opacity: "0.8", zIndex: 99999,  right: "0px", bottom: "0px", width: "100%", textAlign: "center", padding: "30px"});
			//jq.activity(this.options);
			jq.append($('<img src="/images/ajax-loader.gif">'));
		} else {
			// just update text
			$('.Text', jq).text(msg);
		}
	},
	hide: function(){
		var jq = $('#ActivityIndicator');
		//$('.Gfx', jq).activity(false);
		jq.remove();
	}
}

