jQuery.extend({
    renderMap: function() {
        var args = arguments[0] || {};
        var latitude = args.latitude;
        var longitude = args.longitude;
        
        var map = new GMap2(document.getElementById('map'));
        map.setCenter(new GLatLng(latitude, longitude), 8);
        map.setUIToDefault();

        var blueIcon = new GIcon(G_DEFAULT_ICON);
        blueIcon.image = "http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png";
        markerOptions = { icon: blueIcon };

        var marker = new GMarker(new GLatLng(latitude, longitude), markerOptions);
        map.addOverlay(marker);
    }
});