//<![CDATA[
/*************************************************
 * Created with GoogleMapAPI 2.3
 * Author: Monte Ohrt <monte AT ohrt DOT com>
 * Copyright 2005-2006 New Digital Group
 * http://www.phpinsider.com/php/code/GoogleMapAPI/
 *************************************************/
var points = [];
var markers = [];
var counter = 0;
var sidebar_html = "";
var marker_html = [];
var icon = [];
icon[0] = new GIcon();
icon[0].image = "http://www.campingshongarije.nl/images2/gmarkers/m1.png";
icon[0].shadow = "http://www.campingshongarije.nl/images2/gmarkers/shadow.png";
icon[0].shadowSize = new GSize(37,34);
icon[0].iconSize = new GSize(20,34);
icon[0].iconAnchor = new GPoint(10,17);
icon[0].infoWindowAnchor = new GPoint(10,17);
icon[1] = new GIcon();
icon[1].image = "http://www.campingshongarije.nl/images2/gmarkers/m2.png";
icon[1].shadow = "http://www.campingshongarije.nl/images2/gmarkers/shadow.png";
icon[1].shadowSize = new GSize(37,34);
icon[1].iconSize = new GSize(20,34);
icon[1].iconAnchor = new GPoint(10,17);
icon[1].infoWindowAnchor = new GPoint(10,17);
icon[2] = new GIcon();
icon[2].image = "http://www.campingshongarije.nl/images2/gmarkers/m3.png";
icon[2].shadow = "http://www.campingshongarije.nl/images2/gmarkers/shadow.png";
icon[2].shadowSize = new GSize(37,34);
icon[2].iconSize = new GSize(20,34);
icon[2].iconAnchor = new GPoint(10,17);
icon[2].infoWindowAnchor = new GPoint(10,17);
icon[3] = new GIcon();
icon[3].image = "http://www.campingshongarije.nl/images2/gmarkers/m4.png";
icon[3].shadow = "http://www.campingshongarije.nl/images2/gmarkers/shadow.png";
icon[3].shadowSize = new GSize(37,34);
icon[3].iconSize = new GSize(20,34);
icon[3].iconAnchor = new GPoint(10,17);
icon[3].infoWindowAnchor = new GPoint(10,17);
icon[4] = new GIcon();
icon[4].image = "http://www.campingshongarije.nl/images2/gmarkers/m5.png";
icon[4].shadow = "http://www.campingshongarije.nl/images2/gmarkers/shadow.png";
icon[4].shadowSize = new GSize(37,34);
icon[4].iconSize = new GSize(20,34);
icon[4].iconAnchor = new GPoint(10,17);
icon[4].infoWindowAnchor = new GPoint(10,17);
var map = null;
function onLoad() {
if (GBrowserIsCompatible()) {
var mapObj = document.getElementById("map");
if (mapObj != "undefined" && mapObj != null) {
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(46.8411566, 17.720947), 5, G_NORMAL_MAP);
var bds = new GLatLngBounds(new GLatLng(46.7313270, 17.11944580), new GLatLng(47.08034737, 18.1246948));
map.setZoom(map.getBoundsZoomLevel(bds));
map.addControl(new GScaleControl());
map.savePosition();cj(map.getZoom());ew = new EWindow(map, E_STYLE_7); 
map.addOverlay(ew);
var point = new GLatLng(46.9376,18.1293);
var marker = createMarker(point,"<img src=\"http://www.campingshongarije.nl/images2/star3.gif\">Balatontourist Camping Ifjusag","<div id=\"gmapmarker\"><!--<div id=\"gmap_popup\" style=\"width:250px\">--> <table width=\"330px\" align=\"center\" height=\"98\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"width: 330px;\"> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"#ff9a31\" colspan=\"2\" width=\"330px\" height=\"20\"> <table width=\"100%\" height=\"20\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tr valign=\"middle\"> <td class=\"gmap_hname\" width=\"4\">&nbsp;</td> <td nowrap class=\"gmap_hname\" width=\"100%\" align=\"left\">Balatontourist Camping Ifjusag</td> <td class=\"gmap_hname\">&nbsp;</td> <td width=\"1%\" class=\"gmap_hname\" align=\"right\"><img src=\"http://www.campingshongarije.nl/images2/star3.gif\" border=\"0\" hspace=\"0\" vspace=\"0\"></td> <td class=\"gmap_hname\">&nbsp;</td> <td class=\"gmap_hname\" width=\"20\" align=\"center\" valign=\"middle\"> <a onclick=\"ew.hide(); ClickOnClose();\" style=\"cursor: default; vertical-align: middle;\" id=\"linkCurrent\"> <img src=\"http://www.campingshongarije.nl/images2/map/close.gif\" border=\"0\" width=\"12\" height=\"11\" hspace=\"0\" vspace=\"0\"> </a> </td> </tr> </table> </td> </tr> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"white\" width=\"330px\" height=\"78\"> <table width=\"100%\" cellspacing=\"3\" cellpadding=\"1\" border=\"0\"> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"58\" align=\"left\"> H-8604, Siofok-Sosto, Pusztatorony ter.<br> <span class=\"grey_regular\">Deze camping ligt aan de oever van het meer Sosto, het ligt niet aan de oever van het Balaton meer.</span> </td> </tr> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"20\"> <a href=\"http://www.campingshongarije.nl/hongarije/siofok-sosto/balatontourist-camping-ifjusag.html\">Meer info</a> </td> </tr> </table> </td> <td bgcolor=\"white\" height=\"78\" nowrap valign=\"top\"> <a href=\"http://www.campingshongarije.nl/hongarije/siofok-sosto/balatontourist-camping-ifjusag.html\"> <img src=\"http://www.campingshongarije.nl/himages/small_1732.jpg\" width=\"70\" height=\"70\" border=\"0\" hspace=\"10\" vspace=\"10\"> </a> </td> </tr> <!--</div>--></div>", 0);
map.addOverlay(marker);
var point = new GLatLng(46.9318,18.1085);
var marker = createMarker(point,"<img src=\"http://www.campingshongarije.nl/images2/star3.gif\">Balatontourist Camping & Bungalows Aranypart","<div id=\"gmapmarker\"><!--<div id=\"gmap_popup\" style=\"width:250px\">--> <table width=\"330px\" align=\"center\" height=\"98\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"width: 330px;\"> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"#ff9a31\" colspan=\"2\" width=\"330px\" height=\"20\"> <table width=\"100%\" height=\"20\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tr valign=\"middle\"> <td class=\"gmap_hname\" width=\"4\">&nbsp;</td> <td nowrap class=\"gmap_hname\" width=\"100%\" align=\"left\">Balatontourist Camping & Bungalows...</td> <td class=\"gmap_hname\">&nbsp;</td> <td width=\"1%\" class=\"gmap_hname\" align=\"right\"><img src=\"http://www.campingshongarije.nl/images2/star3.gif\" border=\"0\" hspace=\"0\" vspace=\"0\"></td> <td class=\"gmap_hname\">&nbsp;</td> <td class=\"gmap_hname\" width=\"20\" align=\"center\" valign=\"middle\"> <a onclick=\"ew.hide(); ClickOnClose();\" style=\"cursor: default; vertical-align: middle;\" id=\"linkCurrent\"> <img src=\"http://www.campingshongarije.nl/images2/map/close.gif\" border=\"0\" width=\"12\" height=\"11\" hspace=\"0\" vspace=\"0\"> </a> </td> </tr> </table> </td> </tr> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"white\" width=\"330px\" height=\"78\"> <table width=\"100%\" cellspacing=\"3\" cellpadding=\"1\" border=\"0\"> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"58\" align=\"left\"> H-8600, Siofok-Szabadifurdo, Szent Laszlo u. 183-185.<br> <span class=\"grey_regular\">Camping Aranypart ligt ca. 5 km afstand van het centrum van Siofok, direct aan het Balaton meer.</span> </td> </tr> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"20\"> <a href=\"http://www.campingshongarije.nl/hongarije/siofok/balatontourist-camping-bungalows-aranypart.html\">Meer info</a> </td> </tr> </table> </td> <td bgcolor=\"white\" height=\"78\" nowrap valign=\"top\"> <a href=\"http://www.campingshongarije.nl/hongarije/siofok/balatontourist-camping-bungalows-aranypart.html\"> <img src=\"http://www.campingshongarije.nl/himages/small_1726.jpg\" width=\"70\" height=\"70\" border=\"0\" hspace=\"10\" vspace=\"10\"> </a> </td> </tr> <!--</div>--></div>", 1);
map.addOverlay(marker);
var point = new GLatLng(46.8809,17.9161);
var marker = createMarker(point,"<img src=\"http://www.campingshongarije.nl/images2/star3.gif\">Balatontourist Camping Autos","<div id=\"gmapmarker\"><!--<div id=\"gmap_popup\" style=\"width:250px\">--> <table width=\"330px\" align=\"center\" height=\"98\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"width: 330px;\"> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"#ff9a31\" colspan=\"2\" width=\"330px\" height=\"20\"> <table width=\"100%\" height=\"20\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tr valign=\"middle\"> <td class=\"gmap_hname\" width=\"4\">&nbsp;</td> <td nowrap class=\"gmap_hname\" width=\"100%\" align=\"left\">Balatontourist Camping Autos</td> <td class=\"gmap_hname\">&nbsp;</td> <td width=\"1%\" class=\"gmap_hname\" align=\"right\"><img src=\"http://www.campingshongarije.nl/images2/star3.gif\" border=\"0\" hspace=\"0\" vspace=\"0\"></td> <td class=\"gmap_hname\">&nbsp;</td> <td class=\"gmap_hname\" width=\"20\" align=\"center\" valign=\"middle\"> <a onclick=\"ew.hide(); ClickOnClose();\" style=\"cursor: default; vertical-align: middle;\" id=\"linkCurrent\"> <img src=\"http://www.campingshongarije.nl/images2/map/close.gif\" border=\"0\" width=\"12\" height=\"11\" hspace=\"0\" vspace=\"0\"> </a> </td> </tr> </table> </td> </tr> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"white\" width=\"330px\" height=\"78\"> <table width=\"100%\" cellspacing=\"3\" cellpadding=\"1\" border=\"0\"> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"58\" align=\"left\"> H-8621, Zamardi, Szent Istvan ut hrsz. 3512.<br> <span class=\"grey_regular\">De camping ligt direct aan de oever van het Balaton meer, dankzij deze perfecte ligging is deze camping uitstekend geschikt voor families.</span> </td> </tr> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"20\"> <a href=\"http://www.campingshongarije.nl/hongarije/zamardi/balatontourist-camping-autos.html\">Meer info</a> </td> </tr> </table> </td> <td bgcolor=\"white\" height=\"78\" nowrap valign=\"top\"> <a href=\"http://www.campingshongarije.nl/hongarije/zamardi/balatontourist-camping-autos.html\"> <img src=\"http://www.campingshongarije.nl/himages/small_1738.jpg\" width=\"70\" height=\"70\" border=\"0\" hspace=\"10\" vspace=\"10\"> </a> </td> </tr> <!--</div>--></div>", 2);
map.addOverlay(marker);
var point = new GLatLng(46.8129,17.7718);
var marker = createMarker(point,"<img src=\"http://www.campingshongarije.nl/images2/star3.gif\">Balatontourist Camping Lido","<div id=\"gmapmarker\"><!--<div id=\"gmap_popup\" style=\"width:250px\">--> <table width=\"330px\" align=\"center\" height=\"98\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"width: 330px;\"> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"#ff9a31\" colspan=\"2\" width=\"330px\" height=\"20\"> <table width=\"100%\" height=\"20\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tr valign=\"middle\"> <td class=\"gmap_hname\" width=\"4\">&nbsp;</td> <td nowrap class=\"gmap_hname\" width=\"100%\" align=\"left\">Balatontourist Camping Lido</td> <td class=\"gmap_hname\">&nbsp;</td> <td width=\"1%\" class=\"gmap_hname\" align=\"right\"><img src=\"http://www.campingshongarije.nl/images2/star3.gif\" border=\"0\" hspace=\"0\" vspace=\"0\"></td> <td class=\"gmap_hname\">&nbsp;</td> <td class=\"gmap_hname\" width=\"20\" align=\"center\" valign=\"middle\"> <a onclick=\"ew.hide(); ClickOnClose();\" style=\"cursor: default; vertical-align: middle;\" id=\"linkCurrent\"> <img src=\"http://www.campingshongarije.nl/images2/map/close.gif\" border=\"0\" width=\"12\" height=\"11\" hspace=\"0\" vspace=\"0\"> </a> </td> </tr> </table> </td> </tr> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"white\" width=\"330px\" height=\"78\"> <table width=\"100%\" cellspacing=\"3\" cellpadding=\"1\" border=\"0\"> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"58\" align=\"left\"> H-8636, Balatonszemes, Ady Endre u. 8.<br> <span class=\"grey_regular\">Camping Lido bevindt zich in een rustige omgeving, direct aan de oever van het Balatonmeer</span> </td> </tr> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"20\"> <a href=\"http://www.campingshongarije.nl/hongarije/balatonszemes/balatontourist-camping-lido.html\">Meer info</a> </td> </tr> </table> </td> <td bgcolor=\"white\" height=\"78\" nowrap valign=\"top\"> <a href=\"http://www.campingshongarije.nl/hongarije/balatonszemes/balatontourist-camping-lido.html\"> <img src=\"http://www.campingshongarije.nl/himages/small_1743.jpg\" width=\"70\" height=\"70\" border=\"0\" hspace=\"10\" vspace=\"10\"> </a> </td> </tr> <!--</div>--></div>", 3);
map.addOverlay(marker);
var point = new GLatLng(46.8002,17.7349);
var marker = createMarker(point,"<img src=\"http://www.campingshongarije.nl/images2/star3.gif\">Balatontourist Camping & Bungalows Vadvirag","<div id=\"gmapmarker\"><!--<div id=\"gmap_popup\" style=\"width:250px\">--> <table width=\"330px\" align=\"center\" height=\"98\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"width: 330px;\"> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"#ff9a31\" colspan=\"2\" width=\"330px\" height=\"20\"> <table width=\"100%\" height=\"20\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\"> <tr valign=\"middle\"> <td class=\"gmap_hname\" width=\"4\">&nbsp;</td> <td nowrap class=\"gmap_hname\" width=\"100%\" align=\"left\">Balatontourist Camping & Bungalows...</td> <td class=\"gmap_hname\">&nbsp;</td> <td width=\"1%\" class=\"gmap_hname\" align=\"right\"><img src=\"http://www.campingshongarije.nl/images2/star3.gif\" border=\"0\" hspace=\"0\" vspace=\"0\"></td> <td class=\"gmap_hname\">&nbsp;</td> <td class=\"gmap_hname\" width=\"20\" align=\"center\" valign=\"middle\"> <a onclick=\"ew.hide(); ClickOnClose();\" style=\"cursor: default; vertical-align: middle;\" id=\"linkCurrent\"> <img src=\"http://www.campingshongarije.nl/images2/map/close.gif\" border=\"0\" width=\"12\" height=\"11\" hspace=\"0\" vspace=\"0\"> </a> </td> </tr> </table> </td> </tr> <tr valign=\"top\" width=\"330px\"> <td bgcolor=\"white\" width=\"330px\" height=\"78\"> <table width=\"100%\" cellspacing=\"3\" cellpadding=\"1\" border=\"0\"> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"58\" align=\"left\"> H-8636, Balatonszemes, Arany Janos u. 101.<br> <span class=\"grey_regular\">Camping Vadvirag ligt aan het westelijke deel van Balatonszemes direkt aan de oever, Balatonszemes ligt halverwege de Zuidkant van het Balatonmeer.</span> </td> </tr> <tr valign=\"top\"> <td bgcolor=\"white\" width=\"100%\" height=\"20\"> <a href=\"http://www.campingshongarije.nl/hongarije/balatonszemes/balatontourist-camping-bungalows-vadvirag.html\">Meer info</a> </td> </tr> </table> </td> <td bgcolor=\"white\" height=\"78\" nowrap valign=\"top\"> <a href=\"http://www.campingshongarije.nl/hongarije/balatonszemes/balatontourist-camping-bungalows-vadvirag.html\"> <img src=\"http://www.campingshongarije.nl/himages/small_1749.jpg\" width=\"70\" height=\"70\" border=\"0\" hspace=\"10\" vspace=\"10\"> </a> </td> </tr> <!--</div>--></div>", 4);
map.addOverlay(marker);

document.getElementById("sidebar_map").innerHTML = "<ul class=\"gmapSidebar\">"+ sidebar_html +"</ul>";
}
} else {
alert("Sorry, the Google Maps API is not compatible with this browser.");
}
}
function createMarker(point, title, html, n) {
if(n >= 5) { n = 4; }
var marker = new GMarker(point,{'icon': icon[n]});
if(isArray(html)) { GEvent.addListener(marker, "click", function() { marker.openInfoWindowTabsHtml(html); }); }
else { 
            GEvent.addListener(marker, "click", function() { 
            ClickOnMarker(marker, html); }); 
            GEvent.addListener(marker, "infowindowclose", function () {
            ClickOnClose(marker); });
            GEvent.addListener(marker, "infowindowopen", function () {
            InfoWindowOpen(marker); });
            }
points[counter] = point;
markers[counter] = marker;
marker_html[counter] = html;
sidebar_html += '<li class="gmapSidebarItem" id="gmapSidebarItem_'+ counter +'"><a href="javascript:click_sidebar(' + counter + ')">' + title + '</a></li>';
counter++;
return marker;
}
function isArray(a) {return isObject(a) && a.constructor == Array;}
function isObject(a) {return (a && typeof a == 'object') || isFunction(a);}
function isFunction(a) {return typeof a == 'function';}
function click_sidebar(idx) {
  if(isArray(marker_html[idx])) { markers[idx].openInfoWindowTabsHtml(marker_html[idx]); }
  else { ClickOnMarker(markers[idx], marker_html[idx]); }
}
function showInfoWindow(idx,html) {
map.centerAtLatLng(points[idx]);
markers[idx].openInfoWindowHtml(html);
}
//]]>
