function bookmark(){
	title = document.title;
	url = location.href;

	var ua = navigator.userAgent.toLowerCase();
	var isKonq = (ua.indexOf('konqueror') != -1);
	var isSafari = (ua.indexOf('webkit') != -1);
	var isMac = (ua.indexOf('mac') != -1);
	var buttonStr = isMac ? 'Command/Cmd' : 'CTRL';

	if(window.external && (!document.createTextNode || (typeof(window.external.AddFavorite) == 'unknown'))) {
		// IE4/Win generates an error when you
		// execute "typeof(window.external.AddFavorite)"
		// In IE7 the page must be from a web server, not directly from a local
		// file system, otherwise, you will get a permission denied error.
		window.external.AddFavorite(url, title); // IE/Win
	} else if(isKonq) {
		alert('Naciśnij CTRL + B aby dodać naszą stronę do ulubionych.');
	} else if(window.opera) {
		var elem = document.getElementById('bookmark');
		elem.setAttribute('href', url);
		elem.setAttribute('title', title);
		elem.setAttribute('rel', 'sidebar');
	} else if(window.home || isSafari) { // Firefox, Netscape, Safari, iCab
		alert('Naciśnij ' + buttonStr + ' + D aby dodać naszą stronę do ulubionych.');
	} else if(!window.print || isMac) { // IE5/Mac and Safari 1.0
		alert('Naciśnij Command/Cmd + D  aby dodać naszą stronę do ulubionych.');
	} else {
		alert('Niestety musisz recznie dodać stronę do ulubionych.');
	}
}
