function sh(arg)
{
	jQuery('#bigall').children().each(function(){jQuery(this).hide();});
	jQuery(arg).show()
	if(arg=='#big')
	{
		jQuery('#small').css('background-color','white');
		jQuery('#small1').css('background-color','#EBEBEB');
		jQuery('#small2').css('background-color','#EBEBEB');
		jQuery('#small').css('border-bottom','none');
		jQuery('#small1').css('border-bottom','1px solid #C7C7C7');
		jQuery('#small2').css('border-bottom','1px solid #C7C7C7');
		
	}
	if(arg=='#big1')
	{
		jQuery('#small').css('background-color','#EBEBEB');
		jQuery('#small1').css('background-color','white');
		jQuery('#small2').css('background-color','#EBEBEB');
		jQuery('#small1').css('border-bottom','none');
		jQuery('#small').css('border-bottom','1px solid #C7C7C7');
		jQuery('#small2').css('border-bottom','1px solid #C7C7C7');
	}
	if(arg=='#big2')
	{
		jQuery('#small').css('background-color','#EBEBEB');
		jQuery('#small1').css('background-color','#EBEBEB');
		jQuery('#small2').css('background-color','white');
		jQuery('#small').css('border-bottom','1px solid #C7C7C7');
		jQuery('#small1').css('border-bottom','1px solid #C7C7C7');
		jQuery('#small2').css('border-bottom','none');
	}
	
}
var t;
jQuery(document).ready(function(){
	t=jQuery('#title').text();
	anuluj();		
});



function anuluj(){
	var cl=function(){

		var t=jQuery('#title').text();
		jQuery('#title').html('<input style="width : 600px; " maxlenght="250" type="text" id="title_library" name="title_library" value="'+t+'"/><input id="anuluj"  type="image" onclick="" value="anuluj" src="/images/anuluj.jpg"/><input type="image" value="zapisz" src="/images/zapisz.jpg"/>');
		jQuery('#title').unbind('click');		
		jQuery('#anuluj').bind('click',function(){
			anulujclear(); 
			anuluj();
			return false;
			});
	};
	jQuery('#title').bind('click',cl);
}

function anulujclear(){
	
	jQuery('#title').html();
	jQuery('#title').html(t);			
}

function chan(obj) {
	if(jQuery(obj).val()==3)
	{
		jQuery('#dos').removeAttr('disabled');
		
		jQuery('#dos').css('visibility','visible');
		jQuery('#dosdes').css('visibility','visible');
	}
	else
	{
		jQuery('#dos').attr('disabled','disabled');
		
		jQuery('#dos').css('visibility','hidden');
		jQuery('#dosdes').css('visibility','hidden');
	}	
}
