function getelements()
{
  var parent = document.getElementById('l_menu');
  var parentParas = parent.getElementsByTagName('li');
  for (i=0;i<parentParas.length;i++){  
  	parentParas[i].onmouseover = function () {
			this.style.cssText = 'color: white; background-color: #d91826; width: 148px; background-image: url(fileadmin/templates/images/li_mover.gif);';
			var alink = this.getElementsByTagName('a');
			for (i=0;i<alink.length;i++){  
				alink[i].style.cssText = 'color: white';
			}
		}
		
		parentParas[i].onmouseout = function () {
			this.style.cssText = 'color: black; background-color: #ffffff;';
			var alink = this.getElementsByTagName('a');
			for (i=0;i<alink.length;i++){  
				alink[i].style.cssText = 'color: black';
			}

	  }
  }
//getelementstop();
}

function getelementstop() 
{
  var parent = document.getElementById('menu');
  var parentParas = parent.getElementsByTagName('li');
  for (i=0;i<parentParas.length;i++){  
		parentParas[i].onmouseover = function () {
			var str = this.style.cssText;
			//alert(str);
      var reg=/fffffe|254/;
      var result=reg.test(str);
      //alert(result);
			if (!result) {
				//alert("change");
				this.style.cssText = 'background-image: url(fileadmin/templates/images/menu_bt_red.jpg); border-left: 1px solid #ffffff;';
			}
		}
		
		parentParas[i].onmouseout = function () {
			var str = this.style.cssText;
			//alert(str);
      var reg=/fffffe|254/;
      var result=reg.test(str);
      //alert(result);
			if (!result) {
				this.style.cssText = '';
			}
	  }
  }
}
getelements();