
function hideAction()
{
   $("div#market_inner").hide();
}

function showContent()
{
   $("div#market_content").show();
   $("div#close").show();
}

/**
 * Possible map styles are:
 *
 *  G_NORMAL_MAP        -> displays the default road map view.
 *  G_SATELLITE_MAP     -> displays Google Earth satellite images.
 *  G_HYBRID_MAP        -> displays a mixture of normal and satellite views.
 *  G_DEFAULT_MAP_TYPES -> contains an array of the above three types, useful for iterative processing.
 *  G_PHYSICAL_MAP      -> displays a physical map based on terrain information.
 */
function showGoogleMap( pos_x, pos_y, zoom, map_style )
{
    if ( $("div#gmap").length > 0 )
    {
        if ( GBrowserIsCompatible() )
        {
            map = new GMap2(document.getElementById('gmap'));
            map.setMapType(map_style);
            map.setCenter(new GLatLng(pos_x, pos_y), zoom);
            map.addControl(new GSmallMapControl());
            map.addControl(new GMapTypeControl());

            var point = new GLatLng(pos_x, pos_y);
            map.addOverlay(new GMarker(point));
        }
    }
}


$(document).ready(function()
{
   if ($("div#market_bg").length > 0)
   {
       $('.pngFix').pngfix();
       var maxHeight = "1000px";
       $("#market_inner").css("height", maxHeight);
       $("#market_bg").css("height", maxHeight);
       $("div#market_bg").css("opacity", 0);
       $("div#market_bg").animate({opacity: "0.9"}, 1500, showContent);
   }
});
