thisPicRecp = 0
thisPicFtw = 0
thisPicBrb = 0
thisPicFfc = 0
thisPicWg = 0
thisPicOfm = 0
thisPicSb = 0
thisPicIl = 0
function chgSlide(direction,page) {

if (document.images) {
	
	switch (page)
	{
	case "Recp":
		myPixRecp = new Array(baseUrl+"/files/pepin_table.jpg",
baseUrl+"/files/FallTable.jpg",
baseUrl+"/files/FallTable2.jpg",
baseUrl+"/files/YellowOrchidFall.jpg",
baseUrl+"/files/YellowOrchidRoom.jpg",
baseUrl+"/files/pink_table.jpg",
baseUrl+"/files/roses_calla.jpg",
baseUrl+"/files/multi_tree.jpg",
baseUrl+"/files/yellow_fall.jpg",
baseUrl+"/files/pink_cake.jpg",
baseUrl+"/files/cylinders-with-petals.jpg",
baseUrl+"/files/pink_cndletable.jpg",
baseUrl+"/files/guestbook.jpg",
baseUrl+"/files/pink_seating.jpg",
baseUrl+"/files/RoseCallaCakeTopper.jpg",
baseUrl+"/files/purple_table.jpg",
baseUrl+"/files/rose_euc.jpg",
baseUrl+"/files/topiary_seating.jpg",
baseUrl+"/files/lily.jpg",
baseUrl+"/files/CakeYellowRoses.jpg",
baseUrl+"/files/calla_cake.jpg",
baseUrl+"/files/liatris_rec.jpg",
baseUrl+"/files/leaf_cake.jpg",
baseUrl+"/files/cream_rec.jpg",
baseUrl+"/files/RedGreenFall_Center.jpg",
baseUrl+"/files/YellowOrchidLowCenterpiece.jpg")
		imgCtRecp = myPixRecp.length - 1;
		thisPicRecp = thisPicRecp + direction
		if (thisPicRecp > imgCtRecp){
		thisPicRecp = 0
	   }
	  if (thisPicRecp < 0) {
		thisPicRecp = imgCtRecp
	   }
		document.myPicture.src=
			myPixRecp[thisPicRecp]
		break;
	case "Ftw":
		myPixFtw = new Array(baseUrl+"/files/willow_cors.jpg",
baseUrl+"/files/white_cors.jpg",
baseUrl+"/files/rose_stefcors.jpg",
baseUrl+"/files/purple_orchidcors.jpg"
)
	imgCtFtw = myPixFtw.length - 1


			thisPicFtw= thisPicFtw + direction
		if (thisPicFtw > imgCtFtw){
		thisPicFtw = 0
	   }
	  if (thisPicFtw < 0) {
		thisPicFtw = imgCtFtw
	   }
		document.myPicture.src=
			myPixFtw[thisPicFtw]
		break;

    case 'Brb':
		myPixBrb = new Array(baseUrl+"/files/lg_rose.jpg",
baseUrl+"/files/brides_maids_bouq2.jpg",
baseUrl+"/files/brides_maid_bouq.jpg",
baseUrl+"/files/brides_bouq.jpg",
baseUrl+"/files/yellowred_roses.jpg",
baseUrl+"/files/yellow_lily.jpg",
baseUrl+"/files/lavenders_yellow.jpg",
baseUrl+"/files/red-and-yellow-cascade.jpg",
baseUrl+"/files/yellow_fall.jpg",
baseUrl+"/files/wht_green.jpg",
baseUrl+"/files/wht_cascade.jpg",
baseUrl+"/files/roses_tied.jpg",
baseUrl+"/files/purples_clutch.jpg",
baseUrl+"/files/roses_gerbs_euro.jpg",
baseUrl+"/files/purple_white.jpg",
baseUrl+"/files/orchid-cascade.jpg",
baseUrl+"/files/purple_stef.jpg",
baseUrl+"/files/pinks_weavetied.jpg",
baseUrl+"/files/orchids.jpg",
baseUrl+"/files/orange_calla.jpg",
baseUrl+"/files/brt_yellow.jpg",
baseUrl+"/files/white_cluster.jpg",
baseUrl+"/files/gerb_tulip.jpg",
baseUrl+"/files/white_cascade.jpg",
baseUrl+"/files/tulip_cascade.jpg",
baseUrl+"/files/purplepk_cascade.jpg",	
baseUrl+"/files/pink_cluster.jpg",
baseUrl+"/files/pink_cascade.jpg",
baseUrl+"/files/orange_gerbera.jpg",
baseUrl+"/files/orange_gerb.jpg",	
baseUrl+"/files/lily_cascade.jpg",
baseUrl+"/files/hydrangea_cluster.jpg",	
baseUrl+"/files/pink_calla.jpg",
baseUrl+"/files/purple.jpg",
baseUrl+"/files/yellow.jpg",
baseUrl+"/files/pastels.jpg",
baseUrl+"/files/callas.jpg",
baseUrl+"/files/plant_flowers.jpg",
baseUrl+"/files/purples.jpg",
baseUrl+"/files/long_cascade.jpg",
baseUrl+"/files/pastel_cascade.jpg",
baseUrl+"/files/brt_cluster.jpg",
baseUrl+"/files/gerberas.jpg",
baseUrl+"/files/5aab.jpg",
baseUrl+"/files/red_yellow.jpg",
baseUrl+"/files/yellow_ht.jpg",
baseUrl+"/files/RedGreenTrio.jpg",
baseUrl+"/files/EarthColors.jpg",
baseUrl+"/files/red_roses_orchids_maids.jpg",
baseUrl+"/files/rose_calla_orchid_bride.jpg",
baseUrl+"/files/BridalBouquetDress.jpg",
baseUrl+"/files/brideOrangeCalla.jpg",
baseUrl+"/files/AmBride.jpg",
baseUrl+"/files/TableSetting.jpg",
baseUrl+"/files/AutumnColorsBouquet.jpg")
imgCtBrb = myPixBrb.length - 1;
			thisPicBrb= thisPicBrb + direction
		if (thisPicBrb > imgCtBrb){
		thisPicBrb = 0
	   }
	  if (thisPicBrb < 0) {
		thisPicBrb = imgCtBrb
	   }
		document.myPicture.src=
			myPixBrb[thisPicBrb]
		break;
    case 'Ffc':
myPixFfc = new Array(baseUrl+"/files/wreath.jpg",
baseUrl+"/files/FallOutdoor.jpg",
baseUrl+"/files/FallOutdoor2.jpg",
baseUrl+"/files/FallOutdoor3.jpg",
baseUrl+"/files/willow_table.jpg",
baseUrl+"/files/white_cndlabra.jpg",
baseUrl+"/files/unity.jpg",
baseUrl+"/files/purple_alter.jpg",
baseUrl+"/files/pink_pew.jpg",
baseUrl+"/files/CandleHolder.jpg",
baseUrl+"/files/peony_alter.jpg",
baseUrl+"/files/lily_pew.jpg",
baseUrl+"/files/beach_alter.jpg",
baseUrl+"/files/alter.jpg",
baseUrl+"/files/pewBow.jpg"
)
	imgCtFfc = myPixFfc.length - 1;
		thisPicFfc= thisPicFfc + direction
		if (thisPicFfc > imgCtFfc){
		thisPicFfc = 0
	   }
	  if (thisPicFfc < 0) {
		thisPicFfc = imgCtFfc
	   }
		document.myPicture.src=
			myPixFfc[thisPicFfc]
		break;
   case 'Wg':
	   myPixWg = new Array(

baseUrl+"/files/18_5OneTouchSilver.jpg",
baseUrl+"/files/18_5SmokeyMtn.jpg",
baseUrl+"/files/CharGoAnywhere.jpg",
baseUrl+"/files/CharQ.jpg",
baseUrl+"/files/GenesisEP310.jpg",
baseUrl+"/files/GenesisEP320.jpg",
baseUrl+"/files/GenesisS310.jpg",
baseUrl+"/files/GenesisS320.jpg",
baseUrl+"/files/GoAnywhere.jpg",
baseUrl+"/files/OneTouchGold.jpg",
baseUrl+"/files/OneTouchGoldChar.jpg",
baseUrl+"/files/OneTouchSilver.jpg",
baseUrl+"/files/PerformerCharcoal.jpg",
baseUrl+"/files/Q100.jpg",
baseUrl+"/files/Q120.jpg",
baseUrl+"/files/Q140.jpg",
baseUrl+"/files/Q220.jpg",
baseUrl+"/files/Q300.jpg",
baseUrl+"/files/RanchKettle.jpg",
baseUrl+"/files/SmokeyJoe.jpg",
baseUrl+"/files/SmokeyMtn.jpg",
baseUrl+"/files/SpiritE210.jpg",
baseUrl+"/files/SpiritEP310.jpg",
baseUrl+"/files/SpiritEP320.jpg",
baseUrl+"/files/SummitS420.jpg",
baseUrl+"/files/SummitS450.jpg",
baseUrl+"/files/SummitS470.jpg",
baseUrl+"/files/SummitS650.jpg")
imgCtWg = myPixWg.length - 1;


	   thisPicWg= thisPicWg + direction
		if (thisPicWg > imgCtWg){
		thisPicWg = 0
	   }
	  if (thisPicWg < 0) {
		thisPicWg = imgCtWg
	   }
		document.myPicture.src=
			myPixWg[thisPicWg]
		break;
case 'Ofm':
	myPixOfm = new Array(baseUrl+"/files/storefrontGroup.jpg",
baseUrl+"/files/storefronttand.jpg",
baseUrl+"/files/Deanne.jpg",
baseUrl+"/files/DeliveryTeam.jpg",
baseUrl+"/files/DomeOutsideStand.jpg",
baseUrl+"/files/JoyfulFlowers.jpg",
baseUrl+"/files/LarryPfarr.jpg",
baseUrl+"/files/TwinsSignup.jpg",
baseUrl+"/files/twinsflowers.jpg")
imgCtOfm = myPixOfm.length - 1;

	 thisPicOfm= thisPicOfm + direction
		if (thisPicOfm > imgCtOfm){
		thisPicOfm = 0
	   }
	  if (thisPicOfm < 0) {
		thisPicOfm = imgCtOfm
	   }
		document.myPicture.src=
			myPixOfm[thisPicOfm]
		break;
case 'Sb':
	myPixSb = new Array(baseUrl+"/files/BeautifulCover.jpg",
baseUrl+"/files/BeautifulTeam.jpg",
baseUrl+"/files/BeautifulStroller.jpg",
baseUrl+"/files/BeautifulSalon.jpg",
baseUrl+"/files/BeautifulBike.jpg",
baseUrl+"/files/BeautifulChild.jpg",
baseUrl+"/files/BeautifulBiker.jpg",
baseUrl+"/files/BeautifulGerbera.jpg",
baseUrl+"/files/BeautifulPlayground.jpg",
baseUrl+"/files/BeautifulJeep.jpg",
baseUrl+"/files/BeautifulPfarr.jpg",
baseUrl+"/files/BeautifulMotherDaughter.jpg",
baseUrl+"/files/BeautifulUptown.jpg")
imgCtSb = myPixSb.length - 1

	thisPicSb= thisPicSb + direction
		if (thisPicSb > imgCtSb){
		thisPicSb = 0
	   }
	  if (thisPicSb < 0) {
		thisPicSb = imgCtSb
	   }
		document.myPicture.src=
			myPixSb[thisPicSb]
		break;
case 'Il':
	myPixIl = new Array(
   baseUrl+"/files/MallWay.jpg",
   baseUrl+"/files/FountainsAndTrees.jpg",
   baseUrl+"/files/Lounge.jpg",
   baseUrl+"/files/MeetingSpace.jpg",
   baseUrl+"/files/Palm.jpg",
   baseUrl+"/files/ElegantArea.jpg"
    )
 imgCtIl = myPixIl.length - 1
thisPicIl= thisPicIl + direction
		if (thisPicIl > imgCtIl){
		thisPicIl = 0
	   }
	  if (thisPicIl < 0) {
		thisPicIl = imgCtIl
	   }
		document.myPicture.src=
			myPixIl[thisPicIl]
		break;


	}
	
	
		
		}
	}


	function tryItOut(){ 
    searchTerms=document.getElementById('search-terms');
    if(searchTerms != null){
    searchTerms.focus(); 
	} 
    } 

function clearText(objectId, text){
	var emailValue = document.getElementById(objectId).value;
	if(emailValue == text){
		document.getElementById(objectId).value = '';
		document.getElementById(objectId).style.color = '#000';
	}
}

function setText(objectId, text) {
	var emailValue = document.getElementById(objectId).value;
	if(emailValue.length == 0){
		document.getElementById(objectId).style.color = '#BCBCBC';
		document.getElementById(objectId).value = text;
	}
}

function joinEclub(){
	var email = document.getElementById('customerEmail').value;
	if(email.length == 0 || email == "email address"){
		window.location.href ="http://visitor.constantcontact.com/manage/optin/ea?v=001XWTM8Vlkw3bUsBUrjrh4Dw%3D%3D";
	}else {
		window.location.href = "http://visitor.constantcontact.com/manage/optin?v=001XWTM8Vlkw3ZslsTeVoH4LxMal6GafghH_coOxRTgWA3eTUAfPz5HYw%3D%3D";
	}
}
/*function changeImg(ImgShow,imgHide,thumbImgOff,thumbImgOn)*/
	function changeImg(ImgShow) {
		flipImage = true;
		var delayTime = 700; 		
	    if (ImgShow=="img_home-1"){
	       setTimeout("showFirstImage()", delayTime);
	    }
	    
	    if (ImgShow=="img_home-2"){
			setTimeout("showSecondImage()", delayTime);
	    }
	    
	    if (ImgShow=="img_home-3"){
	    	setTimeout("showThirdImage()", delayTime);
	    }
	}

function showFirstImage(){
	if(flipImage){
	   document.getElementById("img_home-1").style.display = "";
	   document.getElementById("img_home-2").style.display = "none";
	   document.getElementById("img_home-3").style.display = "none";
	   document.getElementById("thumbID1").src =  "/template-resources/images/bachmans/TopImage_smThumb.gif";
	   document.getElementById("thumbID2").src =  "/template-resources/images/bachmans/MidImage_sm.jpg";
	   document.getElementById("thumbID3").src =  "/template-resources/images/bachmans/BotImage_sm.jpg";
	}
}

function showSecondImage(){
	if(flipImage){
	    document.getElementById("img_home-1").style.display = "none";
        document.getElementById("img_home-2").style.display = "";
        document.getElementById("img_home-3").style.display = "none";
	    document.getElementById("thumbID1").src =  "/template-resources/images/bachmans/TopImage_sm.jpg";
        document.getElementById("thumbID2").src =  "/template-resources/images/bachmans/MidImage_smThumb.gif";
        document.getElementById("thumbID3").src =  "/template-resources/images/bachmans/BotImage_sm.jpg";
	}
}

function showThirdImage(){
	if(flipImage){
	    document.getElementById("img_home-1").style.display = "none";
        document.getElementById("img_home-2").style.display = "none";
        document.getElementById("img_home-3").style.display = "";
        document.getElementById("thumbID1").src =  "/template-resources/images/bachmans/TopImage_sm.jpg";
        document.getElementById("thumbID2").src =  "/template-resources/images/bachmans/MidImage_sm.jpg";
        document.getElementById("thumbID3").src = "/template-resources/images/bachmans/BotImage_smThumb.gif";
	}
}

function resetImageSwitch(){
	flipImage = false;
}
