﻿/****
 * Open/Close the bubble
 ****/
function toggleBubble(bubbleID) {
    var node = $('#' + bubbleID);
    
    $('#itemBubble_nohang').slideUp(100);
    $('#circleBubble_nohang').slideUp(100);
    $('#wantedBubble_nohang').slideUp(100);
    $('#confirmBubble').slideUp(100);
    $('#newLocBubble').slideUp(100);
	
	
    if (node.css('display') == 'none') {

        $('#tagBoxes').slideUp('slow', function() {

        if (bubbleID == 'newLocBubble') {
                node.css({ height: 0 }).animate({ height: '226px' }, 1500);
            }
            else {
                node.css({ height: 0 }).animate({ height: '240px' }, 1500);
            }
        });
    } else {
        node.slideUp('slow', function()
        {
            $('#tagBoxes').slideDown('slow');
        });
    }
}



