function wopen(url, name, w, h) {
  // Adaptada a Explorer y Firefox
  //w += 32;
  //h += 96;
  
  w += 50;
  h += 150;
  /*if(window.showModalDialog) {
    window.showModalDialog(url, name)
  }
  else {*/
  var win = window.open(url,
      name,
      'width=' + w + ',height=' + h + ',' +
      'menubar=no,' +
      'status=no,toolbar=no,resizable=no,directories=no,' +
      'modal=yes,dependent=yes,dialog=yes,scrollbars=yes');
    win.resizeTo(w, h);
    win.focus();
  /*}*/
}

function wclose(){
window.close()
}

function recicla_captcha() {
  var al = (new Date()).getTime();
  $('img_captcha').src='/images/captcha' + "_" + al + ".png";
  return false;
}


Event.observe(window, 'load',
    function() {
      if ($('mapa-google-alpe') != null)
      {
        if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("mapa-google-alpe"));
        map.setCenter(new GLatLng(40.120812, -4.238963), 14);
        map.setUIToDefault();
        
        var message = ["<p>Ctra. Vieja Extremadura s/n<br />45513 Santa Cruz Del Retamar. Toledo. Spain<br />+34 925 794 953</p>"];        
        
        // Creates a marker at the given point
		    // Clicking the marker will hide it
		    function createMarker(latlng, number) {
		      var marker = new GMarker(latlng);
		      marker.value = number;
		      GEvent.addListener(marker,"click", function() {
		        var myHtml = "<b>Creaciones Alpe, S.L.</b><br/>" + message[number -1];
		        map.openInfoWindowHtml(latlng, myHtml);
		      });
		      return marker;
		     }
        
	       var latlng = new GLatLng(40.120812, -4.238963);
	       map.addOverlay(createMarker(latlng, 1));
       }
      }
    }
);
