var RUNTIME = function() {
	return {
		init: function()
		{
			if (typeof(swfobject) != "undefined")
				this.loadSwf();
			
			if (typeof(Shadowbox) != "undefined")
				this.initLightbox();
		}
		,loadSwf: function()
		{
				swfobject.embedSWF(
						'/index.swf', 
						'website', 
						'100%', 
						'550', 
						'9.0.45', 
		                'swfobject/expressinstall.swf', 
		                {}, 
		                {bgcolor: '#000000', wmode: 'opaque', allowFullScreen: 'false'}, {id: 'website'}
		        );
			
		}
		,initLightbox: function()
		{
			Shadowbox.init({
				players:["iframe"],
				overlayOpacity: 1
			});
		}
		,showStockists: function(font)
		{
			url = (font != null) ? '/stockists/'+font : '/stockists';

			Shadowbox.open({
				content:url,
				player:"iframe",
				height:'580',
				width:'550'
			});
			return false;
		}
	}
}();

RUNTIME.init();