    function PPPR_fakeHover() {
    	// get all level 1 list items
      var aoL1 = document.getElementById("nav-main").getElementsByTagName("UL")[0].childNodes;
    	for (var i=0; i < aoL1.length; i++) {
        if (aoL1[i].tagName == "LI") {
          // gat all sub UL nodes of level 1 list item
          var aoUL = aoL1[i].getElementsByTagName("UL");
        	for (var iUL=0; iUL < aoUL.length; iUL++) {
            var aoA = aoUL[iUL].getElementsByTagName("A");
            var iWidthUL = aoUL[iUL].offsetWidth;
            var iWidthA = aoA[0].offsetWidth;
            var iBox = (iWidthA > iWidthUL) ? 9 : 19;
         	  for (var ia=0; ia < aoA.length; ia++) {
              aoA[ia].style.width = iWidthUL - iBox;
            }
          }
          // attach events to level 1 list item
      	  PPPR_attachDynCssFunctions(aoL1[i], "fakeHoverL1");
        }
      }
    }

    function PPPR_attachDynCssFunctions(po, psClassName)
    {
  		po.onmouseover=function() { this.className += (" " + psClassName); }
  		po.onmouseout=function() {	this.className = this.className.replace(new RegExp((" " + psClassName + "\\b")), ""); }
    }
    
    if (window.attachEvent) { window.attachEvent("onload", PPPR_fakeHover); }
