var a=new Array();
var colorCount=0;
var Timer;
var hLight;
window.onload=load;

function switcher(Ebene)
 {
 document.getElementById(Ebene).style.display = "none";
 document.getElementById('Feld_2').style.display = "inline";
 }

function load()
  {
  a=document.getElementById('menue').getElementsByTagName('a');
  }

function LoadAll(arrayID)
  {
  if(colorCount<255)
  {
    a[arrayID].style.color="rgb("+colorCount+","+colorCount+","+colorCount+")";
    colorCount-=4;
  }
  Timer=setTimeout("LoadAll("+arrayID+");",15);
  }


function OMOver(arrayID)
  {
  clearTimeout(Timer);
  colorCount=136;
  LoadAll(arrayID); 
  }

function nix()
  {
colorCount=145;
  }

function LoadAll2(hLight)
  {
  if(colorCount<255)
    {
    hLight.style.color="rgb("+colorCount+","+colorCount+","+colorCount+")";
    colorCount+=10;
	Timer=setTimeout("nix(hLight)",30);
    }
  }


function OMOver2()
  {
  
  clearTimeout(Timer);
  colorCount=135;
  if(colorCount<255)
    {
    this.style.color="rgb("+colorCount+","+colorCount+","+colorCount+")";
	colorCount+=1;
	//setTimeout("LoadAll2(hLight)",30);
	}
   
  }

function OMOut(hLight)
  {
  colorCount=245;
  hLight.style.color = "#888888";
  }

function changeImage(img_nr) {
	document.getElementById("imageBQS").src = img_nr;
	return false;
}