$(document).ready(function() {
    if (!$.browser.msie || $.browser.version >= 7) {
        $('#map').html('<iframe id="map-iframe" width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=1635+E+55th+St,+Chicago,+IL+60615&amp;sll=41.798512,-87.589059&amp;sspn=0.013693,0.026994&amp;ie=UTF8&amp;ll=41.798032,-87.587428&amp;spn=0.011198,0.018239&amp;z=15&amp;iwloc=A&amp;output=embed"></iframe>');
        $('#see-hide-p a').click(function(e) {
            if ($(this).hasClass('hide')) {
                $('#map-drawer').animate( { width: '0px', left: '0px' }, 500, function() {
                    $('#map-drawer').css('left', '-9999px') });
                $('#see-hide-p a').html('(show map)');
                $('#see-hide-p a').removeClass('hide');
            } else {
                $('#map-drawer').css('left', '0px');
                $('#map-drawer').css('width', '0px');
                $('#map-drawer').animate( { width: '437px', left: '235px' }, 500);
                $('#see-hide-p a').html('(hide map)');
                $('#see-hide-p a').addClass('hide');
            }
            e.preventDefault();
        });
    }
});
