		
		var hideLabel = 'schowaj';
		var showLabel = 'pokaż';
		var defaultLabel = hideLabel;
		
		function showHide(className){
			var cookie = $.cookie(className + 'infoVisiable');
			var elements = $('.' + className).children().not('h3').not('a.hide');
		
			if( cookie != undefined )
				var infoVisiable = cookie;
			else
				var infoVisiable = 1;			
			

			if( infoVisiable==0 ){
				elements.css('display','none');
				defaultLabel = showLabel;
			}
			
			$('.' + className).prepend($('<a href="#">' + defaultLabel + '</a>').addClass('hide'));
			
			
			
			$('.' + className + ' a.hide').click(function(){
				if( infoVisiable==1 ){
					elements.hide();
					$(this).text(showLabel);
					infoVisiable = 0;
				}
				else{
					elements.show();
					$(this).text(hideLabel);
					infoVisiable = 1;
				}
				$.cookie(className + 'infoVisiable', infoVisiable, { expires: 100 });
			});
		};
		
		
		$(document).ready(function() {
			showHide('artist');
			showHide('taglistContainer');
		});