﻿   
        $(function() {
            $("#slider").easySlider({
                pause: 4000,
                auto: true,
                continuous: true
            });
        });
    
        $(document).ready(function() {
            $('.red a').tooltip({
                track: true,
                delay: 0,
                showURL: false,
                showBody: " - ",
                fade: 250
            });
        });
    
        $(function() {
        $.jTwitter('uniwares', 5, function(posts) {
                var i = 0;
                writeTweet(posts, i++);
                window.setInterval(function() {
                    writeTweet(posts, i++);
                    if (i == posts.length) { i = 0; }
                }, 4000);

            });

            function writeTweet(posts, i) {
                $('#twitter span').fadeOut('slow', function() {
                    $('#twitter span').empty().append(posts[i].text).fadeIn('slow');
                });
            }

        });

