/*
$(window).load(function(){
	if($('.body').height() < $(window).height()){
		$('.body').height(parseInt($(document).height()));
	}
});
*/

function focusInput(el, txt){
	$(el).css('color', '#505d62');
	if(el.value == txt){
		el.value=''
	}
}
function blurInput(el, txt){
	if(el.value == ''){
		$(el).css('color', '#aebfc8');
		el.value=txt;
	}
}

$(document).ready(function(){
	/*$(".button").hover(
		function(){
			$(this).addClass('hover');
		},
		function(){	
			$(this).removeClass('hover');
		}
	);*/

	$(".comment_add").click(function(){
		$(".base .komentarze .formularz").slideToggle("fast", function () {
			if(!$(".comment_add").hasClass('response')){
				$(".comment_add").addClass('response');
			}
			else{
				$(".comment_add").removeClass('response');
			}
      		});
		return false;
	});
});

$(window).load(function(){
	if($('.content .left').height()<$('.content .right').height()){
		$('.content .left').height($('.content .right').height());
	}


	$('.cycle').cycle({
		fx: 'scrollUp',
		//fx: 'scrollHorz',
		//speed: 300,
		pause: 1,
		cleartypeNoBg: true,
		timeout: 5000
	});
});