/*
Index:Intro;Basic:About Barnes;bridesbouquets:Bridal Bouquets;Photo_Gallery:Brides Gallery;attendants:Attendants;Red_Rose_Wedding:Red Rose;Lavender_Wedding:Lavender;Pastel_Rose_Wedding:Pastels;Brites1:Brights;Photo_Album:Photo Album;Gift_List:Gift List;Map_and_Directions:Directions;Links_Page:Links;
*/
/*
TEXTHIGHLIGHT:#660066;FONTFORMATITALIC:Italic;GRAPHICHIGHLIGHT:Sophisticated_Button_3;BACKGROUNDHIGHLIGHT:none;TEXTMOUSEOVER:#660066;FILENAME:Clean_and_Simple_Button_Sophisticated;FONTFORMATBOLD:Bold;GRAPHIC:Basic_Buttons;COLOR NAME *:Maroon;GRAPHICMOUSEOVER:Sophisticated_Button_3;BACKGROUNDMOUSEOVER:none;FONTSTYLE:Times New Roman,adobe-times,Times;ORIENTATION:VERTICAL;NUMPAGES:13;GRAPHICSTYLE:BUTTONS;STYLENAME:Clean_and_Simple_Button;FONTSIZE:3;FONTCOLOR:#FFFFFF;GRAPHICCOLOR:Maroon;VERTICALSPACE:16;COLORSCHEME:Sophisticated;
*/
var tabWidth = 114;
var tabHeight = 31;
var buttonsPerRow = 6; 
var nVerticalLinkGapInCell = 16;
var nHorizontalLinkGapInCell = 6;

Graphic_Button_SophisticatedbuttonOnImage = new Image(tabWidth, tabHeight);
Graphic_Button_SophisticatedbuttonOnImage.src = "/~site/Layout/Buttons/Basic_Button_Periwinkle.gif";
Graphic_Button_SophisticatedbuttonOffImage = new Image(tabWidth, tabHeight);
Graphic_Button_SophisticatedbuttonOffImage.src = "/~site/Layout/Buttons/Basic_Button_Maroon.gif";
function Graphic_Button_SophisticatedmouseOn(graphicName) { document.images[graphicName].src = Graphic_Button_SophisticatedbuttonOnImage.src; }
function Graphic_Button_SophisticatedmouseOff(graphicName) { document.images[graphicName].src = Graphic_Button_SophisticatedbuttonOffImage.src; }


function Graphic_Button_SophisticatedtextMouseOn(textObj) { textObj.style.color="#660066"; }
function Graphic_Button_SophisticatedtextMouseOff(textObj) { textObj.style.color="#FFFFFF"; }

function Graphic_Button_SophisticatedgetMouseOverHandler(strImgName, textObjName, bIsCurrPage) {
 
if (bIsCurrPage) return '';

var strHTMLMouseOver = '';
var strHTMLMouseOut = '';

if (navigator.userAgent.indexOf("IE") != -1) {
strHTMLMouseOver += 'Graphic_Button_SophisticatedmouseOn(\'' + strImgName + '\');';
strHTMLMouseOut += 'Graphic_Button_SophisticatedmouseOff(\'' + strImgName + '\');';
}


strHTMLMouseOver += 'Graphic_Button_SophisticatedtextMouseOn(' + textObjName + ');';
strHTMLMouseOut += 'Graphic_Button_SophisticatedtextMouseOff(' + textObjName + ');';

return 'onMouseOver="' + strHTMLMouseOver + '" onMouseOut="' + strHTMLMouseOut + '"';
}
function Graphic_Button_SophisticatedisCurrentPage(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_SophisticatedgetHTML(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_SophisticatedisCurrentPage(strLink);
if (bIsCurrPage) {

strImg = '/~site/Layout/Buttons/Basic_Button_Periwinkle.gif';


strFontColor = '#660066';

} else {
strFontColor = '#FFFFFF';
}

if (navigator.userAgent.indexOf("IE") != -1) {
return Graphic_Button_SophisticatedgetIEHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, strFontColor, bIsCurrPage);
} else {
return Graphic_Button_SophisticatedgetNSHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, bLastOption, strFontColor, bIsCurrPage);
}
}
function goToLink(link) { parent.location = link; }
function Graphic_Button_SophisticatedgetIEHTML(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 += Graphic_Button_SophisticatedgetMouseOverHandler(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_SophisticatedgetMouseOverHandler(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 Graphic_Button_SophisticatedgetNSHTML(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 Graphic_Button_SophisticatednavElement() {
if(typeof Graphic_Button_Sophisticatedcounter == "undefined") {
Graphic_Button_Sophisticatedcounter = 1;
} else {
Graphic_Button_Sophisticatedcounter += 1;
}
var navID = Graphic_Button_Sophisticatedcounter;
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_SophisticatedgetHTML(navID, "Intro", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Index.html", 1, "Graphic_Button_SophisticatedGRAPHIC1", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "About Barnes", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Basic.html", 2, "Graphic_Button_SophisticatedGRAPHIC2", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Bridal Bouquets", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "bridesbouquets.html", 3, "Graphic_Button_SophisticatedGRAPHIC3", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Brides Gallery", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Photo_Gallery.html", 4, "Graphic_Button_SophisticatedGRAPHIC4", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Attendants", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "attendants.html", 5, "Graphic_Button_SophisticatedGRAPHIC5", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Red Rose", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Red_Rose_Wedding.html", 6, "Graphic_Button_SophisticatedGRAPHIC6", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Lavender", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Lavender_Wedding.html", 7, "Graphic_Button_SophisticatedGRAPHIC7", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Pastels", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Pastel_Rose_Wedding.html", 8, "Graphic_Button_SophisticatedGRAPHIC8", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Brights", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Brites1.html", 9, "Graphic_Button_SophisticatedGRAPHIC9", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Photo Album", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Photo_Album.html", 10, "Graphic_Button_SophisticatedGRAPHIC10", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Gift List", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Gift_List.html", 11, "Graphic_Button_SophisticatedGRAPHIC11", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Directions", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Map_and_Directions.html", 12, "Graphic_Button_SophisticatedGRAPHIC12", 0));
document.write(Graphic_Button_SophisticatedgetHTML(navID, "Links", "/~site/Layout/Buttons/Basic_Button_Maroon.gif", "Links_Page.html", 13, "Graphic_Button_SophisticatedGRAPHIC13", 1));

}
}
function Graphic_Button_SophisticatednetscapeDivCheck() {
var strAppName = navigator.appName;
var appVer = parseFloat(navigator.appVersion);
if ( (strAppName == "Netscape")&&
(appVer >= 4.0 && appVer < 5) ) { 
document.write("</DIV>");
}
}
var Graphic_Button_Sophisticatedcounter;
Graphic_Button_SophisticatednavElement();
Graphic_Button_SophisticatednetscapeDivCheck();
