/* [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 theSitetree=[ 
	['PAGE','6701',jdecode('Home'),jdecode(''),'/6701.html','true',[],''],
	['PAGE','81601',jdecode('For+Sale'),jdecode(''),'/81601.html','true',[],''],
	['PAGE','80201',jdecode('Class+Cancellations'),jdecode(''),'/80201.html','false',[],''],
	['PAGE','26501',jdecode('News'),jdecode(''),'/26501.html','true',[],''],
	['PAGE','6794',jdecode('About+The+Human'),jdecode(''),'/6794/index.html','true',[ 
		['PAGE','13501',jdecode('About+The+Dogs'),jdecode(''),'/6794/13501.html','true',[],'']
	],''],
	['PAGE','80901',jdecode('Videos'),jdecode(''),'/80901.html','false',[],''],
	['PAGE','75501',jdecode('Dedication+To+Dad'),jdecode(''),'/75501/index.html','true',[ 
		['PAGE','76801',jdecode('Eulogy'),jdecode(''),'/75501/76801.html','true',[],''],
		['PAGE','76822',jdecode('Obituary'),jdecode(''),'/75501/76822.html','true',[],'']
	],''],
	['PAGE','39001',jdecode('Training+Philosophy'),jdecode(''),'/39001.html','true',[],''],
	['PAGE','6773',jdecode('Services'),jdecode(''),'/6773/index.html','true',[ 
		['PAGE','16601',jdecode('Agility+For+Fun'),jdecode(''),'/6773/16601.html','true',[],''],
		['PAGE','16801',jdecode('Competitive+Agility'),jdecode(''),'/6773/16801.html','true',[],''],
		['PAGE','43301',jdecode('Power+Point+Lectures'),jdecode(''),'/6773/43301.html','true',[],''],
		['PAGE','26522',jdecode('Private+Consultation'),jdecode(''),'/6773/26522.html','true',[],''],
		['PAGE','26543',jdecode('Workshops%2FSeminars'),jdecode(''),'/6773/26543.html','true',[],'']
	],''],
	['PAGE','6815',jdecode('Locations'),jdecode(''),'/6815.html','true',[],''],
	['PAGE','26564',jdecode('Class+Policies'),jdecode(''),'/26564/index.html','true',[ 
		['PAGE','26585',jdecode('Agility+For+Fun'),jdecode(''),'/26564/26585.html','true',[],''],
		['PAGE','26606',jdecode('Competitive+Agility'),jdecode(''),'/26564/26606.html','true',[],'']
	],''],
	['PAGE','69301',jdecode('Library'),jdecode(''),'/69301/index.html','true',[ 
		['PAGE','69322',jdecode('Articles'),jdecode(''),'/69301/69322.html','true',[],''],
		['PAGE','68201',jdecode('Student+Handouts'),jdecode(''),'/69301/68201.html','true',[],''],
		['PAGE','79301',jdecode('Desert+Sage+Workshops'),jdecode(''),'/69301/79301.html','false',[],'']
	],''],
	['PAGE','56901',jdecode('Student+Brags'),jdecode(''),'/56901.html','false',[],''],
	['PAGE','36901',jdecode('Student+Photos'),jdecode(''),'/36901.html','true',[],''],
	['PAGE','26627',jdecode('Resources'),jdecode(''),'/26627/index.html','true',[ 
		['PAGE','57601',jdecode('Agility+Equipment'),jdecode(''),'/26627/57601.html','true',[],''],
		['PAGE','26669',jdecode('Agility+Organizations'),jdecode(''),'/26627/26669.html','true',[],''],
		['PAGE','64801',jdecode('Clicker+Training'),jdecode(''),'/26627/64801.html','true',[],''],
		['PAGE','26648',jdecode('Dog+Health'),jdecode(''),'/26627/26648.html','true',[],''],
		['PAGE','41601',jdecode('Obedience+Training'),jdecode(''),'/26627/41601.html','true',[],''],
		['PAGE','13301',jdecode('Reading%2FDVDs'),jdecode(''),'/26627/13301.html','true',[],''],
		['PAGE','26690',jdecode('Toys%2FTreats'),jdecode(''),'/26627/26690.html','true',[],''],
		['PAGE','39701',jdecode('Trials%2FMatches'),jdecode(''),'/26627/39701.html','true',[],'']
	],''],
	['PAGE','12901',jdecode('Contact+Us'),jdecode(''),'/12901.html','true',[],''],
	['PAGE','64901',jdecode('Search+Our+Site'),jdecode(''),'/64901.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Card';
theSitetree.paletteFamily='330099';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='427';
theSitetree.graphicsetId='475';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Card',
				paletteFamily: 	'330099',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'427',
				graphicsetId: 	'475',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20091229-000831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6773',
internalId:  '',
customField: '20090203-021725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20090123-142829'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-14632048']={
webappId:    '1501',
documentId:  '6701',
internalId:  '14632048',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20090123-134811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6794',
internalId:  '',
customField: '20091229-000908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6815',
internalId:  '',
customField: '20090124-174007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13301',
internalId:  '',
customField: '20090214-133217'
};
webappMappings['7008']=webappMappings['7008-11998']={
webappId:    '7008',
documentId:  '12901',
internalId:  '11998',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20091103-102507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20090921-200049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26543',
internalId:  '',
customField: '20090123-141102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26522',
internalId:  '',
customField: '20090123-140007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26564',
internalId:  '',
customField: '20090921-200230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26669',
internalId:  '',
customField: '20090123-142213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26648',
internalId:  '',
customField: '20090423-121532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26627',
internalId:  '',
customField: '20090125-185452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26690',
internalId:  '',
customField: '20090214-125429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26501',
internalId:  '',
customField: '20091103-102224'
};
webappMappings['7060']=webappMappings['7060-0c6fdea7fe173dd33eb590cb4863a830']={
webappId:    '7060',
documentId:  '36901',
internalId:  '0c6fdea7fe173dd33eb590cb4863a830',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26585',
internalId:  '',
customField: '20090921-200342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26606',
internalId:  '',
customField: '20090123-141922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20090214-123906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39001',
internalId:  '',
customField: '20090123-140401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39701',
internalId:  '',
customField: '20090214-124049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41601',
internalId:  '',
customField: '20090213-174940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43301',
internalId:  '',
customField: '20090203-021916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56901',
internalId:  '',
customField: '20090202-230711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20090214-134322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69301',
internalId:  '',
customField: '20090921-200744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20090820-003155'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '64901',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64801',
internalId:  '',
customField: '20090125-125304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64901',
internalId:  '',
customField: '20090125-125740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69322',
internalId:  '',
customField: '20090817-234225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75501',
internalId:  '',
customField: '20090510-120046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76801',
internalId:  '',
customField: '20090510-114946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76822',
internalId:  '',
customField: '20090510-115008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79301',
internalId:  '',
customField: '20090820-003308'
};
webappMappings['7050']=webappMappings['7050-7362']={
webappId:    '7050',
documentId:  '80201',
internalId:  '7362',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80201',
internalId:  '',
customField: '20091012-205644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80901',
internalId:  '',
customField: '20091103-105832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81601',
internalId:  '',
customField: '20091214-205017'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INESUE';
var companyName   = 'MOMENTUM+DOG+SPORTS';
var htmlTitle	  = 'Momentum+Dog+Sports';
var metaKeywords  = 'dog%2Cagility%2Ctraining%2Cmomentum+dog+sports%2C+sports%2Coperant+conditioning%2Cclicker+training';
var metaContents  = 'dog+agility+training+dog+sports+clicker+training+operant+conditioning';
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();
};
