/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','5201',jdecode('Home'),jdecode(''), jdecode('%2F5201.html'), 'true',[],'',''],
	['PAGE','5252',jdecode('About+Us'),jdecode(''), jdecode('%2F5252%2Findex.html'), 'true',[ 
		['PAGE','28801',jdecode('History+%26+Today'),jdecode(''), jdecode('%2F5252%2F28801.html'), 'true',[],'',''],
		['PAGE','45301',jdecode('Meet+Our+Team'),jdecode(''), jdecode('%2F5252%2F45301.html'), 'true',[],'',''],
		['PAGE','45322',jdecode('Meet+Our+Horses'),jdecode(''), jdecode('%2F5252%2F45322.html'), 'true',[],'',''],
		['PAGE','5294',jdecode('Barn+Rules'),jdecode(''), jdecode('%2F5252%2F5294.html'), 'true',[],'',''],
		['PAGE','6201',jdecode('Newsom+News'),jdecode(''), jdecode('%2F5252%2F6201.html'), 'true',[],'','']
	],'',''],
	['PAGE','17301',jdecode('Facilities'),jdecode(''), jdecode('%2F17301%2Findex.html'), 'true',[ 
		['PAGE','21601',jdecode('Barn+%26+Arena'),jdecode(''), jdecode('%2F17301%2F21601.html'), 'true',[],'',''],
		['PAGE','17343',jdecode('Horse+Stalls'),jdecode(''), jdecode('%2F17301%2F17343.html'), 'true',[],'',''],
		['PAGE','17322',jdecode('Viewing+Area+%26+Clubhouse'),jdecode(''), jdecode('%2F17301%2F17322.html'), 'true',[],'',''],
		['PAGE','60815',jdecode('Farm+Property+Pics'),jdecode(''), jdecode('%2F17301%2F60815.html'), 'true',[],'','']
	],'',''],
	['PAGE','5273',jdecode('Services'),jdecode(''), jdecode('%2F5273%2Findex.html'), 'true',[ 
		['PAGE','6222',jdecode('Dressage+Lessons'),jdecode(''), jdecode('%2F5273%2F6222.html'), 'true',[],'',''],
		['PAGE','11001',jdecode('Dressage+Training'),jdecode(''), jdecode('%2F5273%2F11001.html'), 'true',[],'',''],
		['PAGE','10901',jdecode('Vaulting+Lessons'),jdecode(''), jdecode('%2F5273%2F10901.html'), 'true',[],'',''],
		['PAGE','11701',jdecode('Western+Lessons'),jdecode(''), jdecode('%2F5273%2F11701.html'), 'true',[],'',''],
		['PAGE','11722',jdecode('Natural+Horsemanship'),jdecode(''), jdecode('%2F5273%2F11722.html'), 'true',[],'',''],
		['PAGE','6001',jdecode('Boarding'),jdecode(''), jdecode('%2F5273%2F6001.html'), 'true',[],'',''],
		['PAGE','78629',jdecode('STALL+OPENINGS%21'),jdecode(''), jdecode('%2F5273%2F78629.html'), 'true',[],'',''],
		['PAGE','45401',jdecode('Misc+Services'),jdecode(''), jdecode('%2F5273%2F45401.html'), 'true',[],'','']
	],'',''],
	['PAGE','6022',jdecode('Calendar'),jdecode(''), jdecode('%2F6022%2Findex.html'), 'true',[ 
		['PAGE','5336',jdecode('Events%2FClinics'),jdecode(''), jdecode('%2F6022%2F5336.html'), 'true',[],'',''],
		['PAGE','75229',jdecode('Sign+Up+Sheet'),jdecode(''), jdecode('%2F6022%2F75229.html'), 'true',[],'',''],
		['PAGE','28822',jdecode('Monthly+Schedule'),jdecode(''), jdecode('%2F6022%2F28822.html'), 'true',[],'','']
	],'',''],
	['PAGE','5315',jdecode('Contact+Us'),jdecode(''), jdecode('%2F5315.html'), 'true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Antique';
theSitetree.paletteFamily='5EB43D';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11064';
theSitetree.graphicsetId='11837';
theSitetree.contentColor='D1C3A6';
theSitetree.contentBGColor='856A3B';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'qwest',
  product: 'WSCSYSSSSLYTCPH7'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antique',
				paletteFamily: 	'5EB43D',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11064',
				graphicsetId: 	'11837',
				contentColor: 	'D1C3A6',
				contentBGColor: '856A3B',
				a_color: 		'664F23',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20110330-122328'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTCPH7']={
webappId:    '5003',
documentId:  '5201',
internalId:  'tid:1;pid:WSCSYSSSSLYTCPH7',
customField: 'en:US::;language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5252',
internalId:  '',
customField: '20110330-122731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5273',
internalId:  '',
customField: '20110608-112230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5315',
internalId:  '',
customField: '20100910-101909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5336',
internalId:  '',
customField: '20110914-094215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6022',
internalId:  '',
customField: '20101016-105439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5294',
internalId:  '',
customField: '20110215-114153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20110223-121621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6222',
internalId:  '',
customField: '20110318-114700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20111027-095938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10901',
internalId:  '',
customField: '20100325-160607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20110502-112452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60815',
internalId:  '',
customField: '20110309-112347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45301',
internalId:  '',
customField: '20111017-164506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45322',
internalId:  '',
customField: '20110309-114420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20110718-092633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20111027-102146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11722',
internalId:  '',
customField: '20100325-190855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20100226-182721'
};
webappMappings['7050']=webappMappings['7050-2094']={
webappId:    '7050',
documentId:  '6201',
internalId:  '2094',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '5315',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20110309-113043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17343',
internalId:  '',
customField: '20100227-150337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17322',
internalId:  '',
customField: '20100227-150736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28822',
internalId:  '',
customField: '20101026-102713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28801',
internalId:  '',
customField: '20110330-124202'
};
webappMappings['7008']=webappMappings['7008-6896']={
webappId:    '7008',
documentId:  '75229',
internalId:  '6896',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75229',
internalId:  '',
customField: '20110914-094408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78629',
internalId:  '',
customField: '20100720-093544'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INZ158';
var companyName   = 'FallBrooks+Farm';
var htmlTitle	  = 'FallBrooks+Farm';
var metaKeywords  = 'FallBrooks+Farm+horse+boarding+training+lessons+dressage+western';
var metaContents  = 'Welcome+to+FallBrooks+Farm.+A+full+service+equestrian+facility+that+offers+boarding%2C+training%2C+lessons%2C+and+care+for+your+horse.+Come+visit+us+and+see+why+FallBrooks+Farm+is+a+step+above+the+competition.+FallBrooks+Farm+--+Striving+for+Perfection.';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};

