//slideshow
		function slideShow( Obj ){   
			// Version 0.2; Created by Kow, 2008; http://skyweb.hu/kow   
			var pass = this;   
			// initializing   
			this.curImg = 0;   
			this.slides = Obj;   
			this.slides.each( function( img, index ){    
				if( index > 0 ) img.fade();    
				img.set('morph', { duration: '2000' });   
			}, this);   
			this.next = function(){   
				pass.curImg++;   
				this.slides.each( function( img, index ){    
					img.morph({ opacity: 0 });   
				}, this);   
				if( pass.curImg == this.slides.length ) pass.curImg = 0;   
				this.slides[ pass.curImg ].morph({ opacity: 1 });   
			}   
			this.prev = function(){   
				pass.curImg--;   
				this.slides.each( function( img, index ){    
					img.morph({ opacity: 0 });   
				}, this);   
				if( pass.curImg < 0 ) pass.curImg = this.slides.length - 1;   
				this.slides[ pass.curImg ].morph({ opacity: 1 });   
			}   
		};  
		
// Email obfuscator script 2.1 by Tim Williams, University of Arizona
				// Random encryption key feature by Andrew Moulden, Site Engineering Ltd
				// This code is freeware provided these four comment lines remain intact
				// A wizard to generate this code is at http://www.jottings.com/obfuscator/
				{ coded = "w1iLyiMvF.ExMLKywx@PdibMd.tE"
				  key = "A0gvQMfxwm1phzTqJIcSjVn9ldy3ZWP6OeF54oYt7ikGr8CDBuKNEXL2URHasb"
				  shift=coded.length
				  link=""
				  for (i=0; i<coded.length; i++) {
					if (key.indexOf(coded.charAt(i))==-1) {
					  ltr = coded.charAt(i)
					  link += (ltr)
					}
					else {     
					  ltr = (key.indexOf(coded.charAt(i))-shift+key.length) % key.length
					  link += (key.charAt(ltr))
					}
				  }
				 text1="<a href='mailto:"+link+"'>Projekt i wykonanie: Krzysztof Lityński</a>"
			};
//domready
window.addEvent('domready',function(){
	sshow = new slideShow( $$('div#okienko img') );   
	sshow.next.periodical( 7000, sshow ); 
});
window.addEvent('load',function(){
	$('podpis').set('html',text1);
	
});
