var SiteClass = new Class({

	initialize: function(){
	
		hs.registerOverlay(
			{
				thumbnailId: null,
				overlayId: 'controlbar',
				position: 'top right',
				hideOnMouseOut: true
			}
		);
		
		hs.graphicsDir = 'public/images/highslide/';
		hs.outlineType = 'rounded-white';
		hs.align = 'center';
		hs.captionEval = 'this.thumb.title';
		
		hs.addSlideshow({
			//slideshowGroup: 'group1',
			interval: 5000,
			repeat: false,
			useControls: true,
			fixedControls: 'fit',
			overlayOptions: {
				opacity: .75,
				position: 'bottom center',
				hideOnMouseOut: true
			}
		});

	
	}, // initialize

	domReady: function() {
		
				
		/*
		if($('input_imie')) new OverText($('input_imie'));
		if($('input_nazwisko')) new OverText($('input_nazwisko'));
		if($('input_email')) new OverText($('input_email'));
		if($('input_telefon')) new OverText($('input_telefon'));
		if($('textarea_pytanie')) new OverText($('textarea_pytanie'));
		*/
		
		Cufon.replace('h1#tytul');
		Cufon.replace('h1#tytul2');		
		Cufon.replace('a#back');
		Cufon.now();
		
	} // domReady
	
	

});

var Site = new SiteClass();
window.addEvent('domready', function(){ Site.domReady(); });

