// JavaScript Document
function set_destination(destination) {
	var f, s, i = 0;
	if ((f = document.forms[0]) && (s = f.elements['destination'])) {
		for (var l = s.options.length; i < l; i++) {
			if (s.options[i].value.toLowerCase() == destination.toLowerCase()) {
				s.options[i].selected = true;
				return;
			}
		}
	}
}
function set_form_focus() {
	var f, d, n;
	f = document.forms[0];
	d = f.elements['destination'];
	n = f.elements['point-of-departure'];
	if(d.options[0].selected == true) {
		d.focus();
	}
	else {
		n.focus();
	}
}


function initialize() {
	var myLatlng = new google.maps.LatLng(59.32517, 18.06960);
	var myOptions = {
	  zoom: 14,
	  center: myLatlng,
	  mapTypeId: google.maps.MapTypeId.ROADMAP
	}
	var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
	
	var marker = new google.maps.Marker({
		position: myLatlng, 
		map: map,
		title:"Travel 2"
	});   
}

