
var getHeight = function () {
	if ( window.innerHeight ) {
		return window.innerHeight;
	}
	if ( document.body.clientHeight ) {
		return document.body.clientHeight;
	}
	return document.documentElement.clientHeight;
}


var getWidth = function () {
	if ( window.innerWidth ) {
		return window.innerWidth;
	}
	if ( document.body.clientWidth ) {
		return document.body.clientWidth;
	}
	return document.documentElement.clientWidth;
}


if ( getHeight() != 740 || getWidth() != 1024 ) {
	window.resizeBy(1024 - getWidth(), 740 - getHeight());
}

var loc = window.location.href.replace(/^.*\/([^?\/]*).*$/, '$1');

var popup = function ( url, width, height ) {
	var left = parseInt((getWidth() - width) / 2);
	var top = parseInt((getHeight() - height) / 2);
	window.open(
		url,
		'popup',
		'dependent=yes,innerHeight='+height+',innerWidth='+width+',left='+left+','
		+ 'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,'
		+ 'top='+top
	);
}

document.writeln('<div id="main"></div>');

document.writeln('<div id="logo"></div>');


document.writeln(
	'<div id="navigation_top">'
	+ '<a'+(loc == '' ? ' class="active"' : '')+' href="./">Hotel</a><br/>'
	+ '<a'+(loc == 'wohnen.html' ? ' class="active"' : '')+' href="./wohnen.html">Wohnen</a><br/>'
	+ '<a'+(loc == 'fruestuecksbuffet.html' ? ' class="active"' : '')+' href="./fruestuecksbuffet.html">Fr&uuml;hst&uuml;cksbuffet</a><br/>'
	+ '<a'+(loc == 'konferenzen.html' ? ' class="active"' : '')+' href="./konferenzen.html">Konferenzen</a><br/>'
	+ '<a'+(loc == 'familienfeiern.html' ? ' class="active"' : '')+' href="./familienfeiern.html">Familienfeiern<br/>&nbsp;& Veranstaltungen</a><br/>'
	+ '<a'+(loc == 'bar.html' ? ' class="active"' : '')+' href="./bar.html">Bar</a><br/>'
	+ '<a'+(loc == 'parken.html' ? ' class="active"' : '')+' href="./parken.html">Parken & Tiefgarage</a><br/>'
	+ '<a href="javascript:void(0)" onclick="popup(\'./images/willkommen/wlan.jpg\', 620, 420)">Internetzugang</a><br/>'
	+ '</div>'
);


document.writeln(
	'<div id="navigation_bottom">'
	+ '<a'+(loc == 'buchung.php' ? ' class="active"' : '')+' href="./buchung.php">Buchungsanfrage</a><br/>'
	+ '<a'+(loc == 'preise.html' ? ' class="active"' : '')+' href="./preise.html">Preise</a><br/>'
	+ '<a'+(loc == 'kontakt.html' ? ' class="active"' : '')+' href="./kontakt.html">Kontakt & Anfahrt</a><br/>'
	+ '<a'+(loc == 'impressum.html' ? ' class="active"' : '')+' href="./impressum.html">Impressum</a><br/>'
	+ '<a'+(loc == 'agb.html' ? ' class="active"' : '')+' href="./agb.html">AGBs</a><br/>'
	+ '<a'+(loc == 'download.html' ? ' class="active"' : '')+' href="./download.html">Downloads</a><br/>'
	+'</div>'
);


document.writeln(
	'<div id="top_right">'
	+ '<a'+(loc == 'callme.php' ? ' class="active"' : '')+' href="./callme.php">'
	+ 'Call-Back-Service:<br/>'
	+ 'Sie wünschen einen R&uuml;ckruf?<br/>'
	+ 'Bitte schreiben Sie uns eine kurze E-Mail mit Ihrer Telefonnummer<br/>'
	+ ' - wir rufen Sie gerne zur&uuml;ck.'
	+ '</a>'
	+'</div>'
);

