/**
 * @author michal
 */
$(document).ready(function(){
	
	//preload images
	jQuery.preLoadImages('/images/mainmenu_aH.jpg','/images/submenu_back.jpg','/images/submenubehind.png');
	//end preload images
	
	//innerfade
	if ($('ul#fadingitems').find('li').length > 1) {
		$('ul#fadingitems').innerfade({
			speed: 2000,
			timeout: 5000,
			type: 'random',
			containerheight: '169px'
		});
	}
	//end innerfade		

});//end document ready

$(window).load(function(){
	
	
	
});//end window load

//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)
//end preload images

