
    /*
	$$('.top_menu').each(function(el){
        
		el.addEvent('mouseenter',function(e){
           el.addClass('top_menu_on');
        });
        el.addEvent('mouseleave',function(e){
		   el.removeClass('top_menu_on');
           el.addClass('top_menu');
        });
    });
	
	
	
	$('naglowek').addEvent('click',function(){
		self.location.href='index.php'
	});
	
	
	if($('right').getSize().y>$('left').getSize().y){
		$('left').style.height = $('right').getSize().y+'px';
		//alert('left'+$('left').getSize().y);
	} else {
		$('right').style.height = $('left').getSize().y+'px';
		//alert('right'+$('right').getSize().y);
	}
	
	
	ReMooz.assign('#main_foto a', {
		'origin': 'img',
		'shadow': 'onOpenEnd', // fx is faster because shadow appears after resize animation
		'resizeFactor': 0.8, // resize to maximum 80% of screen size
		'cutOut': false, // don't hide the original
		'opacityResize': 0.4, // opaque resize
		'dragging': false, // disable dragging
		'centered': true // resize to center of the screen, not relative to the source element
	});
    */
	
window.addEvent('domready', function() {
 

 	$$('div.tips').destroy();
	
	var items = [];
	var i = 0;
	$$('a','img').each(function(el) {
		var rel = el.get('rel')
		if (rel!=null && rel!='') {
			if (!rel.contains('lytebox') && !rel.contains('lyteshow') && !rel.contains('lyteframe')) {
				items[i] = el;
				i++;
			}
		}
	});
	new Tips(items,{
		className: 'tips',
		maxTitleChars: 50,
		showDelay: 200,
		hideDelay: 200
	});

	
	
	if ($('search_input')) {
		this.value=="Szukaj...";
		$('search_input').addEvents({
			'focus': function() {
				if (this.value=="Szukaj...") this.value = '';
			},
			'blur': function() {
				if (this.value=='') {
					this.value = "Szukaj...";
				}
			}
		});
	}
	
	
	
});	
	
	
