IB.contact = {fluid:{},e:{}};

IB.contact.init = function()
{
    //IB.contact.fluid.init();

    $('div.contactItem a.delete').click(IB.contact.del);
};

IB.contact.del = function()
{
    if(confirm('Are you sure ?'))
    {
        $.loading();
        var item = $(this).parent();

        var id = item.attr('id').replace('contactId','');

        'Contact_delete'.ajax('id='+id,function(d)
        {
            $.displayMessage(d).loaded();

            item.hide(300,function()
            {
                item.remove();
            });
            
            display('contact');
        });
    }
};


