/**
 * @author wojtyczkar
 */
			window.addEvent('domready', function(){
			//rozdziałka
			var flashWidth = 425;
			var flashHeight = 600;
			var flashURL = '';
			var closeLink = new Element('a', {
				'id': 'popupClose',
				'styles': {
					'position': 'absolute',
					'top': '0px',
					'right': '0px',
					'display': 'block',
					'width': '23px',
					'height': '22px'
				},
				'html': '<img src="/static/image/close_label.gif" alt="X">',
				'events': {
					'click': function(){
						kFlashDiv.destroy();
					}
				}
			});
			
			
			
			var rozmiaryOkna = $(window).getSize();
			var yPos = (rozmiaryOkna.y - flashHeight) / 2;
			if (yPos>0) yPos = yPos.toInt(); else yPos = 0;
			
			var kFlashDiv = new Element('div', {
				'id': 'flashPopup',
				'styles': {
					'position': 'absolute',
					'width': flashWidth+'px',
					'height': flashHeight+'px',
					'top': yPos,
					'left': ((rozmiaryOkna.x - flashWidth) / 2),
					'padding': '22px 0 0 0'
					},
				'html':  '<div id="flashContent"><img src="/static/image/pasztet.jpg" alt="Wesołych Świąt!"/></div>'
				});
			closeLink.inject(kFlashDiv);
			kFlashDiv.inject(document.body);
			
			//var myFx = new Fx.Tween(kFlashDiv, {duration: '1000', transition: Fx.Transitions.BounceOut});
			
			//myFx.start('height','0','480');
			
			//myFx.start('border', 'none');
			
			//swfobject.embedSWF(flashURL, 'flashContent', flashWidth, flashHeight, "9.0.0");
			
			});
