document.observe('dom:loaded', function () {
	if (typeof Vx === 'undefined') {	
		var last_update = '';
	
		new PeriodicalExecuter(function () {
			new Ajax.Request('../hidden/readQuotes.asp', {
				method: 'GET',
				parameters: {
					timestamp: new Date().getTime()
				},
				onSuccess: function (t) {
					var strapline = $('strapline'),
						new_strapline = new Element('div', {
							id: 'strapline',
							className: 'strapline',
							style: 'padding:0;margin:0;display:none'
						});
				
					if (typeof strapline === 'undefined' && t.responseText === last_update) {
						return;
					}
				
					last_update = t.responseText;
					new_strapline.update(last_update);
				
					strapline.insert({ after: new_strapline });
					Effect.Fade(strapline, {
						duration: 1,
						afterFinish: function () {
							strapline.remove();
						}
					});
					Effect.Appear(new_strapline, {
						duration: 1
					});
				}
			});
		}, 10);
	}
});