var $j = jQuery.noConflict();

$j(document).ready(function() {
    
        // inicializace PrettyPhoto
    $j("a[rel^='prettyPhoto']").prettyPhoto({
        animationSpeed: 'normal', /* fast/slow/normal */
        padding: 40, /* padding for each side of the picture */
        opacity: 0.7, /* Value betwee 0 and 1 */
        showTitle: true, /* true/false */
        allowresize: true, /* true/false */
        counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
        theme: 'dark_rounded' /* light_rounded / dark_rounded / light_square / dark_square */
    });

    $j(".gallery-link").hover(
        function() {
           var rel = $j(this).attr("rel");

           $j(".main-content").hide();
           $j(".gallery-image").show();
           $j(".gallery-image").attr("src",rel);
        },
        function() {
           $j(".gallery-image").hide();
           $j(".main-content").show();
        }
    );


	$j("#scroller").simplyScroll({
		className: 'vert',
		horizontal: false,
		frameRate: 24,
		speed: 10
	});


});

