    // Setting language variable
    var lang = '';

    // Animation header
    var duartion2 = 2000;
    var pauza     = 6000;
    header();
    
    function header() {
        $('#topHeader').pause(pauza).fadeOut(duartion2,function() {
            $('#topHeader').css({ backgroundImage: 'url(http://www.pro-science.eu/images/pl/banner/header_top2.gif)' });
            $('#topHeader').fadeIn(duartion2,function() {
                $('#topHeader').pause(pauza).fadeOut(duartion2,function() {
                    $('#topHeader').css({ backgroundImage: 'url(http://www.pro-science.eu/images/pl/banner/header_top3.gif)' });
                    $('#topHeader').fadeIn(duartion2,function() {
                        $('#topHeader').pause(pauza).fadeOut(duartion2,function() {
                            $('#topHeader').css({ backgroundImage: 'url(http://www.pro-science.eu/images/pl/banner/header_top4.gif)' });
                            $('#topHeader').fadeIn(duartion2,function() {
                                $('#topHeader').pause(pauza).fadeOut(duartion2,function() {
                                    $('#topHeader').css({ backgroundImage: 'url(http://www.pro-science.eu/images/pl/banner/header_top5.gif)' });
                                    $('#topHeader').fadeIn(duartion2);
                                    header();
                                });
                            });
                        });
                    });
                });
            });
        });
     }
     
     
     
    // Services CSS & actions
    var pace = 400;
    
    function main_panel() {
        
        $(".services")
            .css({ cursor: 'pointer' });
        
        $("#services1")
            .mouseover(function(){
                $("#services1 .services_header").stop().animate(
                    {backgroundPosition:"(0 -32px)"}, 
                    {duration:pace})
                })
            .mouseout(function(){
                $("#services1 .services_header").stop().animate(
                    {backgroundPosition:"(0 0)"}, 
                    {duration:pace})
                })
            .click(function() {
                window.location.href = 'http://www.finance.pro-science.eu/'
            });
        
        $("#services2")
            .mouseover(function(){
                $("#services2 .services_header").stop().animate(
                    {backgroundPosition:"(0 -32px)"}, 
                    {duration:pace})
                })
            .mouseout(function(){
                $("#services2 .services_header").stop().animate(
                    {backgroundPosition:"(0 0)"}, 
                    {duration:pace})
                })
            .click(function() {
                window.location.href = 'http://www.lab.pro-science.eu/'
            });
        
        $("#services3")
            .mouseover(function(){
                $("#services3 .services_header").stop().animate(
                    {backgroundPosition:"(0 -32px)"}, 
                    {duration:pace})
                })
            .mouseout(function(){
                $("#services3 .services_header").stop().animate(
                    {backgroundPosition:"(0 0)"}, 
                    {duration:pace})
                })
            .click(function() {
                window.location.href = 'http://www.scholar.pro-science.eu/'
            });
        
        $("#services4")
            .mouseover(function(){
                $("#services4 .services_header").stop().animate(
                    {backgroundPosition:"(0 -32px)"}, 
                    {duration:pace})
                })
            .mouseout(function(){
                $("#services4 .services_header").stop().animate(
                    {backgroundPosition:"(0 0)"}, 
                    {duration:pace})
                })
            .click(function() {
                window.location.href = 'http://www.expertise.pro-science.eu/'
            });
        
        $("#services5")
            .mouseover(function(){
                $("#services5 .services_header").stop().animate(
                    {backgroundPosition:"(0 -32px)"}, 
                    {duration:pace})
                })
            .mouseout(function(){
                $("#services5 .services_header").stop().animate(
                    {backgroundPosition:"(0 0)"}, 
                    {duration:pace})
                })
            .click(function() {
                window.location.href = 'http://www.it.pro-science.eu/'
            });
     
     }
