passpage = document.URL 
if (top.location == self.location) 
location.replace("master.html?" + passpage)

function isIE5()
{
    isIE5Browser = ((navigator.appVersion.indexOf("MSIE") != -1)
                && (navigator.appName.indexOf("Microsoft") != -1));

    return isIE5Browser;
}

function writeMenu(menuItems, verticalPadding)
{
    var itemPosition = 15;
    var numberOfIterations = menuItems[0] * 2;
    var menuStr = "";

    if(verticalPadding == null)
    {
        verticalPadding = 64;
    }

    if(isIE5())
    {
        for(itemCounter = 1; itemCounter <= numberOfIterations; itemCounter += 2)
        {
            menuStr += "<A TARGET='contentFrame' class='LeftMenuItemStyle' HREF='" + menuItems[itemCounter+1] +  "' STYLE='position: absolute; top: " + itemPosition + "'>" + menuItems[itemCounter] + '</A>';
            itemPosition += verticalPadding;
        }

        parent.frames(1).document.getElementById("menuItemSection").innerHTML = menuStr;
    }
    else
    {
        for(itemCounter = 1; itemCounter <= numberOfIterations; itemCounter += 2)
        {
            menuStr += "<LAYER top=" + itemPosition + ">";
            menuStr += "<A TARGET='contentFrame' class='LeftMenuItemStyle' HREF='" + menuItems[itemCounter+1] +  "'><B><U><FONT FACE='Verdana' SIZE='3'>" + menuItems[itemCounter] + '</FONT></U></B></A>';
            menuStr += "</LAYER>";

            itemPosition += verticalPadding;

        }

    	top.leftMenuFrame.document.menuItemSection.document.write(menuStr);
        top.leftMenuFrame.document.menuItemSection.document.close();
    }
}


