// rating ========================================================================

jQuery(document).ready(function() {
    var $ = jQuery;
    var i = 0;
    $('.rating-control a').live('mouseover', function() {
            var container = $(this).parent('.rating-control');
            i = container.find('.star-full').size();
            var index = container.find('.icon-star').index($(this).children());
            container.find('.icon-star:lt('+(index+1)+')').addClass('star-full');
            container.find('.icon-star:gt('+index+')').removeClass('star-full');
        }).live('mouseout', function() {
            var container = $(this).parent('.rating-control');
            container.find('.icon-star').removeClass('star-full');
            container.find('.icon-star:lt('+i+')').addClass('star-full');
        });
});

// highslide ========================================================================

hs.graphicsDir = '/../images/highslide/';
hs.outlineType = 'custom';
hs.fadeInOut = true;
hs.align = 'center';
hs.captionEval = 'this.a.title';
hs.outlineType = 'rounded-white';

// Czech language strings
hs.lang = {
	cssDirection: 'ltr',
	loadingText: 'Načítá se...',
	loadingTitle: 'Klikněte pro zrušení',
	focusTitle: 'Klikněte pro přenesení do popředí',
	fullExpandTitle: 'Zvětšit na původní velikost',
	creditsText: 'Powered by <i>Highslide JS</i>',
	creditsTitle: 'Přejít na stránky Highslide JS',
	previousText: 'Předchozí',
	nextText: 'Další',
	moveText: 'Přesunout',
	closeText: 'Zavřít',
	closeTitle: 'Zavřít (esc)',
	resizeTitle: 'Změnit velikost',
	playText: 'Přehrát',
	playTitle: 'Přehrát slideshow (mezerník)',
	pauseText: 'Pozastavit',
	pauseTitle: 'Pozastavit slideshow (mezerník)',
	previousTitle: 'Předchozí (šipka vlevo)',
	nextTitle: 'Další (šipka vpravo)',
	moveTitle: 'Přesunout',
	fullExpandText: 'Plná velikost',
	number: 'Image %1 of %2',
	restoreTitle: 'Klikněte pro zavření obrázku, klikněte a táhněte pro jeho přesunutí. Použijte šipky na klávesnici pro přesun na další a předchozí.'
};

// scroll sticky ========================================================================

$(window).load(function() {
        new StickyScroller("#container",
        {
            start: 161,
            //end: 1800,
            interval: 300,
            range: 100,
            margin: 5
        });
});

