/* blue nav menu */
function moveLineToRight(anItem){
    var childOffset = 2;
    var aLine = document.createElement("div");
    anItem.topLine = aLine;
    aLine.className = "TopLine";
    //width is not valid on li's, so we'll read it off and set it back on style.
    try{
        var aWidth = anItem.firstChild.nextSibling.getAttribute("width");
        if(aWidth != null){
            aWidth = aWidth + "px"
            anItem.firstChild.nextSibling.style.width = aWidth;
            forEach(anItem.firstChild.nextSibling.childNodes, function(each){
                each.style.width = aWidth;
            });
        }
        aLine.style.top = "17px";
        aLine.style.left = (anItem.offsetWidth - childOffset) + "px";
        aLine.style.width = (anItem.firstChild.nextSibling.offsetWidth - anItem.offsetWidth + 1) + "px";
        anItem.insertBefore(aLine, anItem.firstChild);
    }catch(anError){/*ignore it*/}
}
/*Login Menu*/
function moveLineToLeft(anItem){
    var childOffset = 157
    var aLine = document.createElement("div");
    anItem.topLine = aLine;
    aLine.className = "HelpTopLine";
    try{
        anItem.firstChild.src = anItem.firstChild.src.split("_off").join("_on");
        aLine.style.top = "13px";
        anItem.lastChild.style.width = "150px";
        aLine.style.left = (anItem.offsetWidth - childOffset) + "px";
        aLine.style.width = "97px";
        anItem.insertBefore(aLine, anItem.firstChild);
    }catch(anError){/*ignore*/}
}
function killLineTo(anItem){
    try{
        if(anItem.topLine)
            anItem.removeChild(anItem.topLine);
        anItem.firstChild.src = anItem.firstChild.src.split("_on").join("_off");
    }catch(anError){/*ignore it*/}
}
