/*
index:Home;bleedsrvpark:Leeds RV Park;recreation:Recreation;government:Government;phototour:Photos;maps:Maps;historicsites:Historic Sites;weather:Weather;sutah:Southern Utah;moreinfo:More Information;
*/
/*
TEXTHIGHLIGHT:#996600;GRAPHICHIGHLIGHT:yes;FILENAME:Accent_Left_Square_Black;FONTFORMATBOLD:Bold;TEXTMOUSEOVER:#996600;BACKGROUNDHIGHLIGHT:none;GRAPHIC:Basic_Buttons;GRAPHICMOUSEOVER:yes;FONTSTYLE:Arial,Helvetica,adobe-helvetica,Arial Narrow;BACKGROUNDMOUSEOVER:none;ORIENTATION:VERTICAL;COLOR NAME:Camel;STYLENAME:Accent_Left_Square;GRAPHICSTYLE:BUTTONS;NUMPAGES:10;FONTCOLOR:#996600;FONTSIZE:2;GRAPHICCOLOR:Cream;VERTICALSPACE:10;COLORSCHEME:Black;HORIZONTALSPACE:10;
*/
var tabWidth = 114;
var tabHeight = 31;
var buttonsPerRow = 6; 
var nVerticalLinkGapInCell = 10;
var nHorizontalLinkGapInCell = 10;

MainsidebuttonOnImage = new Image(tabWidth, tabHeight);
MainsidebuttonOnImage.src = "/~site/Layout/Buttons/Basic_Button_Tan.gif";
MainsidebuttonOffImage = new Image(tabWidth, tabHeight);
MainsidebuttonOffImage.src = "/~site/Layout/Buttons/Basic_Button_Cream.gif";
function MainsidemouseOn(graphicName) { document.images[graphicName].src = MainsidebuttonOnImage.src; }
function MainsidemouseOff(graphicName) { document.images[graphicName].src = MainsidebuttonOffImage.src; }


function MainsidetextMouseOn(textObj) { textObj.style.color="#996600"; }
function MainsidetextMouseOff(textObj) { textObj.style.color="#996600"; }

function MainsidegetMouseOverHandler(strImgName, textObjName, bIsCurrPage) {
 
if (bIsCurrPage) return '';

var strHTMLMouseOver = '';
var strHTMLMouseOut = '';

if (navigator.userAgent.indexOf("IE") != -1) {
strHTMLMouseOver += 'MainsidemouseOn(\'' + strImgName + '\');';
strHTMLMouseOut += 'MainsidemouseOff(\'' + strImgName + '\');';
}


strHTMLMouseOver += 'MainsidetextMouseOn(' + textObjName + ');';
strHTMLMouseOut += 'MainsidetextMouseOff(' + textObjName + ');';

return 'onMouseOver="' + strHTMLMouseOver + '" onMouseOut="' + strHTMLMouseOut + '"';
}
function MainsideisCurrentPage(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 MainsidegetHTML(navID, strLinkName, strImg, strLink, nOptionNum, strImgName, bLastOption) {
var nRowIndex = 0;
var nColIndex = 0;
strImgName = strImgName + '_' + navID;
 
nColIndex = 0;
nRowIndex = nOptionNum - 1;


var bIsCurrPage = MainsideisCurrentPage(strLink);
if (bIsCurrPage) {

strImg = '/~site/Layout/Buttons/Basic_Button_Tan.gif';


strFontColor = '#996600';

} else {
strFontColor = '#996600';
}

if (navigator.userAgent.indexOf("IE") != -1) {
return MainsidegetIEHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, strFontColor, bIsCurrPage);
} else {
return MainsidegetNSHTML(strLinkName, strImg, strLink, nOptionNum, nRowIndex, nColIndex, strImgName, bLastOption, strFontColor, bIsCurrPage);
}
}
function goToLink(link) { parent.location = link; }
function MainsidegetIEHTML(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 += MainsidegetMouseOverHandler(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" ' + MainsidegetMouseOverHandler(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="2">'; 
var strFormattingStart = ''; 
var strFormattingEnd = '';


strFormattingStart += '<B>';
strFormattingEnd += '</B>';

strHTML += '<SPAN ID="' + divID + '" STYLE="color:' + strFontColor + '"';
strHTML += '>' + strFormattingStart + strLinkName + strFormattingEnd + '</SPAN>';
strHTML += "</FONT></DIV></DIV>";
return strHTML;
}
function MainsidegetNSHTML(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 += '<B>';
strFormattingEnd += '</B>';

strHTML += '<A TARGET="_parent" HREF="' + strLink + '">';
strHTML += '<FONT COLOR="' + strFontColor + '" FACE="Arial,Helvetica,adobe-helvetica,Arial Narrow" SIZE="2">'; 
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 MainsidenavElement() {
if(typeof Mainsidecounter == "undefined") {
Mainsidecounter = 1;
} else {
Mainsidecounter += 1;
}
var navID = Mainsidecounter;
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(MainsidegetHTML(navID, "Home", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "index.html", 1, "MainsideGRAPHIC1", 0));
document.write(MainsidegetHTML(navID, "Leeds RV Park", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "bleedsrvpark.html", 2, "MainsideGRAPHIC2", 0));
document.write(MainsidegetHTML(navID, "Recreation", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "recreation.html", 3, "MainsideGRAPHIC3", 0));
document.write(MainsidegetHTML(navID, "Government", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "government.html", 4, "MainsideGRAPHIC4", 0));
document.write(MainsidegetHTML(navID, "Photos", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "phototour.html", 5, "MainsideGRAPHIC5", 0));
document.write(MainsidegetHTML(navID, "Maps", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "maps.html", 6, "MainsideGRAPHIC6", 0));
document.write(MainsidegetHTML(navID, "Historic Sites", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "historicsites.html", 7, "MainsideGRAPHIC7", 0));
document.write(MainsidegetHTML(navID, "Weather", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "weather.html", 8, "MainsideGRAPHIC8", 0));
document.write(MainsidegetHTML(navID, "Southern Utah", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "sutah.html", 9, "MainsideGRAPHIC9", 0));
document.write(MainsidegetHTML(navID, "More Information", "/~site/Layout/Buttons/Basic_Button_Cream.gif", "moreinfo.html", 10, "MainsideGRAPHIC10", 1));

}
}
function MainsidenetscapeDivCheck() {
var strAppName = navigator.appName;
var appVer = parseFloat(navigator.appVersion);
if ( (strAppName == "Netscape")&&
(appVer >= 4.0 && appVer < 5) ) { 
document.write("</DIV>");
}
}
var Mainsidecounter;
MainsidenavElement();
MainsidenetscapeDivCheck();
