        function WysylaczPoczty(s1,s2,s3)
        {
                 window.location.href=String.fromCharCode(109)+'a'+String.fromCharCode( 105 )+'lto'+String.fromCharCode( 58)+s1+String.fromCharCode( 1<<6 )+s2+String.fromCharCode(23<<1 )+s3;
        }
        function Preload()
        {
            document.tmp = new Array();
            document.tmp[0]=new Image;
            document.tmp[0].src='/gfx/static/mapa_top_a.gif';
            document.tmp[1]=new Image;
            document.tmp[1].src='/gfx/static/forum_top_a.gif';
            document.tmp[2]=new Image;
            document.tmp[2].src='/gfx/static/poczta_top_a.gif';
            document.tmp[3]=new Image;
            document.tmp[3].src='/gfx/static/menubar.gif';
            document.tmp[4]=new Image;
            document.tmp[4].src='/gfx/static/menubar_a.gif';
            document.tmp[5]=new Image;
            document.tmp[5].src='/gfx/static/main_top_a.gif';
        }
        function OverMenu0(s)
        {
                 document.getElementById(s).style.backgroundImage='url(gfx/static/menubar_a.gif)';
        }
        function OutMenu0(s)
        {
                 document.getElementById(s).style.backgroundImage='url(gfx/static/menubar.gif)';
        }
        function trigger(targetId) {
                 if (document.getElementById) {
                    target = document.getElementById(targetId);
                    if( target.style.display == "none" )
                        target.style.display = "";
                    else
                        target.style.display = "none";
                 }
        }
    function createNumberedIcon(number)
    {
        var icon = new GIcon();
        //icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
        icon.shadow = "http://www.porcjunkula.org/gfx/static/shadow50.png";
        icon.iconSize = new GSize(20, 34);
        icon.shadowSize = new GSize(37, 34);
        icon.iconAnchor = new GPoint(9, 34);
        icon.infoWindowAnchor = new GPoint(9, 2);
        icon.infoShadowAnchor = new GPoint(18, 25);
        //icon.image = "http://www.google.com/mapfiles/marker" + number + ".png";
        icon.image = "http://www.porcjunkula.org/gfx/static/icon" + number + ".png";
        return icon;
    }
    function createNumberedMarker(point, number, text)
    {
            var marker = new GMarker(point, createNumberedIcon(number));
            GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(text); });
            return marker;
    }
    function loadGoogleMap()
    {
        if (GBrowserIsCompatible())
        {
            var map = new GMap2(document.getElementById("map"));
            map.addControl(new GSmallMapControl());
            map.addControl(new GMapTypeControl());
            map.addControl(new GOverviewMapControl());
            
            map.setCenter(new GLatLng(51.093557, 17.01219), 16);
            map.addOverlay(createNumberedMarker(new GLatLng(51.09384 , 17.010741), '1', "<b>1. Kaplica \"Porcjunkula\"</b>"));
            map.addOverlay(createNumberedMarker(new GLatLng(51.092991, 17.010419), '2', "<b>2. Dom katechetyczny</b><br />wejscie od strony ul. Oficerskiej"));
            map.addOverlay(createNumberedMarker(new GLatLng(51.093038, 17.013584), 'g30', "<b>Gimnazjum nr 30</b>"));
            //map.openInfoWindow(map.getCenter(), document.createTextNode("Hello, world"));
            map.setMapType(G_HYBRID_MAP);
            //map.setMapType(G_SATELLITE_MAP);
        }
        else
        {
            document.getElementById("map").innerHTML="<img src=\"./gfx/static/mapa.jpg\" alt=\"Plan okolicy\" border=\"1\" /><br />(niestety Twoja przeglądarka nie obsługuje interfejsu Google Maps API)";
            document.getElementById("map").style.border='0px none #303030';
            document.getElementById("map").style.width='auto';
            document.getElementById("map").style.height='auto';
        }
    }


