/* JS functions */
$(document).ready(function(){

    $('#searchSport').click(function(){
        if (this.value == 'Szukaj w sporcie') {
            this.value = '';
        }
    })
    $('#searchSport').blur(function(){
        if (this.value == '') {
            this.value = 'Szukaj w sporcie';
        }
    })
    $('#searchNews').click(function(){
        if (this.value == 'Szukaj w wydarzeniach') {
            this.value = '';
        }
    })
    $('#searchNews').blur(function(){
        if (this.value == '') {
            this.value = 'Szukaj w wydarzeniach';
        }
    })
    
    $('#sWydarzenia').showcase({
        animation: {
            interval: 5000,
            speed: 1500,
            stopOnHover: false,
            type: "fade"
        },
        navigator: {
            css: {
                "z-index": "1"
            }
        },
        
        titleBar: {
            enabled: false
        }
    
    });
    $('#sSport').showcase({
        animation: {
            interval: 5000,
            speed: 1500,
            stopOnHover: false,
            type: "fade"
        },
        
        navigator: {
            css: {
                "z-index": "1"
            }
        },
        
        titleBar: {
            enabled: false
        }
    
    });
});

