$(function() {
    //facebook widget
    $(".widget_social").hover(function(){
    $(".widget_social").stop(true, false).animate({right:"0"},"medium");

    },function(){
        $(".widget_social").stop(true, false).animate({right:"-205"},"medium");
    },500);

    $('.youtube_window').youtubeWindow();
    
//    $(".dropdown").each(function () {
//        $(this).parent().eq(0).hover(function () {
//            $(".dropdown:eq(0)", this).show();
//        }, function () {
//            $(".dropdown:eq(0)", this).hide();
//        });
//    });
    
    //Send Message in popup window
    $('.msg-popup').click( function(){
        
        jQuery.get( $(this).attr('href'), function(data){
            $('#dialog').html(data);
            
            $('#dialog').overlay({
                top: 60,
                mask: {
                    color: '#fff',
                    loadSpeed: 200,
                    opacity: 0.65
                },
                onClose : function(){},
                closeOnClick: false,
                load: false        
            });            
            $('#dialog').overlay().load();
        });
        
        return false;
    });
});
