function openUserWin(user_url,user_width,user_height) {
  if(!user_width)  user_width=740;
  if(!user_height) user_height=520;
  t = new Date();  
  window.open(user_url, 'plan' + t.getMilliseconds(), 'width='+ user_width +' , height=' + user_height +', status=no, toolbar=no, location=no, menubar=no, resizable=no, scrollbars').focus();
}

function hideAndShow(id,type,x,y,name) {
  name = encodeURI(name);
  if (type == 'event') {
    if (document.getElementById(id+'.1').style.display == 'none') {
      document.getElementById(id+'.1').style.display = '';
      document.getElementById(id+'.2').firstChild.nodeValue = 'Details schließen';
    } else {
      document.getElementById(id+'.1').style.display = 'none';
      document.getElementById(id+'.1').style.height = '0px';
      document.getElementById(id+'.2').firstChild.nodeValue = 'mehr';
    }
  } else {
    if (document.getElementById('map.'+id+'.1').height == '0') {   
      x = x+0.01;
      y = y+0.01;
      document.getElementById('map.'+id+'.1').src = 'http://www.radeln-in-brandenburg.de/Default.aspx?mode=map&layers=BB&mapsize=642+230&mapxy='+x+'+'+y+'&buffer=3650&map_fahne_feature=new&map_fahne_feature_points='+x+'+'+y+'&map_beschrift_feature=new&map_beschrift_feature_points='+(x-100)+'+'+(y+300)+'&map_beschrift_feature_text='+name+'&layers=BB';
      document.getElementById('map.'+id+'.1').height = '230';
      document.getElementById('map.'+id+'.1').width = '642';
      document.getElementById('map.'+id+'.2').firstChild.nodeValue = 'Detailkarte ausblenden';
      document.getElementById('map.'+id+'.3').style.display = '';
    } else {
      //document.getElementById('map.'+id+'.1').src = 'about:blank';
      document.getElementById('map.'+id+'.1').height = '0';
      document.getElementById('map.'+id+'.1').width = '0';
      document.getElementById('map.'+id+'.2').firstChild.nodeValue = 'Detailkarte anzeigen';
      document.getElementById('map.'+id+'.3').style.display = 'none';
      
    }
  }
}

