<!--//--><![CDATA[//><!--

if( !window.getPageOffsetLeft ) {
function getPageOffsetLeft(el) {

  var x;

  // Return the x coordinate of an element relative to the page.

  x = el.offsetLeft;
  if (el.offsetParent != null)
    x += getPageOffsetLeft(el.offsetParent);

  return x;
};
};

if( !window.getPageOffsetTop ) {
function getPageOffsetTop(el) {

  var y;

  // Return the x coordinate of an element relative to the page.

  y = el.offsetTop;
  if (el.offsetParent != null)
    y += getPageOffsetTop(el.offsetParent);

  return y;
};
};


startList = function() {

	if (document.getElementById) {

		navRoot = document.getElementById("nav");

		for (i=0; i<navRoot.childNodes.length; i++) {

			node = navRoot.childNodes[i];

			if (node.nodeName=="LI") {

				node.onmouseover=function() {

					if( document.all ) this.className+=" over";

				}

				node.onmouseout=function() {

					if( document.all ) this.className=this.className.replace(" over", "");

				}


                /* START Fix for DD Menu Positioning */
                for( j=0; j<node.childNodes.length; j++ ) {
                  ul = node.childNodes[j];
                  if( ul.nodeName == 'UL' ) {
                    // Means the child node is a DD Menu
                    _left = getPageOffsetLeft(node) + "px";
                    ul.style.left = _left;

                    if( document.all ) {
                    _top = getPageOffsetTop(node) + node.offsetHeight + "px";
                    ul.style.top = _top;
                    }

                  }
                }
                /* END Fix for DD Menu Positioning */


			}            


		}


	}
}

window.onload=startList;

//--><!]]>