$(document).ready(
            function(){
                $('a').click(function() {
                    this.blur();
                });
                 $('#menu-main li:not(.act) img').each(
                     function() {
                         $(this).mouseover(
                             function() {
                    $(this).attr('src',$(this).attr('src').replace(/([^_.]*)(_?.*)(\..*)/, "$1-mo-aktiv$2$3"));
                             }
                         );
                         $(this).mouseout(
                             function() {
                    $(this).attr('src',$(this).attr('src').replace(/([^.-]*)-.[^_]*(.*\..*)/, "$1$2"));
                             }
                         );
                    }
                 );
                 $('#menu-sub li:not(.act) img').each(
                     function() {
                         $(this).mouseover(
                             function() {
                    $(this).attr('src',$(this).attr('src').replace(/([^_.]*)(_?.*)(\..*)/, "$1-mo-aktiv$2$3"));
                             }
                         );
                         $(this).mouseout(
                             function() {
                    $(this).attr('src',$(this).attr('src').replace(/([^.-]*)-.[^_]*(.*\..*)/, "$1$2"));
                             }
                         );
                    }
                 );
                 $('#menu-shortcuts img').each(
                     function() {
                         $(this).mouseover(
                             function() {
                    $(this).attr('src',$(this).attr('src').replace(/([^_.]*)(_?.*)(\..*)/, "$1-mo$2$3"));
                             }
                         );
                         $(this).mouseout(
                             function() {
                    $(this).attr('src',$(this).attr('src').replace(/([^.-]*)-.[^_]*(.*\..*)/, "$1$2"));
                             }
                         );
                    }
                 );
                 $('#menu-languages img').each(
                     function() {
                         $(this).mouseover(
                             function() {
                    $(this).attr('src',$(this).attr('src').replace(/([^.]*)\.(.*)/, "$1-mo.$2"));
                             }
                         );
                         $(this).mouseout(
                             function() {
                    $(this).attr('src',$(this).attr('src').replace(/([^.]*)-mo\.(.*)/, "$1.$2"));
                             }
                         );
                    }
                 );

        $.easing.easeOutQuart = function (x, t, b, c, d) {
            return -c * ((t=t/d-1)*t*t*t - 1) + b;
        };

        var $prev = $('#prev'),
            $next = $('#next'),
            $scrollj = $('div#scrolljail'),
            $items = $('div#scrolljail div.column,div#scrolljail div.column-small');

        if($items.length == 1)$('#scroll').hide();

        $scrollj.serialScroll({
            items:'div.column,div.column-small',
            prev:'#prev',
            next:'#next',
            axis:'x',
            start:0,
            duration:1200,
            force:true,
            stop:true,
            lock:false,
            cycle:false,
            easing:'easeOutQuart',
            jump: false,
            onBefore:function( e, elem, $pane, $items, pos ){
                $prev.add($next).show();
                if( pos <= 0 ) {
                    $prev.hide();
                }
                else if( pos == $items.length-1 ) {
                    $next.hide();
                }
            }
        });

    }
);

