function dodaj() {

	    var tytul = 'Sprawdź PageRank';
	    var adres = 'http://sprawdz-pagerank.pl/';

	    //FireFox
	    if (window.sidebar) {

	        window.sidebar.addPanel(tytul, adres, "");

	    //IE
	    }  if (window.external) {

	        window.external.AddFavorite(adres, tytul);

	    //Opera
	    }  if (window.opera && window.print) {

	        var a = document.createElement('a');
	        a.setAttribute('href', adres);
	        a.setAttribute('title', tytul);
	        a.setAttribute('rel','sidebar');
	        a.click();
	    }
	}
	
window.addEvent('domready', function() {
	var status = {
		'true': ' - ukryj',
		'false': ' - pokaż'
	};
	
	var el = $('url_input');
	if(el){
	var efekt = new Fx.Tween(el);
	$('url_input').addEvent('focus', function(e){
		e.stop();
		// We change the background-color of the element
		efekt.start('background-color', '#E6EFC2');
	});
	
	$('url_input').addEvent('blur', function(e){
		e.stop();
		// We change the background-color of the element
		efekt.start('background-color', '#E0E0E0');
	});
	}
	var top = $('top');
	if(top){
	var top_efekt = new Fx.Tween(top);
	$('top').addEvent('mouseenter',function(e){
		e.stop();
		top_efekt.start('background-color', '#e6ffe3');
	});
	
	$('top').addEvent('mouseleave',function(e){
		e.stop();
		top_efekt.start('background-color', '#f9fbff');
	});
	}
	
	var atf = $('addtofav');
	if(atf){

	atf.fade(0.2);
	$('addtofav').addEvent('mouseenter',function(e){
		e.stop();
		atf.fade(1);
	});
	
	$('addtofav').addEvent('mouseleave',function(e){
		e.stop();
		atf.fade(0.2);
	});
	}
	//-vertical

	if($('more')){
	var myVerticalSlide = new Fx.Slide('more');

	myVerticalSlide.hide();
	$('pomoc').addEvent('click', function(e){
		e.stop();
		myVerticalSlide.toggle();
	});
	
	myVerticalSlide.addEvent('complete', function() {
		$('pomoc_status').set('html', status[myVerticalSlide.open]);
	});
	}
});
