﻿// list functions     //                                         

function invertRow (elmt) {
	e = document.getElementById("r"+elmt);
	e.style.backgroundColor = "#000";
	e.style.color = "#ffffff";
}

function normalizeRow(elmt) {
	e = document.getElementById("r"+elmt);
	e.style.backgroundColor = "#EEEED8";
	e.style.color = "#000000";
}

function invertRowList (elmt) {
	eA = document.getElementById("r"+elmt+'A');
	eB = document.getElementById("r"+elmt+'B');
	eC = document.getElementById("r"+elmt+'C');
	eD = document.getElementById("r"+elmt+'D');
	eA.style.backgroundColor = eB.style.backgroundColor = eC.style.backgroundColor = eD.style.backgroundColor ="#CDBE00";
	eA.style.color = eB.style.color = eC.style.color = eD.style.color = "#ffffff";
}

function normalizeRowList (elmt) {
	eA = document.getElementById("r"+elmt+'A');
	eB = document.getElementById("r"+elmt+'B');
	eC = document.getElementById("r"+elmt+'C');
	eD = document.getElementById("r"+elmt+'D');
	eA.style.backgroundColor = eB.style.backgroundColor = eC.style.backgroundColor = eD.style.backgroundColor ="#EEEED8";
	eA.style.color = eB.style.color =  eC.style.color = eD.style.color ="#000000";
}


// roll over funktion //

function movein(which,html){
if (document.getElementById)
document.getElementById("boxdescription").innerHTML=html
else
boxdescription.innerHTML=html
}

function moveout(which){
if (document.getElementById)
document.getElementById("boxdescription").innerHTML='&nbsp;'
else
boxdescription.innerHTML='&nbsp;'
}

function movein2(which,html){
if (document.getElementById)
document.getElementById("boxdescription2").innerHTML=html
else
boxdescription2.innerHTML=html
}

function movein3(which,html){
if (document.getElementById)
document.getElementById("boxdescription3").innerHTML=html
else
boxdescription3.innerHTML=html
}


// layer ein aus                   // 

function nav(szDivID, iState) // 1 visible, 0 hidden
{
	if(document.layers)    //NN4+
	{
		document.layers[szDivID].visibility = iState ? "show" : "hide";
	}
	else if(document.getElementById)      //gecko(NN6) + IE 5+
	{
		var obj = document.getElementById(szDivID);
		obj.style.visibility = iState ? "visible" : "hidden";
	}
	else if(document.all)       // IE 4
	{
		document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
	}
}

function backgroundchange(){
   var randomzahl=Math.random();
   randomzahl*=7;
   randomzahl=Math.ceil(randomzahl);
   
   image="images/background_images/background_"+randomzahl+".jpg";
   document.getElementById('pic_title').style.backgroundImage='url('+image+')';
  
}