﻿
$(document).ready(function() {
    
    $('.pulldown').click(function(){
        var drawer = '#' + this.id + '-drawer';
        $('.drawer:visible').slideUp(300); //close any open drawers
        
        $('.pulldown').removeClass('orange');
        $('.pulldown').addClass('white');
        //if this drawer is closed, open it. if it was open, don't reopen it.
        if ($(drawer + ':visible').length == 0) {
			$(drawer).slideDown(300);
            $('#' + this.id).removeClass('white');
            $('#' + this.id).addClass('orange');
		} 
       return false; 
    });
    
    
    if($.browser.msie) {
        $('body').append($('.jqmWindow'));
    }
    
    $('#GalleryContainer').jqm({overlay:80});
    
    $('.gallery_popup').click(function() {
        
        $('#GalleryContainer').jqmShow();
        return false;
    });
    
    $('#MapItem area').tooltip({ 
        track: true, 
        delay: 0, 
        showURL: false, 
        showBody: " - ", 
        fade: 250,
        positionLeft: true
    });
        
});



function showProps(o) {

    var s = '';
    for (property in o)
    {
        s = s + "\n "+property;
    }

    alert(s);
}