//
//Fenster oeffnen -----------------------------

if(!parent.fenster){
	parent.fenster=0;
}
var pano;

function openBrWindow(theURL,winName, w,h) {

if(parent.fenster!=0){
	parent.fenster.close();
}
parent.fenster=0;

//features ergänzen

if(!w){
	w = 500;
}
if(!h){
	h = 500;
}

//entweder impressum oeffnen

if(theURL == "impressum.html"){
	parent.fenster = window.open(theURL,"impressum","scrollbars=yes, resizable=yes, width=" + w + ",height=" + h);

//oder ein jpg-fenster

}else{
	parent.fenster = window.open(theURL,parent.fenster,"scrollbars=no, resizable=yes, width=" + (w + 70) + ",height=" + (h + 90));
	parent.fenster.focus();
	parent.fenster.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><title>Nova Via K&uuml;nstler</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head><body style='margin: 0px; padding: 0px;'><table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td><div align='center'><a href='javascript: window.close()'><img src='" + theURL + "' border=0></a></div></td></tr><tr><td>&nbsp;</td></tr></table></body></html>");
 
}

}

//Panorama
function flashwindow(theURL){
	pano = window.open(theURL,"360","scrollbars=no, resizable=yes, width=550, height=350");
	pano.focus();
}


//Frameset nachladen ---------------------------

if (top.location == self.location && window.name!="kunst" && window.name!="impressum") {
	this.location.href = "index.html";
}


//Menu -----------------------------------------


wahl=0;

function auswaehlen(ziel){
	document.getElementById(ziel).blur();
	if(ziel && document.getElementById){
		altwahl=wahl;
		wahl=ziel;
		
		//alte wahl abstellen
		if(altwahl!=wahl){
			document.getElementById(altwahl).style.backgroundColor = "";				
		}
		
	}
}
function farbe_ein(ziel, wert) {
  if (ziel && document.getElementById) {
	if(wert){
	   document.getElementById(ziel).style.backgroundColor = wert;
	}else{
	   document.getElementById(ziel).style.backgroundColor = "#F0F0F1";
	}

  }
}

function farbe_aus(ziel) {
  if (ziel && document.getElementById && wahl!=ziel) {
	   document.getElementById(ziel).style.backgroundColor = "";

  }
}