function scrollPartners( id, first ) {
    
    if( first == true ) {
        delay = 30000 * 0.25;
    } else {
        delay = 30000;
    }
    
    $( '#partners-' + id ).animate(
            {
                left:-400
            },
            delay,
            'linear',
            function() {
                
                $( this ).animate(
                    {
                        left:-2000
                    },
                    30000,
                    'linear',
                    function () {
                        $( this ).css( 'left', '1200px' );
                    }
                )
                
                if( id == 1 ) {
                    scrollPartners( 2, false );
                } else {
                    scrollPartners( 1, false );
                }
                
            }
    );
}

function rotateBanner( id ) {
    
    if( id + 1 > $( '#banner img' ).size() ) {
        var next = 1;
    } else {
        var next = id + 1;
    }
    
    $( '#banner-' + id ).delay( 4000 ).fadeOut( 2000);
    
    $( '#banner-' + next ).delay( 4000 ).fadeIn( 2000, function() {
        rotateBanner( next );
    });
        
}
