function ow(url,w,h,i,rel)
{
 w = window.open(url,"Fenster","width="+w+",height="+h+",top=100,left=200");
 var html = "<html>"+
            "<head>"+
            "<title></title>"+
            "<link rel=\"stylesheet\" href=\""+rel+"css/format.css\" type=\"text/css\">"+
            "<meta name='author' content='raumbezug GbR'>"+
            "</head>"+
            "<body leftmargin='0' topmargin='0'>"+
            "<img src=\""+i+"\" width="+w+" height="+(h-20)+">"+
            "<p style=\"text-align:center;width:"+w+";background-color:#EFEFEF;height:20px;\"><a href=\"javascript:window.close();\">Fenster schließen</a></p>"+
            "</body>"+
            "</html>";
 w.focus();
 w.document.writeln(html);
 w.document.close();
}

function karte() {
 karte_win=window.open('http://www.expo-park-hannover.de/flash/karte.html','','resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=auto,toolbar=0,width=850,height=590');
 karte_win.focus();
}


var y = 0;
//var end_y = 135;

function showelement(id,h,t) {
 if(y == 0) {
 e = document.getElementById(id);
 e.style.display = 'block';
 auf(h,t);
 }
 else zu(t);
}

function auf(end_y,t) {

 if(y < end_y) {
  y += 10;
  e.style.height = y+'px';
  //alert(t);
  var zeit = window.setTimeout('auf('+end_y+','+t+')', t);
  }
 else window.clearTimeout(zeit);
}

function zu(t) {
 if(y > 0) {
  y -= 10;
  e.style.height = y+'px';
  if(y == 0) e.style.display = 'none';
   var zeit = window.setTimeout('zu('+t+')',t);
  }
  else {
   window.clearTimeout(zeit);
  }
}
