function highlightEway()
{
   var element = getElement("ThreeButtons1");
   element.getElementsByTagName('a')[0].style.color="#ffffff";
   setBackgroundImg(element,"/media/css/refbuttonHighLight.png");
   setTimeout("dehighlightEway()", 3000);
}

function dehighlightEway()
{
   var element = getElement("ThreeButtons1");
   element.getElementsByTagName('a')[0].style.color="#ff6633";
   setBackgroundImg(element,"/media/css/refbutton.png");
}



function highlightDemo()
{
   var element = getElement("ThreeButtons2");
   element.getElementsByTagName('a')[0].style.color="#ffffff";
   setBackgroundImg(element,"/media/css/refbuttonHighLight.png");
   setTimeout("dehighlightDemo()", 3000);
}

function dehighlightDemo()
{
   var element = getElement("ThreeButtons2");
   element.getElementsByTagName('a')[0].style.color="#ff6633";
   setBackgroundImg(element,"/media/css/refbutton.png");
}



function highlightDownload()
{
   var element = getElement("ThreeButtons3");
   element.getElementsByTagName('a')[0].style.color="#ffffff";
   setBackgroundImg(element,"/media/css/refbuttonHighLight.png");
   setTimeout("dehighlightDownload()", 3000);
}

function dehighlightDownload()
{
   var element = getElement("ThreeButtons3");
   element.getElementsByTagName('a')[0].style.color="#ff6633";
   setBackgroundImg(element,"/media/css/refbutton.png");
}



function highlightKontakt()
{
var element = getElement("menu_Kontakt");
element.getElementsByTagName('a')[0].style.color="#ffffff";
setBackgroundImg(element.firstChild,"/media/css/menubut_top_topHighLight.png");
setBackgroundImg(element.firstChild.firstChild,"/media/css/menubut_top_leftHighLight.png");
setBackgroundImg(element.firstChild.firstChild.firstChild,"/media/css/menubut_top_rightHighLight.png");

element.firstChild.style.backgroundRepeat = "repeat-x";
element.firstChild.firstChild.style.backgroundRepeat = "no-repeat";
element.firstChild.firstChild.firstChild.style.backgroundRepeat = "no-repeat";
element.firstChild.firstChild.style.backgroundPosition = "left top";
element.firstChild.firstChild.firstChild.style.backgroundPosition = "right top";
setTimeout("dehighlightKontakt()", 3500);
}

function dehighlightKontakt()
{
var element = getElement("menu_Kontakt");
element.getElementsByTagName('a')[0].style.color="#000";
setBackgroundImg(element.firstChild,"/media/css/menubut_top.png");
setBackgroundImg(element.firstChild.firstChild,"/media/css/menubut_top_left.png");
setBackgroundImg(element.firstChild.firstChild.firstChild,"/media/css/menubut_top_right.png");
element.firstChild.style.backgroundRepeat = "repeat-x";
element.firstChild.firstChild.style.backgroundRepeat = "no-repeat";
element.firstChild.firstChild.firstChild.style.backgroundRepeat = "no-repeat";
element.firstChild.firstChild.style.backgroundPosition = "top left";
element.firstChild.firstChild.firstChild.style.backgroundPosition = "top right";

}




function getElement(id) {
  if (document.layers)
	return document[id];
  else if (document.all)
	return document.all[id];
  else if (document.getElementById)
	return document.getElementById(id);
}

function setBackgroundImg(element,imageURL){
  if (document.layers)
  {
     if(imageURL == 'none')
	element.background.src = null;
    else 
	element.background.src = imageURL;
  }
  else
  {
    if(imageURL == 'none')
      element.style.backgroundImage = 'none';
    else
      element.style.backgroundImage = 'url(' + imageURL + ')';
  }
}

