$(document).ready(function(){
    $("#menu").css({display:"block"}),
    $("#button").click(function(){
        $("#menu").slideToggle("normal");
    }).css({
        cursor:"pointer"
    });
});
$(document).ready(function(){

    var first = 0;
    var speed = 700;
    var pause = 8000;

        function removeFirst(){
            first = $('ul#twitter_update_list li:first').html();
            $('ul#twitter_update_list li:first')
            .animate({opacity: 0}, speed)
            .fadeOut('slow', function() {$(this).remove();});
            addLast(first);
        }

        function addLast(first){
            last = '<li style="display:none">'+first+'</li>';
            $('ul#twitter_update_list').append(last)
            $('ul#twitter_update_list li:last')
            .animate({opacity: 1}, speed)
            .fadeIn('slow')
        }

    interval = setInterval(removeFirst, pause);

    $('a.popup').click(function(){
        var destination = $(this).attr('href');
        window.open(destination);
        return false;
    });
    
});
$(function () {
    $('#link_to_top').click(function () {
        $(this).blur();

        $('html,body').animate({ scrollTop: 0 }, 'normal');
        return false;
    });
});
var RecaptchaOptions = {
   theme : 'clean'
};
