Cufon.replace('.cufon', { fontFamily: 'Century Gothic', hover: true });
$(document).ready(function () {
    $("#flavor_1").each(function(){
        $("#flavor_1").agile_carousel({
            carousel_data: rotatorData,
            carousel_outer_height: 164,
            carousel_height: 164,
            slide_height: 164,
            carousel_outer_width: 454, 
            slide_width: 454,
            transition_time: 400,
            timer: 4000,
            continuous_scrolling: true,
            control_set_1: "numbered_buttons",
            no_control_set: "hover_previous_button,hover_next_button"
        });
    });

    $('#menu li').mouseenter(function(){
        $(this).addClass('hovered').find('> ul').show(300);
    }).mouseleave(function(){
        $(this).removeClass('hovered').find('ul').stop(true, true).hide();
    });
    $("a[rel='gallery']").colorbox();
    
    $('#keywordInput').focus(function(){  
		if($(this).attr('value') == 'wpisz fazę do wyszukiwania...') $(this).attr('value', '');  
	}).blur(function(){  
		if($(this).attr('value') == '') $(this).attr('value', 'wpisz fazę do wyszukiwania...');  
	});
    
    $("#flowPlayer").each(function(){
        flowplayer("flowPlayer", {src : 'edc_plugins/FlowPlayer/flowplayer-3.2.7.swf', wmode: 'transparent'}, {
            plugins: {
                controls: {
                    autoHide: false,
                    url: 'flowplayer.controls-3.2.5.swf',
                    buttonColor: '#405b71',
                    buttonOverColor: '#000000',
                    backgroundColor: '#e3ecf3',
                    backgroundGradient: 'high',
                    sliderColor: '#FFFFFF',
                    sliderBorder: '1px solid #808080',
                    volumeSliderColor: '#FFFFFF',
                    volumeBorder: '1px solid #808080',
                    timeColor: '#000000',
                    durationColor: '#535353'
                }
            },
            clip: {
                autoPlay: true
            }
        });
    });
    $('#leftSideBanners .widgetWrapper img').mouseenter(function(){
        $(this).css('opacity', .7);
    }).mouseleave(function(){
        $(this).css('opacity', 1);
    });
});

