function punkt_set() {
      if (document.images && document.getElementById) {
	  	 imgName="m"+MenuePos;
		 document.images[imgName].src="img/rot.gif";
	  }
}
function punkt(MenueNr) {
      if (document.images && document.getElementById) {
	  	 imgName="m"+MenueNr;
		 trId="tr"+MenueNr;
         document.images[imgName].src="img/rot.gif";
		 document.getElementById(trId).style.backgroundColor="#D3E7DE";
	  }
}
function punkt_off(MenueNr) {
      if (document.images && document.getElementById) {
	     imgName="m"+MenueNr;
		 trId="tr"+MenueNr;
		 if(MenueNr != MenuePos)
         	document.images[imgName].src="img/blank.gif";
		 document.getElementById(trId).style.backgroundColor="";
	  }
}
if(document.getElementById('pixlie-vorschaubild')){
	document.write("<style type='text/css'>#pixlie-vorschaubild {visibility:hidden;}</style>");
}

function initImage()
{
  if(document.getElementById('pixlie-vorschaubild')){
  	imageId = 'pixlie-vorschaubild';
  	image = document.getElementById(imageId);
  	setOpacity(image, 0);
  	image.style.visibility = "visible";
  	fadeIn(imageId,0);
  }
}

function fadeIn(objId,opacity)
{
  if (document.getElementById)
  {
    obj = document.getElementById(objId);
    if (opacity <= 100)
    {
      setOpacity(obj, opacity);
      opacity += 1;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 10);
    }
  }
}

function setOpacity(obj, opacity)
{
  opacity = (opacity == 100)?99.999:opacity;
  // Internet Explorer
  obj.style.filter = "alpha(opacity:"+opacity+")";
  // Safari unter Version 1.2 und Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  // ältere Mozilla Browser und Firefox
  obj.style.MozOpacity = opacity/100;
  // Safari ab Version 1.2, neuerer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}

