// print the bar with the icons
function show_bar()
{
	document.write('<div class="socbar">');
	
	var text;

	for (var i in sites)
	{
		switch (sites[i])
		{
			case 'iwiw':
				text = '<a href="http://iwiw.hu/pages/share/share.jsp?u=' + url + '&t=' + title + '">';
				break;
			case 'startlap':
				text = '<a href="http://www.startlap.hu/sajat_linkek/addlink.php?url=' + url + '&title=' + title + '">';
				break;
			case 'googlebuzz':
				text = '<a href="http://www.google.com/buzz/post?url=' + url + '&message=' + title + '">';
				break;
			case 'delicious':
				text = '<a href="http://www.delicious.com/save" onclick="window.open(\'http://www.delicious.com/save?v=5&noui&jump=close&url=\'+' + url + '+\'&title=\'+' + title + ', \'delicious\',\'toolbar=no,width=550,height=550\'); return false;">';
				break;
			case 'digg':
				text = '<a href="http://digg.com/submit?url=' + url + '">';
				break;
			case 'facebook':
				text = '<a href="http://www.facebook.com/sharer.php?u=' + url + '&t=' + title + '">';
				break;
			case 'linkedin':
				text = '<a href="http://www.linkedin.com/shareArticle?mini=true&url=' + url + '&title=' + title + '">';
				break;
			case 'stumbleupon':
				text = '<a href="http://www.stumbleupon.com/submit?url=' + url + '&title=' + title + '">';
				break;
			case 'twitter':
				text = '<a href="http://twitter.com/share?url=' + url + '&title=' + title + '">';
				break;
			default:
				text = '<a href="#">';
		}
		text += '<img src="socbar/icons/' + icons + '/' + sites[i] + '.png" alt="' + sites[i] + '" /></a>';
		document.write(text);
	}
	
	document.write('</div>');
}

