/**
 * @author michal
 */
$(document).ready(function(){
	
	//bodyback
	var bodyheight = $('#content').height() + 235;
	var realbodyheight = $('body').height();
	//alert(bodyheight + ' - ' + realbodyheight);
	if(bodyheight > realbodyheight){
		$('#e_sign').css('height',bodyheight + 'px');
		$('#contentbackground').css('height',bodyheight-16 + 'px');
	}
	else if(bodyheight <= realbodyheight){
		$('#e_sign').css('height',realbodyheight + 'px');
		$('#contentbackground').css('height',realbodyheight-16 + 'px');
	}
	//end bodyback
	
	//headercarousel
	if($("#jcarouselitems").children().find('li').length > 0){
		$("#jcarouselitems").jCarouselLite({
		    visible: 7,
			auto: 2000,
    		speed: 1000

		});
	}
	//end headercarousel
	
});	//end document ready

//preload images
(function($){var cache=[];$.preLoadImages=function(){var args_len=arguments.length;for(var i=args_len;i--;){var cacheImage=document.createElement('img');cacheImage.src=arguments[i];cache.push(cacheImage);}}})(jQuery)
