if (document.images)   {
     image1on = new Image();
     image1on.src="images/buttons/vinoteka_2_on.png";

     image1off = new Image();
     image1off.src="images/buttons/vinoteka_2_off.png";


     image2on = new Image();
     image2on.src="images/buttons/vino_2_on.png";

     image2off = new Image();
     image2off.src = "images/buttons/vino_2_off.png";


     image3on = new Image();
     image3on.src="images/buttons/akcie_2_on.png";

     image3off = new Image();
     image3off.src = "images/buttons/akcie_2_off.png";


     image4on = new Image();
     image4on.src="images/buttons/e-shop_2_on.png";

     image4off = new Image();
     image4off.src = "images/buttons/e-shop_2_off.png";

     image5on = new Image();
     image5on.src="images/buttons/uvod_2_on.png";

     image5off = new Image();
     image5off.src="images/buttons/uvod_2_off.png";



}

function turnOn(imageName)   {
     if (document.images)   {
     document[imageName].src = eval(imageName + "on.src");
     }
}

function turnOff(imageName)   {
     if (document.images)   {
     document[imageName].src = eval(imageName + "off.src");
     }
}

function initialize(){
var map = new GMap2(document.getElementById("map_canvas"));
var markers = [];

var geocoder = new GClientGeocoder();
var latlng = new GLatLng(48.144585275955527, 17.101884931271342);
 var icon = new GIcon(G_DEFAULT_ICON);
          //icon.image = "http://chart.apis.google.com/chart?cht=mm&chs=24x32&chco=FFFFFF,008CFF,000000&ext=.png";
            var marker = new GMarker(latlng, {icon: icon});
            markerOptions = { icon:icon };
map.setCenter(latlng, 17);
//map.zoomIn(20);
map.openInfoWindowHtml(map.getCenter(),
                   "<div style='position: absolute;text-align: left;font-family:arial;font-size:0.8em;color: #000000;'><b>Vinot&#233;ka pod hradom</b><br/>Z&#225;mock&#225; 36<br/>811 01 Bratislava</div><div style='position:absolute;left:135px;top:5px;'><img src='/images/logo.png' width='80px' ></div>");
  map.setUIToDefault();
            map.addOverlay(new GMarker(latlng, markerOptions));


}
