function onLoaded(){
	//alert($('#content_sub_right').filter('.blok_hor').width() )
	
	//SideBlocks Hover
	$('div .blok_hor').hover(function() {
		$(this).find('.smallCaption').animate({'bottom': 5}, {duration:400});
	},
	function() {
		$(this).find('.smallCaption').animate({'bottom': 0}, {duration:300});
	});
	
	//LeftBlocks Hover
	$('#content_sub_left .mouseOver').hover(function() {
			$(this).css({'color': '#000000' });
			Cufon.replace('#content_sub_left h2',{ fontFamily:'museo'});
		},
		function() {
			$(this).css({'color': '#969696' });
			Cufon.replace('#content_sub_left h2',{ fontFamily:'museo'});
		}
	)
	
	
	/*
	$('div .item').hover(function() {
		$(this).find('.caption').animate({'bottom': 0}, {duration:400});
	},
	function() {
		$(this).find('.caption').animate({'bottom': -38}, {duration:300});
	});*/
	
	var $active = $('#active');
	if($active.length != 0){
		setInterval( "slideSwitch()", 5000 );
	}
}

function slideSwitch() {
	var $active = $('#active');
    if ( $active.length == 0 ) $active = $('.item .FotoBlok:last');
    
    var $next =  $active.next().length ? $active.next()
        : $('.item .FotoBlok:first');
	
	$active.attr("id","last-active")
	
    $next.css({opacity: 0.0})
    	.attr("id","active")
    	.animate({opacity: 1.0}, 1500, function() {
    		$active.removeClass('active last-active');
    		$active.attr("id","")
    	});
}
