function position() {
  var hoehe=0;
  if (navigator.userAgent.match(/7\.0/i)) {
    hoehe=(document.body.clientHeight-containerHeight+50)/2;
  }
  else if (navigator.userAgent.match(/msie/i) || navigator.userAgent.match(/opera/i)) {
    hoehe=(document.body.clientHeight-containerHeight)/2;
  }
  else {
    hoehe=(document.body.clientHeight-containerHeight+80)/2;
  }
  if (hoehe>0) { document.getElementById('container').style.marginTop=hoehe+'px'; }
}

function showmap(picture,width,height) {
  F1 = window.open('','Fenster','width='+width+',height='+height+',dependent=yes,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no')
  var str = '';
  str += '<html>';
  str += '<head>';
  str += '<title>Sporthotel Floralpina</title>';
  str += '</head>';
  str += '<body onclick="self.close();" style="background-image:url('+picture+');background-repeat:no-repeat;background-position:0px 0px;cursor:pointer;">';
  str += '</body>';
  str += '</html>';
  F1.document.write(str);
}

function loadflash(getdirname) {
  var str = '';
  str += '<object type="application/x-shockwave-flash" data="'+getdirname+'/flash/movie.swf" width="853" height="306">';
  str += '  <param name="allowScriptAccess" value="sameDomain" />';
  str += '  <param name="movie" value="'+getdirname+'/flash/movie.swf" />';
  str += '  <param name="src" value="'+getdirname+'/flash/movie.swf" />';
  str += '  <param name="loop" value="true" />';
  str += '  <param name="menu" value="false" />';
  str += '  <param name="quality" value="high" />';
  str += '  <param name="play" value="true" />';
  str += '  <param name="swLiveConnect" value="false" />';
  str += '</object>';
  document.getElementById('flashmovie').innerHTML = str;
}