// JavaScript Document
//var centerLatitude = 40.890170;
//var centerLongitude = -1.008250;
var centerLatitude = 40.891410;
var centerLongitude = -1.006830;
var startZoom = 11;
var map;
var description = "<p><b>La Casa del Azafr&aacute;n</b><br /><span style='font-size:12pt;'>Casa de Turismo Rural</span><div style='width:400px;font-size:10pt;'><img src='img/fondo_principal.jpg' width='100px' align='left' hspace='5' />C/ La plaza, 19<br />C.P: 44223<br />Villanueva del Rebollar de la Sierra (Teruel)<br />Tlf: (646)953251</div></p>";
function init()
{
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"));
var location = new GLatLng(centerLatitude, centerLongitude);
map.setCenter(location, startZoom);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
// Create our "tiny" marker icon
        var blueIcon = new GIcon(G_DEFAULT_ICON);
        blueIcon.image = "img/iconMaps.png";
		
		// Set up our GMarkerOptions object
		markerOptions = { icon:blueIcon };

var marker = new GMarker(location, markerOptions)
map.addOverlay(marker);
marker.openInfoWindowHtml(description);
 GEvent.addListener(marker, "click", function() {    
 marker.openInfoWindowHtml(description);  });  
}
}
window.onload = init;
window.onunload = GUnload;

//key="ABQIAAAA215EQcWYR4gEQN-q1Jc5RxQVtHxXMb40NmFU6RXc8GpMije8nBSIq8DMbLRlQ05YV45i7ETwnuY0kw" online
//key=ABQIAAAA215EQcWYR4gEQN-q1Jc5RxQiZTLx0WcFZNlVDfkFtz98lYB9BBTXRPDnvzSFTibHLza5tSDA_mJFOg offline
