var add = '';

if(typeof addButton == 'undefined'){
  var addButton = '1';
}
else
{
	addButton = parseInt(addButton.replace(/[^\d]/gi,''));
	if (isNaN(addButton)) addButton = '1'; 
}

if(typeof hrefTitle != 'undefined'){
  add += '&t='+hrefTitle;
}


if(typeof rssUrl != 'undefined')
	document.write('<a href="http://www.startowy.com/dodajrss.html?zrodlo='+ rssUrl +'" title="Dodaj RSS do Startowy.com" target="_blank"><img src="http://img.startowy.com/buttons/st'+ addButton +'.gif" alt="[+]Startowy.com" title="Dodaj RSS do Startowy.com" style="border:none;"></a>');
else if (typeof hrefUrl != 'undefined')
	document.write('<a href="http://www.startowy.com/dodajlink.html?url='+ hrefUrl + add +'" title="Dodaj link do Startowy.com" target="_blank"><img src="http://img.startowy.com/buttons/st'+ addButton +'.gif" alt="[+]Startowy.com" title="Dodaj link do Startowy.com" style="border:none;" /></a>');
else
	document.write('<a href="http://www.startowy.com/" title="Dodaj do Startowy.com" target="_blank"><img src="http://img.startowy.com/buttons/st'+ addButton +'.gif" alt="[+]Startowy.com" title="Dodaj link do Startowy.com" style="border:none;"></a>');