/*
Index:Oh, no!;choosing_a_nursing_home:Choosing;myths:Myths;staff:The Staff;AboutMe:About Me;
*/
/*
TEXTHIGHLIGHT:#CC9966;BACKGROUNDHIGHLIGHT:none;TEXTMOUSEOVER:#CC9966;FILENAME:Dark_Button_Voyager;GRAPHIC:Dark_Button;COLOR NAME *:Tan;NAVNAME:Graphic_Button_Voyager~ne;BACKGROUNDMOUSEOVER:none;FONTSTYLE:"Arial,Helvetica,adobe-helvetica,Arial Narrow";ORIENTATION:Vertical;NUMPAGES:5;GRAPHICSTYLE:BUTTONS;STYLENAME:Dark_Button;FONTSIZE:3;FONTCOLOR:#FFFFFF;GRAPHICCOLOR:Voyager_Button;VERTICALSPACE:16;COLORSCHEME:Voyager;
*/
var tabWidth = 116;
var tabHeight = 39;
var buttonsPerRow = 6; 


function Graphic_Button_VoyagertextMouseOn(textObj) { textObj.style.color="#CC9966"; }
function Graphic_Button_VoyagertextMouseOff(textObj) { textObj.style.color="#FFFFFF"; }

function Graphic_Button_VoyagergetMouseOverHandler(strImgName, textObjName, bIsCurrPage) {
 
if (bIsCurrPage) return '';

var strHTMLMouseOver = '';
var strHTMLMouseOut = '';


strHTMLMouseOver += 'Graphic_Button_VoyagertextMouseOn(' + textObjName + ');';
strHTMLMouseOut += 'Graphic_Button_VoyagertextMouseOff(' + textObjName + ');';

return 'onMouseOver="' + strHTMLMouseOver + '" onMouseOut="' + strHTMLMouseOut + '"';
}
function Graphic_Button_VoyagerisCurrentPage(currentPage) {
var page = new String(window.location);
var size = currentPage.length;
var tildePage = currentPage.substring(0, size - 5 ); 
tildePage += "~"; 
if(page.indexOf(currentPage) != -1 || page.indexOf(tildePage) != -1 ) { 
return true;
} else {
return false;
}
}
function Graphic_Button_VoyagergetHTML(navID, strLinkName, strImg, strLink, nOptionNum, strImgName, bLastOption) {
var nRowIndex = 0;
var nColIndex = 0;
strImgName = strImgName + '_' + navID;
 
nColIndex = 0;
nRowIndex = nOptionNum - 1;


var bIsCurrPage = Graphic_Button_VoyagerisCurrentPage(strLink);
if (bIsCurrPage) {


strFontColor = '#CC9966';

} else {
strFontColor = '#FFFFFF';
}

if (navigator.userAgent.indexOf("IE") != -1) {
return Graphic_Button_VoyagergetIEHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, strFontColor, bIsCurrPage);
} else {
return Graphic_Button_VoyagergetNSHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, bLastOption, strFontColor, bIsCurrPage);
}
}
function goToLink(link) { parent.location = link; }
function Graphic_Button_VoyagergetIEHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, strFontColor, bIsCurrPage) {
var strHTML;
var nLeftPos = 0;
var nTopPos = 0;
var divID = "link_text_" + strImgName;
nTopPos = (-2 * tabHeight * (nOptionNum - 1)) + ((tabHeight + 16) * nRowIndex);
nLeftPos = nColIndex * (tabWidth + 10);
strHTML = '<DIV style="position:relative;top:' + nTopPos + 'px;left:'
+ nLeftPos + 'px;width:' + tabWidth + 'px;height:'+ tabHeight + 'px">';
strHTML += '<A TARGET="_parent" HREF="' + strLink + '" ';
strHTML += Graphic_Button_VoyagergetMouseOverHandler(strImgName, divID, bIsCurrPage);
strHTML += '><IMG SRC="' + strImg + '" NAME="' + strImgName + '" WIDTH=' + tabWidth + ' HEIGHT=' + tabHeight + ' BORDER="0">';
strHTML += '</A>'
strHTML += '<DIV ALIGN="center" style="position:relative;top:-' + tabHeight + 'px;left:0px;width:' + tabWidth + 'px;height:' + tabHeight + 'px;cursor:hand" ' + Graphic_Button_VoyagergetMouseOverHandler(strImgName, divID, bIsCurrPage) + ' onClick=goToLink("' + strLink + '")>';
strHTML += '<IMG SRC="/tp.gif" HEIGHT="' + tabHeight + '" WIDTH="1" ALIGN="absmiddle">';
strHTML += '<FONT FACE=""Arial,Helvetica,adobe-helvetica,Arial Narrow"" SIZE="3">'; 
var strFormattingStart = ''; 
var strFormattingEnd = '';


strHTML += '<SPAN ID="' + divID + '" STYLE="color:' + strFontColor + '"';
strHTML += '>' + strFormattingStart + strLinkName + strFormattingEnd + '</SPAN>';
strHTML += "</FONT></DIV></DIV>";
return strHTML;
}
function Graphic_Button_VoyagergetNSHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, bLastOption, strFontColor, bIsCurrPage) {
var strHTML = '';
if (nOptionNum == 1) {
strHTML += '<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"';

strHTML += '>';
}
if (nColIndex == 0) strHTML += '<TR>';
strHTML += '<TD WIDTH="'+ tabWidth + '" HEIGHT="' + tabHeight + '" ALIGN="CENTER" VALIGN="MIDDLE" BACKGROUND="' + strImg + '">';
var strFormattingStart = ''; 
var strFormattingEnd = '';


strHTML += '<A TARGET="_parent" HREF="' + strLink + '">';
strHTML += '<FONT COLOR="' + strFontColor + '" FACE=""Arial,Helvetica,adobe-helvetica,Arial Narrow"" SIZE="3">'; 
strHTML += strFormattingStart + strLinkName + strFormattingEnd + '</A></FONT>';
strHTML += '</TD>';
 
strHTML += '</TR>';
strHTML += '<TR><TD>';
strHTML += '<IMG SRC="/tp.gif" WIDTH="1" HEIGHT="16" BORDER="0" ALT="">';
strHTML += '</TD></TR>';


if (bLastOption) strHTML += '</TABLE>';
return strHTML;
}
function Graphic_Button_VoyagernavElement() {
if(typeof Graphic_Button_Voyagercounter == "undefined") {
Graphic_Button_Voyagercounter = 1;
} else {
Graphic_Button_Voyagercounter += 1;
}
var navID = Graphic_Button_Voyagercounter;
if (navigator.userAgent.indexOf("Mozilla/3") != -1) {
var msg = 'Sorry, since you are using an old version of Netscape, you may not be able to access all the pages in this Web site.';	
document.write(msg);
} else {
document.write(Graphic_Button_VoyagergetHTML(navID, "Oh, no!", "/~site/Layout/Buttons/Voyager_Button.gif", "Index.html", 1, "Graphic_Button_VoyagerGRAPHIC1", 0));
document.write(Graphic_Button_VoyagergetHTML(navID, "Choosing", "/~site/Layout/Buttons/Voyager_Button.gif", "choosing_a_nursing_home.html", 2, "Graphic_Button_VoyagerGRAPHIC2", 0));
document.write(Graphic_Button_VoyagergetHTML(navID, "Myths", "/~site/Layout/Buttons/Voyager_Button.gif", "myths.html", 3, "Graphic_Button_VoyagerGRAPHIC3", 0));
document.write(Graphic_Button_VoyagergetHTML(navID, "The Staff", "/~site/Layout/Buttons/Voyager_Button.gif", "staff.html", 4, "Graphic_Button_VoyagerGRAPHIC4", 0));
document.write(Graphic_Button_VoyagergetHTML(navID, "About Me", "/~site/Layout/Buttons/Voyager_Button.gif", "AboutMe.html", 5, "Graphic_Button_VoyagerGRAPHIC5", 1));

}
}
function Graphic_Button_VoyagernetscapeDivCheck() {
var strAppName = navigator.appName;
var appVer = parseFloat(navigator.appVersion);
if ( (strAppName == "Netscape")&&
(appVer >= 4.0 && appVer < 5) ) { 
document.write("</DIV>");
}
}
var Graphic_Button_Voyagercounter;
Graphic_Button_VoyagernavElement();
Graphic_Button_VoyagernetscapeDivCheck();
