	function zwinKatalog(x,y)
	{

		jQuery('.'+x).toggle("fast");
		jQuery('.'+y).hide();
		
	}
	
	function show(x)
	{
			jQuery('.'+x).show("slow");
		
	}
		function showFast(x)
	{
			jQuery('.'+x).show("fast");
		
	}
	
	function hide(x)
	{
			jQuery('.'+x).hide("slow");
		
	}

	function hideFast(x)
	{
			jQuery('.'+x).hide("fast");
		
	}
	
function clearForm() {
		//if (document.form.comment_text.value == 'Kliknij, żeby dodać komentarz') {
			document.form.comment_text.value = "";
		
		//}

	}

function changeFontSize(elementID, fontSize) {
	document.getElementById(elementID).style.fontSize=fontSize;	
	saveMultipleCookie('textSizes', elementID, fontSize);
}



/*
 * jQuery autoResize (textarea auto-resizer)
 * @copyright James Padolsey http://james.padolsey.com
 * @version 1.04
 */

(function(a){a.fn.autoResize=function(j){var b=a.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:25,limit:1000},j);this.filter('textarea').each(function(){var c=a(this).css({resize:'none','overflow-y':'hidden'}),k=c.height(),f=(function(){var l=['height','width','lineHeight','textDecoration','letterSpacing'],h={};a.each(l,function(d,e){h[e]=c.css(e)});return c.clone().removeAttr('id').removeAttr('name').css({position:'absolute',top:0,left:-9999}).css(h).attr('tabIndex','-1').insertBefore(c)})(),i=null,g=function(){f.height(0).val(a(this).val()).scrollTop(10000);var d=Math.max(f.scrollTop(),k)+b.extraSpace,e=a(this).add(f);if(i===d){return}i=d;if(d>=b.limit){a(this).css('overflow-y','');return}b.onResize.call(this);b.animate&&c.css('display')==='block'?e.stop().animate({height:d},b.animateDuration,b.animateCallback):e.height(d)};c.unbind('.dynSiz').bind('keyup.dynSiz',g).bind('keydown.dynSiz',g).bind('change.dynSiz',g)});return this}})(jQuery);




