window.addEvent('domready',function() {

var s = $('dodaj_do_ulubionych');

var agent=navigator.userAgent.toLowerCase();
var Mac=(agent.indexOf('mac')!=-1);
var buttonStr=Mac?'Jabłko':'Control';

if (window.sidebar) {
s.style.cursor = 'pointer';
s.onclick = function() {window.sidebar.addPanel(document.title,self.location,'')};
} else if (window.external) {
s.style.cursor = 'pointer';
s.onclick = function() {window.external.AddFavorite(self.location,document.title)};
} else if (window.opera) {
s.style.cursor = 'pointer';
s.onclick = function() {
     var e = document.createElement('a');
     e.setAttribute('href',self.location);
     e.setAttribute('title',document.title);
     e.setAttribute('rel','sidebar');
     e.click();
  }
} else {
	  s.setStyle('text-decoration','none')
	  s.setHTML('Naciśnij '+buttonStr+'+D aby dodać serwis<br />Airlinecity.pl do Ulubionych');
	  s.addClass('dodaj_do_ulubionych_wieksze');
}
})