function showSub(id) {
	var container = document.getElementById('submenu_'+id);
	container.style.display = "block";
}
function hideSub(id) {
	var container = document.getElementById('submenu_'+id);
	container.style.display = "none";
}

function showSubCont() {
	var container = document.getElementById('continent');
	container.style.display = "block";
}

function hideSubCont() {
	var container = document.getElementById('continent');
	container.style.display = "none";
}

function showDetailContinent(id) {
	var container = document.getElementById('continent_'+id);
	container.style.display = "block";
}
function hideDetailContinent(id) {
	var container = document.getElementById('continent_'+id);
	container.style.display = "none";
}
function new_window_sb(url) {
	link = window.open(url,"PrintWindow","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,left=270,top=60,width=630,height=560");
}
function new_window(url) {
	link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=0,left=270,top=60,width=530,height=430");
}
function InsertObject1()
{
document.write('<object');
document.write('        classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write('        id="Movie1"');
document.write('        width="413" height="225"');
document.write('      >');
document.write('        <param name="movie" value="/swf/world.swf?data_file=/swf/data.xml">');
document.write('        <param name="bgcolor" value="#FFFFFF">');
document.write('        <param name="quality" value="high">');
document.write('        <param name="wmode" value="transparent">');
document.write('        <param name="base" value="http://miel.travel">');
document.write('        <param name="allowscriptaccess" value="samedomain">');
document.write('        <embed');
document.write('          type="application/x-shockwave-flash"');
document.write('          pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
document.write('          name="Movie1"');
document.write('          width="413" height="225"');
document.write('          src="/swf/world.swf?data_file=/swf/data.xml"');
document.write('          bgcolor="#FFFFFF"');
document.write('          quality="high"');
document.write('          wmode="transparent"');
document.write('          base="http://miel.travel"');
document.write('          allowscriptaccess="samedomain"');
document.write('        >');
document.write('          <noembed>');
document.write('          </noembed>');
document.write('        </embed>');
document.write('      </object>');
}

function blockError(){return true;}
window.onerror = blockError;




  	var my_url = 'http://miel.travel/';
	var map;
	function initialize() {
	
	var myLatlng = new google.maps.LatLng(42.692341, 23.315252);
	  var myOptions = {
		zoom: 16,
		center: myLatlng,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	  }
	  
	  map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
	  var markers = document.getElementsByTagName("marker");
	  //alert(markers.length);
	  for (var i = 0; i < markers.length; i++) {
		var latlng = markers[i].getAttribute("latlng");
	//	alert(latlng);
		var lat_arr = latlng.split(", ");
		//alert(lat_arr[0]);
		var location = new google.maps.LatLng(lat_arr[0], lat_arr[1]);
		//alert(location);
		 var marker = new google.maps.Marker({
			position: location, 
			map: map
		});
		var j = i + 1;
		var name = markers[i].getAttribute("name");
		var address = markers[i].getAttribute("address");
		var phone = markers[i].getAttribute("phone");
		var id = markers[i].getAttribute("id");
		marker.setTitle(j.toString());
		attachSecretMessage(marker, name, address, phone, id);
	
	  }
	}
	
	function attachSecretMessage(marker, name, address, phone, id) {
	  var infowindow = new google.maps.InfoWindow(
		  { content: name + "<br />" + address + phone + "<br />"
	
		  });
	  google.maps.event.addListener(marker, 'click', function() {
		infowindow.open(map,marker);
	  });
	}
