var nav_Navigation = new Object();
nav_Navigation.tabCategory="basic";
nav_Navigation.holidayButton="Christmas_Ornaments";
nav_Navigation.mouseoverEffect="true";
nav_Navigation.modernButton="Basic_Black";
nav_Navigation.mouseoverBold="false";
nav_Navigation.textColor="#000000";
nav_Navigation.mouseoverBgcolor="";
nav_Navigation.accentType="";
nav_Navigation.hasLinks="true";
nav_Navigation.bold="false";
nav_Navigation.mouseoverTextcolor="#B91806";
nav_Navigation.lineWidth="2";
nav_Navigation.type="Navigation";
nav_Navigation.accentColor="Black";
nav_Navigation.mouseoverUnderline="false";
nav_Navigation.selectedEffect="true";
nav_Navigation.basicTab="White";
nav_Navigation.simpleButton="Autumn_Leaves";
nav_Navigation.justification="center";
nav_Navigation.localPreview="false";
nav_Navigation.selectedUnderline="false";
nav_Navigation.orientation="vertical";
nav_Navigation.lineColor="#000000";
nav_Navigation.imageHeight="31";
nav_Navigation.buttonCategory="basic";
nav_Navigation.squareTab="Camel";
nav_Navigation.dirty="false";
nav_Navigation.selectedItalic="false";
nav_Navigation.navID="nav_Navigation";
nav_Navigation.background="";
nav_Navigation.importedImageSelected="";
nav_Navigation.texturedButton="Brick";
nav_Navigation.textFont="Helvetica";
nav_Navigation.imageWidth="114";
nav_Navigation.selectedBold="false";
nav_Navigation.accentStyle="Arrow";
nav_Navigation.numLinks="4";
nav_Navigation.mouseoverItalic="false";
nav_Navigation.underline="false";
nav_Navigation.verticalSpacing="10";
nav_Navigation.horizontalWrap="5";
nav_Navigation.funButton="Arts_and_Crafts";
nav_Navigation.style="buttons";
nav_Navigation.basicButton="Gray";
nav_Navigation.selectedBgcolor="";
nav_Navigation.importedImageMouseOver="";
nav_Navigation.graphicSelected="true";
nav_Navigation.shinyButton="Shiny_Aqua";
nav_Navigation.border="";
nav_Navigation.version="5";
nav_Navigation.sophisticatedButton="Antique";
nav_Navigation.selectedTextcolor="#B91806";
nav_Navigation.horizontalSpacing="10";
nav_Navigation.graphicMouseover="true";
nav_Navigation.importedImage="";
nav_Navigation.italic="false";
nav_Navigation.brightButton="Chicky";
nav_Navigation.darkButton="Basic_Black";
nav_Navigation.textSize="10";
nav_Navigation.navName = "Navigation";
nav_Navigation.imagePath = "/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Basic_Button_Gray.gif";
nav_Navigation.selectedImagePath = "/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Basic_Button_White.gif";
nav_Navigation.mouseOverImagePath = "/~media/elements/LayoutClipart/../LayoutClipart/Buttons/Basic_Button_White.gif";
nav_Navigation.imageWidth = "114";
nav_Navigation.imageHeight = "31";
nav_Navigation.fontClass = "size10 Helvetica10";
nav_Navigation.fontFace = "Helvetica, Arial, sans-serif";
var baseHref = '';
if (document.getElementsByTagName)
{
var base = document.getElementsByTagName('base');
if (base && base.length > 0)
{
if (base[0].href != undefined)
{
baseHref = base[0].href;
if (baseHref != '' && baseHref.charAt(baseHref.length - 1) != '/')
{
baseHref += '/';
}
}
}
}
nav_Navigation.links=new Array(4);
var nav_Navigation_Link1 = new Object();
nav_Navigation_Link1.type = "existing";
nav_Navigation_Link1.displayName = "Index";
nav_Navigation_Link1.linkWindow = "_self";
nav_Navigation_Link1.linkValue = "Index.html";
nav_Navigation_Link1.linkIndex = "1";
nav_Navigation.links[0] = nav_Navigation_Link1;
var nav_Navigation_Link2 = new Object();
nav_Navigation_Link2.type = "existing";
nav_Navigation_Link2.displayName = "Ebooks";
nav_Navigation_Link2.linkWindow = "_self";
nav_Navigation_Link2.linkValue = "Ebooks.html";
nav_Navigation_Link2.linkIndex = "2";
nav_Navigation.links[1] = nav_Navigation_Link2;
var nav_Navigation_Link3 = new Object();
nav_Navigation_Link3.type = "existing";
nav_Navigation_Link3.displayName = "Publicity Service";
nav_Navigation_Link3.linkWindow = "_blank";
nav_Navigation_Link3.linkValue = "PublicityService.html";
nav_Navigation_Link3.linkIndex = "3";
nav_Navigation.links[2] = nav_Navigation_Link3;
var nav_Navigation_Link4 = new Object();
nav_Navigation_Link4.type = "existing";
nav_Navigation_Link4.displayName = "Affiliates";
nav_Navigation_Link4.linkWindow = "_blank";
nav_Navigation_Link4.linkValue = "Affiliates.html";
nav_Navigation_Link4.linkIndex = "4";
nav_Navigation.links[3] = nav_Navigation_Link4;
function renderGraphicalHTML(Navigation, strTpGif)
{
var strHTML = '';
strHTML += '
';
var i;
for(i = 0; i < Navigation.links.length; i++)
{
strHTML += renderGraphicalLink(Navigation, Navigation.links[i], strTpGif);
}
strHTML += '
';
return strHTML;
}
function mouseOn(tdCell, newBackgroundImage)
{
tdCell.style.backgroundImage = 'url(' + newBackgroundImage + ')';
}
function mouseOff(tdCell, newBackgroundImage)
{
tdCell.style.backgroundImage = 'url(' + newBackgroundImage + ')';
}
function getGraphicMouseOverHandler(Navigation, bIsCurrentPage)
{
if (Navigation.mouseoverEffect != 'true') return '';
if((Navigation.graphicSelected=='true' || Navigation.selectedTextcolor) && bIsCurrentPage && 'true' == Navigation.selectedEffect)
{
return '';
}
var bShowMouseoverText = !(bIsCurrentPage && 'true' == Navigation.selectedEffect && Navigation.selectedTextcolor);
var strMouseOver = '';
var strMouseOut = '';
if(Navigation.graphicMouseover=='true')
{
strMouseOver += ' mouseOn(this, \'' + Navigation.mouseOverImagePath + '\');';
strMouseOut += ' mouseOff(this, \'' + Navigation.imagePath + '\');';
}
var textColor;
var baseTextColor = Navigation.textColor;
var bold;
var baseBold = Navigation.bold;
var underline;
var baseUnderline = Navigation.underline;
var italic;
var baseItalic = Navigation.italic;
if(bIsCurrentPage && 'true' == Navigation.selectedEffect)
{
textColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor : (Navigation.mouseoverTextColor ? Navigation.mouseoverTextcolor : Navigation.textColor);
baseTextColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor : Navigation.textColor;
baseBold = bold = Navigation.selectedBold;
baseUnderline = underline = Navigation.selectedUnderline;
baseItalic = italic = Navigation.selectedItalic;
}
else
{
textColor = Navigation.mouseoverTextcolor ? Navigation.mouseoverTextcolor : Navigation.textColor;
bold = Navigation.mouseoverBold;
underline = Navigation.mouseoverUnderline;
italic = Navigation.mouseoverItalic;
}
strMouseOver += ' textMouseOn(this, \'' + textColor + '\', \'' + bold + '\', \'' + underline + '\', \'' + italic + '\');';
strMouseOut += ' textMouseOff(this, \'' + baseTextColor + '\', \'' + baseBold + '\', \'' + baseUnderline + '\', \'' + baseItalic + '\');';
return ' onMouseOver="' + strMouseOver + '" onMouseOut="' + strMouseOut + '"';
}
function getGraphicalStyle(Navigation, strImg, strFontColor, bold, italic, underline, bNetscape)
{
var strStyle = ' style="';
strStyle += 'cursor: pointer; cursor: hand; ';
strStyle += 'color:' + strFontColor + ';';
strStyle += 'background-image:url(' + strImg + ');';
strStyle += 'background-repeat:no-repeat;';
strStyle += 'background-position:' + Navigation.justification + ';';
if(!bNetscape)
{
if (bold) strStyle += 'font-weight: bold;';
if (italic) strStyle += 'font-style: italic;';
if (underline) strStyle += 'text-decoration: underline;';
}
strStyle += Navigation.justification;
strStyle += '" ';
return strStyle;
}
function renderGraphicalLink(Navigation, Link, strTpGif)
{
var strImg = Navigation.imagePath;
var strFontColor = Navigation.textColor;
var bIsCurrentPage = isCurrentPage(Link);
var strLinkValue = fixLinkValue(Link);
var bLastLink = Link.linkIndex == Navigation.numLinks;
var nColIndex = 0;
if(Navigation.orientation=='horizontal')
{
nColIndex = (Link.linkIndex - 1) % Navigation.horizontalWrap;
}
if (bIsCurrentPage && 'true' == Navigation.selectedEffect)
{
if(Navigation.graphicSelected=='true')
{
strImg = Navigation.selectedImagePath;
}
if(Navigation.selectedTextcolor)
{
strFontColor = Navigation.selectedTextcolor;
}
}
var bNetscape = false;
var strAppName = navigator.appName;
var appVer = parseFloat(navigator.appVersion);
var nGeneralPadding = 10;
if ( (strAppName == 'Netscape') &&
(appVer >= 4.0 && appVer < 5) )
{
bNetscape = true;
}
var strHTML = '';
if(Navigation.orientation=='horizontal')
{
if( (Link.linkIndex % Navigation.horizontalWrap) == 1)
{
strHTML += '';
strHTML += '';
strHTML += '';
strHTML += '';
}
}
else
{
strHTML += ' '
}
strHTML += '';
var strFormattingStart = '';
var strFormattingEnd = '';
if (bNetscape)
{
if((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedItalic) : ('true' == Navigation.italic))
{
strFormattingStart += '';
strFormattingEnd = '' + strFormattingEnd;
}
if((bIsCurrentPage && 'true' == Navigation.selectedEffect) ? ('true' == Navigation.selectedBold) : ('true' == Navigation.bold))
{
strFormattingStart += '';
strFormattingEnd = '' + strFormattingEnd;
}
}
if(!bNetscape)
{
var nDivWidth = Navigation.imageWidth;
if(Navigation.justification != 'center')
{
nDivWidth = nDivWidth - nGeneralPadding;
}
strHTML += '';
}
if(bNetscape)
{
if(Navigation.justification == 'right')
{
strHTML += '';
}
strHTML += '';
}
strHTML += ' | ';
if(Navigation.orientation=='vertical')
{
strHTML += ' ';
if(Navigation.verticalSpacing > 0)
{
if(!bLastLink)
{
strHTML += '';
strHTML += '';
strHTML += ' | ';
}
}
}
else
{
if(Navigation.horizontalSpacing > 0)
{
if(!bLastLink && (nColIndex != Navigation.horizontalWrap - 1))
{
strHTML += '';
strHTML += '';
strHTML += ' | ';
}
}
if (bLastLink || nColIndex == Navigation.horizontalWrap - 1)
{
strHTML += '';
strHTML += ' ';
strHTML += ' |
';
}
if(nColIndex == Navigation.horizontalWrap - 1 && !bLastLink)
{
strHTML += '';
strHTML += '';
strHTML += ' |
';
}
}
return strHTML;
}
function renderHTML(Navigation)
{
if (navigator.userAgent.indexOf('Mozilla/3') != -1)
{
return 'Sorry, since you are using an old version of Netscape, you may not be able to access all the pages in this Web site.';
}
if (Navigation.style == 'text')
{
return renderTextHTML(Navigation, '/tp.gif');
}
else
{
return renderGraphicalHTML(Navigation, '/tp.gif');
}
}
function fixLinkValue(Link)
{
if(Link.type!='existing')
{
return Link.linkValue;
}
else
{
return baseHref + strRelativePathToRoot + Link.linkValue;
}
}
function isCurrentPage(Link)
{
if(Link.type!='existing')
{
return false;
}
var strLinkValue = Link.linkValue.toLowerCase();
return (strRelativePagePath == strLinkValue);
}
function getOnClick(strLinkValue, strLinkTarget)
{
var strOnClick;
if(strLinkTarget == '_blank')
{
strOnClick = 'onClick="window.open(\'' + strLinkValue + '\');"';
}
else
{
strOnClick = 'onClick="document.location = \'' + strLinkValue + '\';"';
}
return strOnClick;
}
function netscapeDivCheck()
{
var strAppName = navigator.appName;
var appVer = parseFloat(navigator.appVersion);
if ( (strAppName == 'Netscape') &&
(appVer >= 4.0 && appVer < 5) ) { document.write('');
}
}
function textMouseOn(textObj, newColor, mouseoverBold, mouseoverUnderline, mouseoverItalic)
{
if(newColor)
{
textObj.style.color=newColor;
}
if(mouseoverBold=='true')
{
textObj.style.fontWeight='bold';
}
else
{
textObj.style.fontWeight='normal';
}
if(mouseoverUnderline=='true')
{
textObj.style.textDecoration='underline';
}
else
{
textObj.style.textDecoration='none';
}
if(mouseoverItalic=='true')
{
textObj.style.fontStyle='italic';
}
else
{
textObj.style.fontStyle='normal';
}
}
function textMouseOff(textObj, newColor, bold, underline, italic)
{
textObj.style.color=newColor;
if(bold=='true')
{
textObj.style.fontWeight='bold';
}
else
{
textObj.style.fontWeight='normal';
}
if(underline=='true')
{
textObj.style.textDecoration='underline';
}
else
{
textObj.style.textDecoration='none';
}
if(italic=='true')
{
textObj.style.fontStyle='italic';
}
else
{
textObj.style.fontStyle='normal';
}
}
document.write(renderHTML(nav_Navigation));