/* Author: Jan Zieliński
 * Author URL: http://www.janzielinski.eu
 * for: www.monde.pl
*/
$(document).ready(function () {
	
	$("#slider").codaSlider();
	$("#photo-slider").codaSlider();
	$("aside#breadcrumbs ul li:last-child").addClass('last');
	var i = 0;
	
	$("#shortnews li:nth-child(even)").addClass("even");		
	var navheight = $("nav#mainnav").height();
	$.fn.crateRollElement = function(){
		$(this).clone().insertAfter(this).addClass('navclone');
	};

	$("div#boxes li").bind({
		mouseenter: function(){
			$(this).stop(true,true).animate({
				top: '-20'
			}, 150, 'easeInBack');
			$('p', this).stop(true,true).animate({
				color: '#023247'
			});
		},
		mouseleave: function(){
			$(this).stop(true,false).animate({
				top: '0'
			}, 300, 'easeOutBack');
			$('p', this).stop(true,true).animate({
				color: '#666666'
			});
		}
	});
	
	$('.post span.more').click(function(){
		$(this).prev('.txt').children('.extend').slideToggle();
	})
});





















