Cufon.replace('span.swiss, h1, h2',{
	fontFamily: 'swiss'
});
Cufon.replace('span.menu-gorne-prawa', {
	color: '#ffffff',
	fontFamily: 'swiss',
	textShadow: '1px 1px rgba(0, 0, 0, 0.6)'
});

$(window).load(function() {
	$('#slider-1,#slider-2,#slider-3,#slider-4').nivoSlider({
		effect:'fade',
		slices:1,
		animSpeed:500,
		pauseTime:5000,
		pauseOnHover:false,
		directionNav:false,
		controlNav:true
	});
	var wysokosci_boxow=[$('#box-srodek-1').height(), $('#box-srodek-2').height(), $('#box-srodek-3').height(), $('#box-srodek-4').height()]
	wysokosci_boxow.sort(function(a,b){return b - a});
	$('.box-dluzszy-srodek, .box-srodek').height(wysokosci_boxow[0]);
});


function dokumenty(id)
{
	$('.dokumenty').hide();
	$('#dokumenty'+id).show();
}

$(document).ready(function(){
	$('.facebook-przycisk').hover(
		function(){
			$('.facebook').stop().animate({'left':'0px'},300);
		},
		function(){}
	);
	$('.facebook').hover(
		function(){},
		function(){
			$('.facebook').stop().animate({'left':'-298px'},300);
		}
	);
	$('input[rel], textarea[rel]').focus(function(){
		if ($(this).val()==$(this).attr('rel'))
		{
			$(this).val('');
			$(this).css('color','#000');
		}
	});
	$('input[rel], textarea[rel]').blur(function(){
		if ($(this).val()=='' || $(this).val()==$(this).attr('rel'))
		{
			$(this).val($(this).attr('rel'));
			$(this).css('color','#888');
		}
	});
});
