// $Id: Unsupported.js 18180 2009-08-12 21:38:00Z jscharette $

Ls2Kids.Unsupported = function(divId) {
	
	this.divId = divId;
	
	var constant = {
		id:	{
			messageBox:					'messageBox',
			messageBoxBackground:		'messageBoxBackground',
			messageBoxIcon:				'messageBoxIcon',
			userMessage:				'userMessage',
			flashIcon:					'flashIcon'
		},
		text: {
			header:						'Flash 9 or above is required to run this program.',
			userMessage:				'Get Flash <span>here</span>.'
		}
	};
	
	var template = 	'<div id="' + this.divId + '">' +
					'	<div id="' + constant.id.messageBox + '">' +
					'		<div id="' + constant.id.messageBoxBackground + '"></div>' +
					'		<div id="' + constant.id.messageBoxIcon + '"></div>' +
					'		<h2>' + constant.text.header + '</h2>' +
					'		<div id="' + constant.id.userMessage + '">' +
					'			<a href="http://www.adobe.com/go/getflashplayer">' + constant.text.userMessage + '</a>' +
					'			<a id="' + constant.id.flashIcon + '" href="http://www.adobe.com/go/getflashplayer"></a>' +
					'		</div>'
					'	</div>' +
					'</div>';
					
	this.initialize = function() {
		$j(document.body).append(template);
	};
};