

   function openWindow(url)
    {
      window.open(url,'popup','width=508,height=408,directories=0,location=0,menubar=0,status=0,titlebar=0,toolbar=0');
      return false;
    }

		function previewPic(sel) {
      images = new Array();
      images[9] = "gfx/popups/lincoln2-2.gif";
      images[37] = "gfx/popups/cadillac1.gif";
      images[35] = "gfx/popups/hummer.gif";
      images[38] = "gfx/popups/windsor.gif"
	  images[39] = "gfx/popups/cadillac4.gif";
      images[40] = "gfx/popups/scloud2.gif";
      images[41] = "gfx/popups/shadow.gif";
	  images[42] = "gfx/popups/scloud1-1.gif";
	  images[43] = "gfx/popups/300C_zwartgrijs.gif";
	  images[44] = "gfx/popups/chrysler.gif";
	  images[58] = "gfx/popups/bmw.gif";
	  images[63] = "gfx/popups/hummerh2.gif";
	  document.previewpic.src = images[sel];
		}
		
		function previewPic2(sel) {
      images = new Array();
       images[9] = "gfx/popups/lincoln2-2.gif";
        images[37] = "gfx/popups/cadillac1.gif";
      images[35] = "gfx/popups/hummer.gif";
      images[38] = "gfx/popups/windsor.gif"
	  images[39] = "gfx/popups/cadillac4.gif";
        images[40] = "gfx/popups/scloud2.gif";
      images[41] = "gfx/popups/shadow.gif";
	  images[42] = "gfx/popups/scloud1-1.gif";
	  images[43] = "gfx/popups/300C_zwartgrijs.gif";
	  images[44] = "gfx/popups/chrysler.gif";
	  images[58] = "gfx/popups/bmw.gif";
	  images[63] = "gfx/popups/hummerh2.gif";
	  document.previewpic2.src = images[sel];
		}


window.addEvent('load', function() {
  new DatePicker('.date_toggled', {
    pickerClass: 'datepicker_vista',
    allowEmpty: true,
    days: ['Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'],
    months: ['Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'October', 'November', 'December'],
    inputOutputFormat: 'd-m-Y'
  });
});


//***  Google Maps API
		


  var markers = new Array();

  function initialize() {
    if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map_canvas"));
      map.setCenter(new GLatLng(37.4419, -122.1419), 13);
	  map.setUIToDefault();

    var customUI = map.getDefaultUI();
    // Remove MapType.G_HYBRID_MAP
    customUI.maptypes.hybrid = false;
    map.setUI(customUI);
    map.disableScrollWheelZoom();



    // create icons, voor elke projectsoort één icon plus één default
      var icon = new GIcon(G_DEFAULT_ICON);
      icon.image = "http://maps.google.com/mapfiles/ms/micons/blue.png";
      icon.iconSize = new GSize(32, 32);

    // create markerOptions
      var markerOption = icon;

          marker = new GMarker(new GLatLng(53.209824,5.725894), markerOption);
          GEvent.addListener(marker, "click", function() {
              marker.openInfoWindowHtml("Beurs van Berlage");
            }
          );
        
          map.addOverlay(marker);
}}
//


window.addEvent('domready', function() {
  //startList();

  if ($('emoticons')) {
      $each($$('.emoticon'), function(img) {
          img.addEvent('click', function() {
              $('message').value += ':'+img.title+':';
          });
      });
      $('emoticons').style['display'] = 'block';
  }

});
