
function load() {
    if (GBrowserIsCompatible()) {

        var scie = new GLatLng(53.91874694582939, 14.258612394332886);

        var map = new GMap2(document.getElementById("map"));
        map.setCenter(scie, 15);
        map.addControl(new GLargeMapControl());

        var mapControl = new GMapTypeControl();
        map.addControl(mapControl);

        var icon = new GIcon();
        icon.image = "/gfx/marker.png";
        icon.shadow = "/gfx/shadow.png";
        icon.iconSize = new GSize(12, 20);
        icon.shadowSize = new GSize(22, 20);
        icon.iconAnchor = new GPoint(6, 20);
        icon.infoWindowAnchor = new GPoint(5, 1);
        // Set up our GMarkerOptions object
        var WINDOW_HTML = '<b>Trzy Korony<\/b><br>Agnieszka Ho³da<br>tel. 501 45 70 72';
        var mark = new GMarker( scie ,{
            icon:icon
        } )
        map.addOverlay(mark);
        GEvent.addListener(mark, "click", function() {
            mark.openInfoWindowHtml(WINDOW_HTML);
        });
        mark.openInfoWindowHtml(WINDOW_HTML);
    }
}



$(function() {
    $('#google-map-big').click(function(e) {
        e.preventDefault();
        $.nyroModalManual({
            forceType:'iframe',
            width: 800,
            height: 580,
            url:'/gmap/'
        });
        return false;
    });


                    

    $('#linkthis').click(function(e) {
        e.preventDefault();


        $('#nextyear').hide();
        $('#thisyear').show();

        $(this).parent().attr('class','sk_data01');
 

    });

    $('#linknext').click(function(e) {
        e.preventDefault();


        $('#nextyear').show();
        $('#thisyear').hide();

 $(this).parent().attr('class','sk_data02');
    });


$("#linkthis").trigger('click');


});