<!--

//intialize objects
function init()
{
    LeftBlock = new makeObj("leftBlock");
    ContentHome = new makeObj("contentHome");
    ContentMembers = new makeObj("contentMembers");
    ContentSubcommittees = new makeObj("contentSubcommittees");
    ContentMeetings = new makeObj("contentMeetings");
    ContentPurpose = new makeObj("contentPurpose");
    ContentResources = new makeObj("contentResources");
    ContentInvolved = new makeObj("contentInvolved");
    ContentContact = new makeObj("contentContact");
    
    
    SubMain = new makeObj("subMain");
    SubEducation = new makeObj("subEducation");
    SubLegal = new makeObj("subLegal");    
    SubOutreach = new makeObj("subOutreach");
    SubNav = new makeObj("subNav");
    
    Footer = new makeObj("footer");
}

//expand content divs
function revealContent(whichContent)
{
    whichContent.displayOn();
    
    // account for diff vert height on sub nav divs (because of additional subheader text - see subcommittee div)
    if (whichContent == SubMain || whichContent == SubEducation || whichContent == SubLegal || whichContent == SubOutreach)
    {
        var nextY = whichContent.getHeight() + 224;
    }
    else
    {
        var nextY = whichContent.getHeight() + 190;  
    }
        
    Footer.moveObjTo(51, nextY);
    
}


//create array of div names for content
var hideArray = new Array('ContentHome', 'ContentMembers', 'ContentSubcommittees', 'ContentMeetings', 'ContentPurpose', 'ContentResources', 'ContentInvolved', 'ContentContact', 'SubEducation',  'SubLegal',  'SubOutreach', 'SubNav');

//eval the array with the hide() method in the DHTML_lib file to turn off visibility
function hideAll(whichContent)
{
    for(i = 0; i < hideArray.length; i++)
    {
        if (whichContent != hideArray[i])
        {
            eval(hideArray[i] + ".displayOff()")
        }    
    }
}


//create array of sub nav div names
var subArray = new Array('SubEducation', 'SubLegal', 'SubOutreach', 'SubNav');

//turn off sub nav divs
function hideSubs(whichSub)
{
    for(i = 0; i < subArray.length; i++)
    {
        if (whichSub != subArray[i])
        {
            eval(subArray[i] + ".displayOff()")
        }    
    }
}


// "forces" scrollbar for mac on initial page load (needed for IE5 MAC CSS bug)
function macHack()
{
    browser = navigator.userAgent.toLowerCase();    
    
    if (browser.indexOf("mac") != -1)
    {
        document.write('<img src="images/1x1.gif" width="50" height="700" alt="" border="0">');
    }
}

if (isNS)
{
    location.href = "upgrade.html";
}

//-->
