/*
Availablekittens:kittens;FemalePage:Female Page;MalePage:Male Page;Photo_Album:Photo Album;Order_Form:Order_Form;Contact_Us:Contact_Us;FunPage:Fun Page;Index:Home;
*/
/*
TEXTHIGHLIGHT:#CC6666;FONTFORMATITALIC:Italic;GRAPHICHIGHLIGHT:yes;FILENAME:Sophisticated_Buttons_Floral;TEXTMOUSEOVER:#CC0033;BACKGROUNDHIGHLIGHT:none;FONTFORMATBOLD:Bold;GRAPHIC:Fun_Buttons;GRAPHICMOUSEOVER:yes;FONTSTYLE:Times New Roman,adobe-times,Times;BACKGROUNDMOUSEOVER:none;ORIENTATION:VERTICAL;STYLENAME:Sophisticated_Buttons;GRAPHICSTYLE:BUTTONS;NUMPAGES:8;FONTCOLOR:#000000;FONTSIZE:3;GRAPHICCOLOR:Passport;VERTICALSPACE:3;COLORSCHEME:Floral;HORIZONTALSPACE:0;
*/
var tabWidth = 155;
var tabHeight = 41;
var buttonsPerRow = 6; 
var nVerticalLinkGapInCell = 3;
var nHorizontalLinkGapInCell = 0;

FloralbuttonOnImage = new Image(tabWidth, tabHeight);
FloralbuttonOnImage.src = "/~site/Layout/Buttons/Passport_Button_2.gif";
FloralbuttonOffImage = new Image(tabWidth, tabHeight);
FloralbuttonOffImage.src = "/~site/Layout/Buttons/Passport_Button_1.gif";
function FloralmouseOn(graphicName) { document.images[graphicName].src = FloralbuttonOnImage.src; }
function FloralmouseOff(graphicName) { document.images[graphicName].src = FloralbuttonOffImage.src; }


function FloraltextMouseOn(textObj) { textObj.style.color="#CC0033"; }
function FloraltextMouseOff(textObj) { textObj.style.color="#000000"; }

function FloralgetMouseOverHandler(strImgName, textObjName, bIsCurrPage) {
 
if (bIsCurrPage) return '';

var strHTMLMouseOver = '';
var strHTMLMouseOut = '';

if (navigator.userAgent.indexOf("IE") != -1) {
strHTMLMouseOver += 'FloralmouseOn(\'' + strImgName + '\');';
strHTMLMouseOut += 'FloralmouseOff(\'' + strImgName + '\');';
}


strHTMLMouseOver += 'FloraltextMouseOn(' + textObjName + ');';
strHTMLMouseOut += 'FloraltextMouseOff(' + textObjName + ');';

return 'onMouseOver="' + strHTMLMouseOver + '" onMouseOut="' + strHTMLMouseOut + '"';
}
function FloralisCurrentPage(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 FloralgetHTML(navID, strLinkName, strImg, strLink, nOptionNum, strImgName, bLastOption) {
var nRowIndex = 0;
var nColIndex = 0;
strImgName = strImgName + '_' + navID;
 
nColIndex = 0;
nRowIndex = nOptionNum - 1;


var bIsCurrPage = FloralisCurrentPage(strLink);
if (bIsCurrPage) {

strImg = '/~site/Layout/Buttons/Passport_Button_2.gif';


strFontColor = '#CC6666';

} else {
strFontColor = '#000000';
}

if (navigator.userAgent.indexOf("IE") != -1) {
return FloralgetIEHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, strFontColor, bIsCurrPage);
} else {
return FloralgetNSHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, bLastOption, strFontColor, bIsCurrPage);
}
}
function goToLink(link) { parent.location = link; }
function FloralgetIEHTML(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 + nVerticalLinkGapInCell) * nRowIndex);
nLeftPos = nColIndex * (tabWidth + nHorizontalLinkGapInCell);
strHTML = '<DIV style="position:relative;top:' + nTopPos + 'px;left:'
+ nLeftPos + 'px;width:' + tabWidth + 'px;height:'+ tabHeight + 'px">';
strHTML += '<A TARGET="_parent" HREF="' + strLink + '" ';
strHTML += FloralgetMouseOverHandler(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" ' + FloralgetMouseOverHandler(strImgName, divID, bIsCurrPage) + ' onClick=goToLink("' + strLink + '")>';
strHTML += '<IMG SRC="/tp.gif" HEIGHT="' + tabHeight + '" WIDTH="1" ALIGN="absmiddle">';
strHTML += '<FONT FACE="Times New Roman,adobe-times,Times" SIZE="3">'; 
var strFormattingStart = ''; 
var strFormattingEnd = '';

strFormattingStart += '<I>';
strFormattingEnd += '</I>';


strFormattingStart += '<B>';
strFormattingEnd += '</B>';

strHTML += '<SPAN ID="' + divID + '" STYLE="color:' + strFontColor + '"';
strHTML += '>' + strFormattingStart + strLinkName + strFormattingEnd + '</SPAN>';
strHTML += "</FONT></DIV></DIV>";
return strHTML;
}
function FloralgetNSHTML(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 = '';

strFormattingStart += '<I>';
strFormattingEnd += '</I>';


strFormattingStart += '<B>';
strFormattingEnd += '</B>';

strHTML += '<A TARGET="_parent" HREF="' + strLink + '">';
strHTML += '<FONT COLOR="' + strFontColor + '" FACE="Times New Roman,adobe-times,Times" SIZE="3">'; 
strHTML += strFormattingStart + strLinkName + strFormattingEnd + '</A></FONT>';
strHTML += '</TD>';
 
strHTML += '</TR>';
strHTML += '<TR><TD>';
strHTML += '<IMG SRC="/tp.gif" WIDTH="1" HEIGHT="'+nVerticalLinkGapInCell+'" BORDER="0" ALT="">';
strHTML += '</TD></TR>';


if (bLastOption) strHTML += '</TABLE>';
return strHTML;
}
function FloralnavElement() {
if(typeof Floralcounter == "undefined") {
Floralcounter = 1;
} else {
Floralcounter += 1;
}
var navID = Floralcounter;
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(FloralgetHTML(navID, "kittens", "/~site/Layout/Buttons/Passport_Button_1.gif", "Availablekittens.html", 1, "FloralGRAPHIC1", 0));
document.write(FloralgetHTML(navID, "Female Page", "/~site/Layout/Buttons/Passport_Button_1.gif", "FemalePage.html", 2, "FloralGRAPHIC2", 0));
document.write(FloralgetHTML(navID, "Male Page", "/~site/Layout/Buttons/Passport_Button_1.gif", "MalePage.html", 3, "FloralGRAPHIC3", 0));
document.write(FloralgetHTML(navID, "Photo Album", "/~site/Layout/Buttons/Passport_Button_1.gif", "Photo_Album.html", 4, "FloralGRAPHIC4", 0));
document.write(FloralgetHTML(navID, "Order_Form", "/~site/Layout/Buttons/Passport_Button_1.gif", "Order_Form.html", 5, "FloralGRAPHIC5", 0));
document.write(FloralgetHTML(navID, "Contact_Us", "/~site/Layout/Buttons/Passport_Button_1.gif", "Contact_Us.html", 6, "FloralGRAPHIC6", 0));
document.write(FloralgetHTML(navID, "Fun Page", "/~site/Layout/Buttons/Passport_Button_1.gif", "FunPage.html", 7, "FloralGRAPHIC7", 0));
document.write(FloralgetHTML(navID, "Home", "/~site/Layout/Buttons/Passport_Button_1.gif", "Index.html", 8, "FloralGRAPHIC8", 1));

}
}
function FloralnetscapeDivCheck() {
var strAppName = navigator.appName;
var appVer = parseFloat(navigator.appVersion);
if ( (strAppName == "Netscape")&&
(appVer >= 4.0 && appVer < 5) ) { 
document.write("</DIV>");
}
}
var Floralcounter;
FloralnavElement();
FloralnetscapeDivCheck();
