// ', title: '
Google
', height: 700, width: 900 }); } function demoMap(my_zoom, my_lat, my_lng, show_point, show_point2){ Shadowbox.open({ player: 'html', content: '', height: 700, width: 900,title: 'Mapa hotely ČR a SR',options: { onFinish: function(item){ if (show_point) { setupMap("sb-player",0,show_point,my_zoom, my_lat, my_lng, 0 ,-1); } else { setupMap("sb-player",0,show_point,my_zoom, my_lat, my_lng, 0 ,1); } }, enableKeys:false } }); }; function toogle_reset (pole,show_window, buttons) { if (!buttons && buttons!=0) buttons=1; if (!pole) pole = "sb-player"; if (!show_window) show_window = 0; if (my_all) { my_all = 0; $("#campDisplayInfo span.vybrane").fadeIn(); $("#campDisplayInfo span.vse").fadeOut(); } else { my_all = 1; $("#campDisplayInfo span.vybrane").fadeOut(); $("#campDisplayInfo span.vse").fadeIn(); } //alert("bounds: "+map.getBounds()+", center: "+map.getBounds().getCenter()); // setupMap(pole,show_window,0,6,49.5,16.3,my_all,buttons); setupMap(pole,show_window,0,map.getZoom(),map.getBounds().getCenter().lat(),map.getBounds().getCenter().lng(),my_all,buttons); } var htmlData, main, ua, ie, x, div, elem; function loadLabel( url, marker, map ) { htmlData = null; ie = navigator.userAgent.toLowerCase().indexOf("msie"); if ( window.XMLHttpRequest ) { htmlData = new XMLHttpRequest(); } else if (( ie !== -1 ) && (/MSIE[\s\/](\d+\.\d+)/.test( navigator.userAgent))) { try { ver = new Number( RegExp.$1 ); htmlData = ( ver < 6 ) ? new ActiveXObject("Microsoft.XMLHTTP") : new ActiveXObject("Msxml2.XMLHTTP"); } catch( e ) { htmlData = new XMLHttpRequest(); } } if ( htmlData !== null ) { htmlData.onreadystatechange = function(){ main = htmlData.responseText; if ( htmlData.readyState !== 4 ) return; if ( htmlData.status !== 200 ) { alert("Unable to parse data! Please ensure that the file has a valid path."); } //TODO: Tady povolit infovokna !!!!! infowindow.close(); infowindow.setContent(main); infowindow.open(map, marker); } htmlData.open("GET", url, true); htmlData.send( null ); } else { alert("Your browser do not support AJAX request!"); } }