var navHTML = "";
function whichMenu()
{
if (is_ie) return "menulink";
if (is_nav6up) return "menulink2";
if (is_nav4up) return "menulink3";
return "";
}
function makeColor(x,color)
{
x.bgColor=color;
}
function startLayer(x,outColor,overColor)
{
if (is_nav4up) out('');
}
function endLayer()
{
if (is_nav4up) out('');
}
function createLink(text,url,protocol,server,classVal)
{
out(''+text+'');
}
function startNav(width,bgcolor,border,cellspacing,cellpadding)
{
if (width==null) width="";
if (bgcolor==null) bgcolor="#FFFFFF";
if (border==null) border=0;
if (cellspacing==null) cellspacing=0;
if (cellpadding==null) cellpadding=0;
out('
');
out('');
}
function makeDivider(classVal, bgcolor)
{
if (classVal==null) classVal="topNavPipe";
if (bgcolor==null) bgcolor="#000000";
out('| | | ');
}
function startCell(width,bgcolor,overColor)
{
if (width==null) width="";
if (bgcolor==null) bgcolor="000000";
if (overColor==null) overColor="EE7B12";
out('');
startLayer(width,bgcolor,overColor);
}
function startCellNoLayer(width,bgcolor)
{
if (width==null) width="";
if (bgcolor==null) bgcolor="000000";
out(' | ');
}
function endCell()
{
endLayer();
out(' | ');
}
function endNav()
{
out('
');
}
function out(text)
{
navHTML=navHTML+text;
}
function buildGlobalTopNav(serverName, isLoggedIn, isPreview, width)
{
if (serverName==null) return;
if (isLoggedIn==null) isLoggedIn=false;
if (isPreview==null) isPreview=true;
navHTML = "";
if (width==null) width=760;
classVal= (is_ie)?"topNavIE":((is_nav6up)?"topNavNS6up":((is_nav4up)?"topNavNS4up":""));
startNav(width,"000000");
startCell(300,"000000"); out('
'); endCell();
startCellNoLayer("50%","000000"); out(' '); endCell();
startCell(50,"000000"); createLink("HOME","/", "http", serverName,classVal); endCell();
if (!isLoggedIn || (isLoggedIn && isPreview)) { makeDivider(); startCell(80,"000000"); createLink("SUBSCRIBE","/subscribe", "http", serverName,classVal); endCell(); }
if (isLoggedIn && !isPreview) { makeDivider(); startCell(80,"000000"); createLink("MY ACCOUNT","/SelfCareMediator.qst?action=displaySelfCare", "https", serverName,classVal); endCell(); }
if (!isLoggedIn || (isLoggedIn && isPreview)) { makeDivider(); startCell(100,"#000000"); createLink("ABOUT QUESTIA","/aboutQuestia/about.html", "http", serverName,classVal); endCell(); }
makeDivider(); startCell(30,"000000"); createLink("FAQ","/aboutQuestia/faqLibrary.html", "http", serverName,classVal); endCell();
if (!isLoggedIn || (isLoggedIn && isPreview)) { makeDivider(); startCell(50,"000000"); createLink("CONTACT US","/support/CustomerSupport.jsp", "http", serverName,classVal); endCell() ; }
if (isLoggedIn && !isPreview) { makeDivider(); startCell(100,"000000"); createLink("CUSTOMER SUPPORT","/support/CustomerSupport.jsp", "http", serverName,classVal); endCell(); }
if (!isLoggedIn) { makeDivider(); startCell(60,"000000"); createLink("LOGIN","/LoginMediator.qst?action=displayLoginForm", "https", serverName,classVal); endCell() };
if (isLoggedIn) { makeDivider(); startCell(60,"000000"); createLink("LOG OUT","/LoginMediator.qst?action=displayLoginForm", "https", serverName,classVal); endCell() };
endNav();
document.write(navHTML);
}
function buildAboutQuestiaSubTopNav(serverName, isLoggedIn, isPreview)
{
if (serverName==null) return;
if (isLoggedIn==null) isLoggedIn=false;
if (isPreview==null) isPreview=true;
navHTML = "";
classVal= (is_ie)?"aboutSubNavIE":((is_nav6up)?"aboutSubNavNS6up":((is_nav4up)?"aboutSubNavNS4up":""));
startNav(760,"CCCCCC");
startCellNoLayer(450,"CCCCCC"); out(" "); endCell();
startCell(30,"999999","467B93"); createLink("WHAT WE DO","/aboutQuestia/about.html", "http", serverName,classVal); endCell();
makeDivider("aboutSubNavPipe","999999"); startCell(30,"999999","467B93"); createLink("QUESTIA IN THE NEWS","/aboutQuestia/aboutNews.html", "http", serverName,classVal); endCell();
makeDivider("aboutSubNavPipe","999999"); startCell(30,"999999","467B93"); createLink("JOBS AT QUESTIA","/aboutQuestia/aboutJobs.html", "http", serverName,classVal); endCell();
startCellNoLayer(250,"CCCCCC"); out(" "); endCell();
endNav();
document.write(navHTML);
}