function initialize()
{
  var myLatlng = new google.maps.LatLng(50.960, 8.000);
  var myOptions = { zoom:12, center:myLatlng, mapTypeId:google.maps.MapTypeId.ROADMAP }
  var map = new google.maps.Map(document.getElementById("content_map"), myOptions);

  var posGlonk = new google.maps.LatLng(51.00432,7.97993);
  var markGlonk = new google.maps.Marker({ position:posGlonk, map:map, title:"Jugendtreff Glonk" });
  var infoGlonk = '<div class="content_gmaps-info"><p><strong>Jugendtreff Glonk</strong></p></div>';

  var posBusch = new google.maps.LatLng(50.934575,8.008195);
  var markBusch = new google.maps.Marker({ position:posBusch, map:map, title:"Jugendtreff Busch-Hütte" });
  var infoBusch = '<div class="content_gmaps-info"><p><strong>Jugendtreff Busch-Hütte</strong></p></div>';

  var posJBS = new google.maps.LatLng(50.96061,7.99487);
  var markJBS = new google.maps.Marker({ position:posJBS, map:map, title:"Jugendbegegnungsstätte JBS" });
  var infoJBS = '<div class="content_gmaps-info"><p><strong>Jugendbegegnungsstätte JBS</strong></p></div>';

  var posPaletti = new google.maps.LatLng(50.97921,7.96823);
  var markPaletti = new google.maps.Marker({ position:posPaletti, map:map, title:"Jugendtreff Paletti" });
  var infoPaletti = '<div class="content_gmaps-info"><p><strong>Jugendtreff Paletti</strong></p></div>';

  var posMeltingPot = new google.maps.LatLng(50.969801,7.988432);
  var markMeltingPot = new google.maps.Marker({ position:posMeltingPot, map:map, title:"Jugendtreff Melting Pot" });
  var infoMeltingPot = '<div class="content_gmaps-info"><p><strong>Jugendtreff Melting Pot</strong></p></div>';

  var infoWindow = new google.maps.InfoWindow();
  google.maps.event.addListener(markGlonk, 'click', function() { infoWindow.content = infoGlonk; infoWindow.open(map, markGlonk); });
  google.maps.event.addListener(markBusch, 'click', function() { infoWindow.content = infoBusch; infoWindow.open(map, markBusch); });
  google.maps.event.addListener(markJBS, 'click', function() { infoWindow.content = infoJBS; infoWindow.open(map, markJBS); });
  google.maps.event.addListener(markPaletti, 'click', function() { infoWindow.content = infoPaletti; infoWindow.open(map, markPaletti); });
  google.maps.event.addListener(markMeltingPot, 'click', function() { infoWindow.content = infoMeltingPot; infoWindow.open(map, markMeltingPot); });
}

$(document).ready(function()
{
  function unmaskMail(mailLink){$.ajax({type:"POST",url:"/_ajax.unmaskMail.php",data:{code:mailLink.attr("rel")},dataType:"json",error:function(XMLHttpRequest, textStatus, errorThrown){alert(textStatus + "\n" + errorThrown);},success:function(data){if(data.error){alert(data.error);}else{mailLink.attr("href", data.href);mailLink.html(data.title);mailLink.removeAttr("rel");mailLink.removeAttr("target");}}});}
  $("a[href^='/email-anzeigen']").click(function(){var mailLink = $(this); if (mailLink.attr("rel")){unmaskMail(mailLink);return false;} });

  $("#i_keywords").val("Suchbegriff eingeben").focus(function ()
  {
    search_field = $(this);
    if (search_field.val() == "Suchbegriff eingeben")
      search_field.val("");
  }).blur(function ()
  {
    search_field = $(this);
    if (search_field.val() == "")
      search_field.val("Suchbegriff eingeben");
  });

  if (typeof window.flashVars == "undefined")
    var flashVars = { };
  else
    var flashVars = window.flashVars;
  var flashPara = { wmode:'opaque' };
  SV.simpleviewer.load("content_gallery-flash", "100%", "100%", "6E6E70", true, flashVars, flashPara);
});
