// ', title: '
Google
', height: 700, width: 900 }); } function demoMap(my_zoom, my_lat, my_lng, show_point, show_point2){ if (show_point) { if (show_point2) { show_point=show_point+','+show_point2; } var show_points=show_point.split(","); } //console.debug(show_point); Shadowbox.open({ player: 'html', content: '', height: 700, width: 900,title: "
Cyklomapa Atlas
",options: { onFinish: function(item){ //alert("ok"); setupMap("shadowbox_content",0,show_point,my_zoom, my_lat, my_lng); }, enableKeys:false } }); }; function toogle_reset (pole,show_window) { if (!pole) pole = "shadowbox_content"; if (!show_window) show_window = 0; if (my_all) { my_all = 0; } else { my_all = 1; } setupMap(pole,show_window,0,6,49.5,16.3,0,my_all); } 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!\nPlease ensure that the file has a valid path."); } if(map==null) marker.openInfoWindowHtml(main); else map.openInfoWindowHtml(marker, main); //alert(main); //return main; } htmlData.open("GET", url, true); htmlData.send( null ); } else { alert("Your browser do not support AJAX request!"); } }