function showNav()
{
if(document.body.offsetHeight<630&&location.href.indexOf("index.")!="-1")
	{
	txt=document.getElementsByTagName("h1")[0].innerHTML;
	document.getElementsByTagName("h1")[0].innerHTML="<span style='color:red;font-size:12px;text-transform:none;letter-spacing:0px'>Bitte klicken Sie auf &bdquo;Kunst&rdquo;, um die Navigation &bdquo;Musik&rdquo; vollst&auml;ndig sichtbar zu machen!</span>";
	setTimeout("document.getElementsByTagName('h1')[0].innerHTML=txt;",3000);
	}
}
function selectNav()
{
anzahl=document.links.length;
for(i=0;i<anzahl;i++)
	{
	if(location.href.indexOf(document.getElementsByTagName("a")[i])!="-1")
		{
		document.getElementsByTagName("a")[i].style.fontWeight="bold";
		document.getElementsByTagName("a")[i].style.color="#333333";
		}
	}
}
function hideMusic()
{
if(document.getElementById("Musik").style.display=="none")
document.getElementById("Musik").style.display="block";
else
document.getElementById("Musik").style.display="none";
}
function hideArt()
{
if(document.getElementById("Kunst").style.display=="none")
document.getElementById("Kunst").style.display="block";
else
document.getElementById("Kunst").style.display="none";
}
function nachOben()
{
window.scrollTo(0,0);
}
/**************************Seite neu aufbauen bei Aenderung der Fenstergroesse***************************************/
function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}
function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}
function neuAufbau ()
{
if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
	{
	location.href = location.href;
	if(location.href.indexOf("discography")!="-1"||location.href.indexOf("documentation")!="-1"||location.href.indexOf("media_music")!="-1"||location.href.indexOf("WL_index")!="-1"||location.href.indexOf("imageSearch")!="-1")
		reloadSite();}
}

/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth||window.opera) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}
function setSize()
{
showNav();
selectNav();
if(navigator.appVersion.indexOf("MSIE 6")!="-1")
	{
	x=document.getElementById("myWindow").offsetWidth-383;
	y=document.getElementById("myWindow").offsetHeight-216;
	document.getElementById("horizLine").style.width=x+"px";
	if(location.href.indexOf("/documentation")!="-1")
		document.getElementById("theText").style.width=(x+14)+"px";
	else
		{
		if(navigator.appVersion.indexOf("MSIE 6")!="-1")
			document.getElementById("theText").style.width=(x+7)+"px";
		}
	document.getElementById("verticalLine").style.height=y+"px";
	document.getElementById("bottomDiv").style.bottom="-1px";
	document.getElementById("verticalLine").style.visibility="visible";
	document.getElementById("horizLine").style.visibility="visible";
	}
/*if(navigator.appVersion.indexOf("MSIE 7")!="-1")
	document.getElementById("logo").style.marginLeft="60px";*/
}
function setDiaschau()
{
if(navigator.appVersion.indexOf("MSIE")=="-1")
	{	
	if(AnzBer>662)
		{
		document.getElementById("Diaschau2").style.display="none";
		document.getElementById("Diaschau").style.display="block";
		}
	}
else
	{
	document.getElementById("Diaschau2").style.display="none";
	document.getElementById("Diaschau").style.display="none";
	}
}
function setIE7_Size()
{
if(navigator.appVersion.indexOf("MSIE 7")!="-1")
	{
	x=document.getElementById("myWindow").offsetWidth-383;
	y=document.getElementById("myWindow").offsetHeight-216;
	document.getElementById("horizLine").style.width=x+"px";
	if(location.href.indexOf("/documentation")!="-1")
		document.getElementById("theText").style.width=(x+14)+"px";
	else
		document.getElementById("theText").style.width=(x+7)+"px";
	document.getElementById("verticalLine").style.height=y+"px";
	document.getElementById("bottomDiv").style.bottom="0px";
	document.getElementById("verticalLine").style.visibility="visible";
	document.getElementById("horizLine").style.visibility="visible";
	}
}