function position() {
  var hoehe=0;
  if (navigator.userAgent.match(/7\.0/i)) {
    hoehe=(document.body.clientHeight-containerHeight+100)/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+100)/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 evalSound(id) {
	setTimeout("stoppen('"+id+"')",25000);
  if(document.getElementById('musik'+id).innerHTML=='Stop') {
  	soundManager.stop('snd'+id);
    document.getElementById('musik'+id).innerHTML = 'Play';
  } else {
		soundManager.play('snd'+id);
    document.getElementById('musik'+id).innerHTML = 'Stop';
  }
}

function stoppen(id) {
 	soundManager.stop('snd'+id);
  document.getElementById('musik'+id).innerHTML='Play';
}