var FarmPicCnt1=1;
var FarmPicdir1="forward";
var FarmPicLibrary1 = new Array();
FarmPicLibrary1[1] = new Image(500,350);
FarmPicLibrary1[1].src="BeetberryImages/FarmEarlySpring2.jpg";
FarmPicLibrary1[2] = new Image(500,350);
FarmPicLibrary1[2].src="BeetberryImages/Greenhouse1.jpg";
FarmPicLibrary1[3] = new Image(500,350);
FarmPicLibrary1[3].src="BeetberryImages/StudioPottingShed.jpg";
FarmPicLibrary1[4] = new Image(500,350);
FarmPicLibrary1[4].src="BeetberryImages/FarmEarlySpring1.jpg";
FarmPicLibrary1[5] = new Image(500,350);
FarmPicLibrary1[5].src="BeetberryImages/AroundtheFarm1.jpg";
FarmPicLibrary1[6] = new Image(500,350);
FarmPicLibrary1[6].src="BeetberryImages/AroundtheFarm2.jpg";
FarmPicLibrary1[7] = new Image(500,350);
FarmPicLibrary1[7].src="BeetberryImages/AroundtheFarm5.jpg";
FarmPicLibrary1[8] = new Image(500,350);
FarmPicLibrary1[8].src="BeetberryImages/CoverCrop1.jpg";
FarmPicLibrary1[9] = new Image(500,350);
FarmPicLibrary1[9].src="BeetberryImages/CoverCrop2.jpg";
FarmPicLibrary1[10] = new Image(500,350);
FarmPicLibrary1[10].src="BeetberryImages/AroundtheFarm4.jpg";
FarmPicLibrary1[11] = new Image(500,350);
FarmPicLibrary1[11].src="BeetberryImages/Beetberries.jpg";
FarmPicLibrary1[12] = new Image(500,350);
FarmPicLibrary1[12].src="BeetberryImages/BeetberryFarmBarn.jpg";
FarmPicLibrary1[13] = new Image(500,350);
FarmPicLibrary1[13].src="BeetberryImages/AroundtheFarm6.jpg";
FarmPicLibrary1[14] = new Image(500,350);
FarmPicLibrary1[14].src="BeetberryImages/SummerHollyhocks.jpg";

FarmPicLibrary1[15] = new Image(500,350);
FarmPicLibrary1[15].src="BeetberryImages/BeeForagers.jpg";
FarmPicLibrary1[16] = new Image(500,350);
FarmPicLibrary1[16].src="BeetberryImages/NewGarden.jpg";

FarmPicLibrary1[17] = new Image(500,350);
FarmPicLibrary1[17].src="BeetberryImages/DownTheRows1.jpg";
FarmPicLibrary1[18] = new Image(500,350);
FarmPicLibrary1[18].src="BeetberryImages/DownTheRows2.jpg";



FarmPicLibrary1[19] = new Image(500,350);
FarmPicLibrary1[19].src="BeetberryImages/OriginalGardenCover.jpg";
FarmPicLibrary1[20] = new Image(500,350);
FarmPicLibrary1[20].src="BeetberryImages/Pumpkin.jpg";

FarmPicLibrary1[21] = new Image(500,350);
FarmPicLibrary1[21].src="BeetberryImages/FarmFall1.jpg";
FarmPicLibrary1[22] = new Image(500,350);
FarmPicLibrary1[22].src="BeetberryImages/FarmFall2.jpg";
FarmPicLibrary1[23] = new Image(500,350);
FarmPicLibrary1[23].src="BeetberryImages/Winter1.jpg";
FarmPicLibrary1[24] = new Image(500,350);
FarmPicLibrary1[24].src="BeetberryImages/Winter2.jpg";
FarmPicLibrary1[25] = new Image(500,350);
FarmPicLibrary1[25].src="BeetberryImages/Winter3.jpg";
FarmPicLibrary1[26] = new Image(500,350);
FarmPicLibrary1[26].src="BeetberryImages/Winter4.jpg";


var titleLibrary1 = new Array();

titleLibrary1[1] = "Garden surrounded by deer fence";
titleLibrary1[2] = "Inside greenhouse, early season";
titleLibrary1[3] = "Combination Studio and Potting Shed";
titleLibrary1[4] = "Garden just tilled";
titleLibrary1[5] = "Yucca in bloom";
titleLibrary1[6] = "Honeysuckle vine on side of porch";
titleLibrary1[7] = "Waterlilies on pond";
titleLibrary1[8] = "Mustard cover crop";
titleLibrary1[9] = "Showing height of buckwheat cover crop";
titleLibrary1[10] = "Echinacea purpurea with single flower Hollyhocks in background";
titleLibrary1[11] = "Beetberry plant: Chenopodium foliosum";
titleLibrary1[12] = "Barn with Beetberry Farm sign";
titleLibrary1[13] = "Swallowtail butterfly on blossom";
titleLibrary1[14] = "Single flowered hollyhocks";


titleLibrary1[15] = "Bees on Goldenrod";
titleLibrary1[16] = "New garden for 2010 with deerfence; 4 times original garden space.";

titleLibrary1[17] = "Down the Rows of the New Garden (view 1). Mid July 2010";
titleLibrary1[18] = "Down the Rows of the New Garden (view 2). Mid July 2010";

titleLibrary1[19] = "Buckwheat cover crop to suppress weeds in both gardens.";
titleLibrary1[20] = "Kakai pumpkins grown for pumpkin seeds.";

titleLibrary1[21] = "Farm in Autumn";
titleLibrary1[22] = "Home in Autumn";
titleLibrary1[23] = "Tons of Snow";
titleLibrary1[24] = "Home in Winter";
titleLibrary1[25] = "Farm in Winter";
titleLibrary1[26] = "Home snug and warm under snow";



function loadFarmPicarray1(cnt, go)
{
if (go == "back") {
cnt -= 1;
} else { 
cnt += 1;
}

if (cnt >= 27) {
   cnt = 1;
}
if (cnt <= 0) {
   cnt = 26;
}

FarmPicCnt1 = cnt;
var newPicTitle = titleLibrary1[FarmPicCnt1];
document.FarmPicgallery1.src = FarmPicLibrary1[cnt].src;
document.FarmPicgallery1.alt = newPicTitle;
document.FarmPicgallery1.title = newPicTitle;

if (cnt == 10)
{
document.getElementById("PicTitle1").style.fontStyle = "italic";
document.getElementById("PicTitle1").childNodes[0].nodeValue = "Echinacea purpurea";
document.getElementById("PicTitle2").style.fontStyle = "normal";
document.getElementById("PicTitle2").childNodes[0].nodeValue = " with single flower Hollyhocks in background";
}
else
{
if (cnt == 11)
{
document.getElementById("PicTitle1").style.fontStyle = "normal";
document.getElementById("PicTitle1").childNodes[0].nodeValue = "Beetberry plant:";
document.getElementById("PicTitle2").style.fontStyle = "italic";
document.getElementById("PicTitle2").childNodes[0].nodeValue = " Chenopodium foliosum";
}

else
{
document.getElementById("PicTitle1").style.fontStyle = "normal";
document.getElementById("PicTitle1").childNodes[0].nodeValue = newPicTitle;
document.getElementById("PicTitle2").childNodes[0].nodeValue = "";
}
}
}

