function openwin( src,name,width,height )
{
   window.open( src,name,'location=no,resizable=no,width='+width+',height='+height+',top=30,left=30,scrollbars=yes' );
}

function show(id)
{
   window.open( 'inc/sklep/wiecej_fotek.php?id=' + id, 'wiecej_fotek', 'location=no,resizable=no,width=900,height=750,left=40,top=100,scrollbars=yes' );
}

function test(id)
{
   window.open( 'inc/sklep/test.php?id_prod=' + id, 'test', 'location=no,resizable=no,width=430,height=450,left=40,top=100,scrollbars=yes' );
}

function szukajstr( str )
{
    if ( str.length > 0 && str != "Suchbegriff eingeben" )
      parent.location.href='index.php?&szukaj='+str+'&miasto=&kod=&ulica=';
    else
      alert( 'Suchbegriff eingeben!' );
}


//mapa

    var map = null;
    var geocoder = null;

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

        //var map = new GMap(document.getElementById("map"));
        //map.addControl(new GMapTypeControl());
        //map.centerAndZoom(new GPoint(-122.141944, 37.441944), 4);

        map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        geocoder = new GClientGeocoder();
      }
    }

    function showAddress(address,komunikat) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {

              alert( "Nieodnaleziono: " + address);
              //document.getElementById("mapa").style.visiblity="hidden";

            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml( komunikat );
            }
          }
        );
      }
    }



