// JavaScript Document

function Go(x) {
 if(x == "nothing") {
 	document.multiauswahl.reset();
    return;
 }
 else if(x == "end")
   top.location.href = parent.frames[1].location;
 else {
   window.location.href = x;

 }
}


if (document.images) {
	nav1on = new Image(); nav1on.src = "images/maps/nav1.gif";
	nav2on = new Image(); nav2on.src = "images/maps/nav2.gif";
	nav3on = new Image(); nav3on.src = "images/maps/nav3.gif";
	nav4on = new Image(); nav4on.src = "images/maps/nav4.gif";
	nav5on = new Image(); nav5on.src = "images/maps/nav5.gif";
	nav6on = new Image(); nav6on.src = "images/maps/nav6.gif";
	nav7on = new Image(); nav7on.src = "images/maps/nav7.gif";
	nav8on = new Image(); nav8on.src = "images/maps/nav8.gif";
	nav9on = new Image(); nav9on.src = "images/maps/nav9.gif";
	nav10on = new Image(); nav10on.src = "images/maps/nav10.gif";
	nav11on = new Image(); nav11on.src = "images/maps/nav11.gif";
	nav12on = new Image(); nav12on.src = "images/maps/nav12.gif";
	nav13on = new Image(); nav13on.src = "images/maps/nav13.gif";
	nav14on = new Image(); nav14on.src = "images/maps/nav14.gif";
	nav15on = new Image(); nav15on.src = "images/maps/nav15.gif";
	nav16on = new Image(); nav16on.src = "images/maps/nav16.gif";
	nav17on = new Image(); nav17on.src = "images/maps/nav17.gif";
	nav18on = new Image(); nav18on.src = "images/maps/nav18.gif";
	nav19on = new Image(); nav19on.src = "images/maps/nav19.gif";
	navoff = new Image(); navoff.src = "images/nordsee.gif";
}

function rollOn(img1,img2,text){
	str = "window.status = '" + text + "'";
	if (document.all) setTimeout(str,5); // this is a hack to fix bug in IE on PC
    else window.status = text;
	if (document.images) {
		document.navs.src=eval(img1 + "on.src");
		
	}
}

function rollOff(){
    window.status = "";	
	if (document.images) {
		document.navs.src=navoff.src;
		
	}
}

function belegung (weitergabe) {
	var breite = screen.width/2-225;
	var hoehe = screen.height/2-300;
	if (window.offen && !offen.closed){
		offen.focus();
	}
	else {
		offen = window.open("kalender.php?objekt="+weitergabe+"", "Belegungskalender", "left="+breite+",top="+hoehe+",width=450,height=600" );
	}
}

function popup (weitergabe) {
	var breite = screen.width/2-400;
	var hoehe = screen.height/2-300;
	if (window.offen && !offen.closed){
		offen.focus();
	}
	else {
		offen = window.open("fotoanzeigelarge.php?id="+weitergabe+"", "Foto", "left="+breite+",top="+hoehe+",width=600,height=500" );
	}
}


