var last=0,D=document;
var n4=D.layers,i4=D.all,n6=D.getElementById&&!D.all;
var nav=navigator.userAgent;nav=nav.toLowerCase();
var msie=(nav.indexOf("opera")>0)?0:1;

function MP(i) {
   s=i.src;
   if (i4&&msie) if (s.search(/.png/)!=-1) i.outerHTML='<span style="font-size:1pt;'+'width:'+i.width+'px;height:'+i.height+'px;display:inline-block;'+i.style.cssText+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+s+"', sizingMethod='scale');"+'"></span>'; 
   };

function overc(n) {n.style.backgroundImage="url(logo/checkin.jpg)";};
function outc(n) {if (last) n.style.backgroundImage="url(logo/checkin.gif)";};
function overx(n) {n.style.backgroundImage="url(logo/aktiv.jpg)";};
function outx(n) {if (last!=n) n.style.backgroundImage="";};
function ELE(n) {return D.getElementById(n);};
function cl(n,x) {
if (last) last.style.backgroundImage=""; else D.getElementById("bb").style.backgroundImage="url(logo/checkin.gif)";
last=x; overx(x);
parent.haupt.location.replace(t[n+1]+((t[n+1].indexOf("?")==-1)?"?":"&")+"from="+SN);
};
function clc(n,x) {
if (last) last.style.backgroundImage="";
last=0;
parent.haupt.location.replace(t[n+1]+((t[n+1].indexOf("?")==-1)?"?":"&")+"from="+SN);
};
function writemenu() {
D.write('<div class="abs" style="top:7',i4?9:7,'px"><table cellspacing=', i4?0:2 ,' style="width:100%"><tr>');
for (i=0;i<t.length;i+=2) document.write('<td style="padding:1px"><div id="b',i,'" class="ared" onclick="cl(',i,',this)" onmouseover="overx(this)" onmouseout="outx(this)"><nobr>',t[i],'</div></td>');
//for (i=0;i<t.length;i+=2) document.write('<td><img src="logo/',t[i],'.gif" onclick="cl(',i,',this)" onmouseover="over(this)" onmouseout="out(this)"></td>');
D.write('</tr></table></div>');
i-=2;
last=ELE("b0"); overx(last);
if (!noload) parent.haupt.location.replace(t[1]+((t[1].indexOf("?")==-1)?"?":"&")+"from="+SN);
};

function over2(n) {
ELE('l'+n).style.backgroundImage="url(logo/bl-o.gif)";
ELE('m'+n).style.backgroundImage="url(logo/bm-o.gif)";
ELE('r'+n).style.backgroundImage="url(logo/br-o.gif)";
};

function out2(n) {
ELE('l'+n).style.backgroundImage="";
ELE('m'+n).style.backgroundImage="";
ELE('r'+n).style.backgroundImage="";
};

function over(n) {
ELE('l'+n).style.backgroundImage="url(logo/bl-o.gif)";
ELE('m'+n).style.backgroundImage="url(logo/bm-o.gif)";
ELE('r'+n).style.backgroundImage="url(logo/br-o.gif)";
};

function out(n) {
ELE('l'+n).style.backgroundImage="";
ELE('m'+n).style.backgroundImage="";
ELE('r'+n).style.backgroundImage="";
};

function register() {parent.haupt.location.replace("anmeldung.php?from="+SN);};
function besucher() {parent.haupt.location.replace("hoteleingang.php?des=eingang&from="+SN);};
function register2() {D.ok.save.value=3; D.ok.submit();};
function sendpwd() {D.ok.save.value=2; D.ok.submit();};
function anfrage(n) {D.ok.save.value=n;D.ok.submit();};