$(function() {
    jQuery('.draggable').live("mouseover", function() { 
        if (!$(this).data("init")) { 
            $(this).data("init", true); 
            jQuery(this).draggable({
                handle: 'h1',
                cursor: 'move'
            });
        }
    });
    
    $('.draggable h1 a, .close_button button, a.close_button, a.close_link').live('click', function() {
        $('div#dialog').hide();
        $('div#over').hide();
    });
    
    $('.blink').blink({delay:600});
    
    // $('#dialog').draggable();
    // $('#dialog').resizable(); // not working
    
    //$('#home_slideshow ul').moodular();
    
    $('#header ul').moodular({
         effects: 'fade',
         speed: 6000, //The duration in ms of the animation.
         dispTimeout: 4000, //The delay in ms between two animations.
         random: true
         //auto: false,
         //controls : 'index'
    });
    
    $('.lightbox a').lightBox();

});




