/*
Index:CACF;Map_and_Directions:About Us;Seminars:Seminars;Links:Links;WorkshopsEtc:Workshop;Photos:Photos;Workshops:Events;Photo_Album:Extras;ChapterService:Chapter Service ;
*/
/*
TEXTHIGHLIGHT:#FF0033;FONTFORMATITALIC:Italic;GRAPHICHIGHLIGHT:yes;BACKGROUNDHIGHLIGHT:none;TEXTMOUSEOVER:#FF0033;FILENAME:Bright_and_Fun_Button_Flower_Power;FONTFORMATBOLD:Bold;GRAPHIC:Sophisticated_Button;COLOR NAME *:Black;GRAPHICMOUSEOVER:yes;BACKGROUNDMOUSEOVER:none;FONTSTYLE:Haettenschweil;ORIENTATION:VERTICAL;NUMPAGES:9;GRAPHICSTYLE:BUTTONS;STYLENAME:Bright_and_Fun_Button;FONTSIZE:4;FONTCOLOR:#9933CC;GRAPHICCOLOR:Elegant_Button;VERTICALSPACE:10;HORIZONTALSPACE:10;COLORSCHEME:Flower_Power;
*/
var tabWidth = 106;
var tabHeight = 31;
var buttonsPerRow = 6; 
var nVerticalLinkGapInCell = 10;
var nHorizontalLinkGapInCell = 10;

Graphic_Button_Flower_PowerbuttonOnImage = new Image(tabWidth, tabHeight);
Graphic_Button_Flower_PowerbuttonOnImage.src = "/~site/Layout/Buttons/Elegant_Button.gif";
Graphic_Button_Flower_PowerbuttonOffImage = new Image(tabWidth, tabHeight);
Graphic_Button_Flower_PowerbuttonOffImage.src = "/~site/Layout/Buttons/Elegant_Button.gif";
function Graphic_Button_Flower_PowermouseOn(graphicName) { document.images[graphicName].src = Graphic_Button_Flower_PowerbuttonOnImage.src; }
function Graphic_Button_Flower_PowermouseOff(graphicName) { document.images[graphicName].src = Graphic_Button_Flower_PowerbuttonOffImage.src; }


function Graphic_Button_Flower_PowertextMouseOn(textObj) { textObj.style.color="#FF0033"; }
function Graphic_Button_Flower_PowertextMouseOff(textObj) { textObj.style.color="#9933CC"; }

function Graphic_Button_Flower_PowergetMouseOverHandler(strImgName, textObjName, bIsCurrPage) {
 
if (bIsCurrPage) return '';

var strHTMLMouseOver = '';
var strHTMLMouseOut = '';

if (navigator.userAgent.indexOf("IE") != -1) {
strHTMLMouseOver += 'Graphic_Button_Flower_PowermouseOn(\'' + strImgName + '\');';
strHTMLMouseOut += 'Graphic_Button_Flower_PowermouseOff(\'' + strImgName + '\');';
}


strHTMLMouseOver += 'Graphic_Button_Flower_PowertextMouseOn(' + textObjName + ');';
strHTMLMouseOut += 'Graphic_Button_Flower_PowertextMouseOff(' + textObjName + ');';

return 'onMouseOver="' + strHTMLMouseOver + '" onMouseOut="' + strHTMLMouseOut + '"';
}
function Graphic_Button_Flower_PowerisCurrentPage(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_Flower_PowergetHTML(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_Flower_PowerisCurrentPage(strLink);
if (bIsCurrPage) {

strImg = '/~site/Layout/Buttons/Elegant_Button.gif';


strFontColor = '#FF0033';

} else {
strFontColor = '#9933CC';
}

if (navigator.userAgent.indexOf("IE") != -1) {
return Graphic_Button_Flower_PowergetIEHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, strFontColor, bIsCurrPage);
} else {
return Graphic_Button_Flower_PowergetNSHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, bLastOption, strFontColor, bIsCurrPage);
}
}
function goToLink(link) { parent.location = link; }
function Graphic_Button_Flower_PowergetIEHTML(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_Flower_PowergetMouseOverHandler(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_Flower_PowergetMouseOverHandler(strImgName, divID, bIsCurrPage) + ' onClick=goToLink("' + strLink + '")>';
strHTML += '<IMG SRC="/tp.gif" HEIGHT="' + tabHeight + '" WIDTH="1" ALIGN="absmiddle">';
strHTML += '<FONT FACE="Haettenschweil" SIZE="4">'; 
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_Flower_PowergetNSHTML(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="Haettenschweil" SIZE="4">'; 
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_Flower_PowernavElement() {
if(typeof Graphic_Button_Flower_Powercounter == "undefined") {
Graphic_Button_Flower_Powercounter = 1;
} else {
Graphic_Button_Flower_Powercounter += 1;
}
var navID = Graphic_Button_Flower_Powercounter;
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_Flower_PowergetHTML(navID, "CACF", "/~site/Layout/Buttons/Elegant_Button.gif", "Index.html", 1, "Graphic_Button_Flower_PowerGRAPHIC1", 0));
document.write(Graphic_Button_Flower_PowergetHTML(navID, "About Us", "/~site/Layout/Buttons/Elegant_Button.gif", "Map_and_Directions.html", 2, "Graphic_Button_Flower_PowerGRAPHIC2", 0));
document.write(Graphic_Button_Flower_PowergetHTML(navID, "Seminars", "/~site/Layout/Buttons/Elegant_Button.gif", "Seminars.html", 3, "Graphic_Button_Flower_PowerGRAPHIC3", 0));
document.write(Graphic_Button_Flower_PowergetHTML(navID, "Links", "/~site/Layout/Buttons/Elegant_Button.gif", "Links.html", 4, "Graphic_Button_Flower_PowerGRAPHIC4", 0));
document.write(Graphic_Button_Flower_PowergetHTML(navID, "Workshop", "/~site/Layout/Buttons/Elegant_Button.gif", "WorkshopsEtc.html", 5, "Graphic_Button_Flower_PowerGRAPHIC5", 0));
document.write(Graphic_Button_Flower_PowergetHTML(navID, "Photos", "/~site/Layout/Buttons/Elegant_Button.gif", "Photos.html", 6, "Graphic_Button_Flower_PowerGRAPHIC6", 0));
document.write(Graphic_Button_Flower_PowergetHTML(navID, "Events", "/~site/Layout/Buttons/Elegant_Button.gif", "Workshops.html", 7, "Graphic_Button_Flower_PowerGRAPHIC7", 0));
document.write(Graphic_Button_Flower_PowergetHTML(navID, "Extras", "/~site/Layout/Buttons/Elegant_Button.gif", "Photo_Album.html", 8, "Graphic_Button_Flower_PowerGRAPHIC8", 0));
document.write(Graphic_Button_Flower_PowergetHTML(navID, "Chapter Service ", "/~site/Layout/Buttons/Elegant_Button.gif", "ChapterService.html", 9, "Graphic_Button_Flower_PowerGRAPHIC9", 1));

}
}
function Graphic_Button_Flower_PowernetscapeDivCheck() {
var strAppName = navigator.appName;
var appVer = parseFloat(navigator.appVersion);
if ( (strAppName == "Netscape")&&
(appVer >= 4.0 && appVer < 5) ) { 
document.write("</DIV>");
}
}
var Graphic_Button_Flower_Powercounter;
Graphic_Button_Flower_PowernavElement();
Graphic_Button_Flower_PowernetscapeDivCheck();
