// JavaScript Document
   function pling(elt) {
   document.getElementById(elt.id.substr(0,4)+'o').style.background='#FAEF94';
   document.getElementById(elt.id.substr(0,4)+'u').style.background='#FAEF94';}
   
   function plong(elt) {
   document.getElementById(elt.id.substr(0,4)+'o').style.background='none';
   document.getElementById(elt.id.substr(0,4)+'u').style.background='none';}
   
   a = new Array();
   b = new Array();
   f = new Array();
   
   for(var x=0;x<11;x++) {f[x] = 1000-(Math.round(Math.log((10-x)+1)*(1000/Math.log(11))));}
   
   function einfaden(idname) {
     for (m=0;m<a.length;m++) window.clearTimeout(a[m]);
     for (n=0;n<b.length;n++) window.clearTimeout(b[n]);
     /*document.getElementById('implink').style.color = '#000';*/
  	  oben  = document.getElementById(idname+'o');
  	  unten = document.getElementById(idname+'u');
  	  for (var i=0;i<11;i++)  a[i] = window.setTimeout('{setOpacity(oben,'+i+');setOpacity(unten,'+i+');}',f[i]);
     return false;}
  
   function ausfaden(idname) {
     for (m=0;m<a.length;m++) window.clearTimeout(a[m]);
     for (n=0;n<b.length;n++) window.clearTimeout(b[n]);
     /*document.getElementById('implink').style.color='#4A9215';*/
  	  oben  = document.getElementById(idname+'o');
  	  unten = document.getElementById(idname+'u');
   	 for (var j=10;j>=0;j--)	b[(10-j)] = window.setTimeout('{setOpacity(oben,'+j+');setOpacity(unten,'+j+');}',f[10-j]);
     return false;}
  
  function setOpacity(obj,value)
  {
	  var r_vorgabe = 226;
	  var g_vorgabe = 221;
	  var b_vorgabe = 176;
	  
   var r=Math.round(255-(value/10*(255-r_vorgabe)));
	  var g=Math.round(255-(value/10*(255-g_vorgabe)));
	  var b=Math.round(255-(value/10*(255-b_vorgabe)));
   obj.style.background = 'rgb('+r+','+g+','+b+')';
  }

