/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','552',jdecode('About+us'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','573',jdecode('Services'),jdecode(''),'/573.html','true',[],'',''],
	['PAGE','23801',jdecode('Dr.+Michele+Greer'),jdecode(''),'/23801.html','true',[],'',''],
	['PAGE','31301',jdecode('NADTI'),jdecode(''),'/31301.html','true',[],'',''],
	['PAGE','594',jdecode('Products'),jdecode(''),'/594.html','true',[],'',''],
	['PAGE','20801',jdecode('Events'),jdecode(''),'/20801.html','true',[],'',''],
	['PAGE','14201',jdecode('Contact+Info'),jdecode(''),'/14201.html','true',[],'',''],
	['PAGE','20822',jdecode('FAQ'),jdecode(''),'/20822.html','true',[],'',''],
	['PAGE','615',jdecode('Pictures'),jdecode(''),'/615/index.html','true',[ 
		['PAGE','24701',jdecode('Group+Classes'),jdecode(''),'/615/24701.html','true',[],'',''],
		['PAGE','24722',jdecode('Treadmill+Training'),jdecode(''),'/615/24722.html','true',[],'',''],
		['PAGE','24743',jdecode('Flyball+Team'),jdecode(''),'/615/24743.html','true',[],'','']
	],'',''],
	['PAGE','14901',jdecode('Media+links'),jdecode(''),'/14901.html','true',[],'',''],
	['PAGE','6001',jdecode('Links'),jdecode(''),'/6001.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Mosaic';
theSitetree.paletteFamily='F3F2BE';
theSitetree.keyvisualId='2592';
theSitetree.keyvisualName='hund.jpg';
theSitetree.fontsetId='10713';
theSitetree.graphicsetId='10518';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F3F2BE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Mosaic',
				paletteFamily: 	'F3F2BE',
				keyvisualId: 	'2592',
				keyvisualName: 	'hund.jpg',
				fontsetId: 		'10713',
				graphicsetId: 	'10518',
				contentColor: 	'000000',
				contentBGColor: 'F3F2BE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D85161',
				e_color: 		'A1A05C',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100622-173247'
};
webappMappings['7008']=webappMappings['7008-6294']={
webappId:    '7008',
documentId:  '14201',
internalId:  '6294',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20100726-151527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20100430-181201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20100430-175806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20100414-184958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20100407-185906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20100719-173629'
};
webappMappings['7060']=webappMappings['7060-20d87654bccce4be464c4d5636303265']={
webappId:    '7060',
documentId:  '24701',
internalId:  '20d87654bccce4be464c4d5636303265',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20090507-161427'
};
webappMappings['7060']=webappMappings['7060-9865bed2f51dab63113ee03442fd34a6']={
webappId:    '7060',
documentId:  '24722',
internalId:  '9865bed2f51dab63113ee03442fd34a6',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20100719-173511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20100622-172145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20822',
internalId:  '',
customField: '20100414-184758'
};
webappMappings['7060']=webappMappings['7060-7a1e937a0a5b8ac921502ca4690394c4']={
webappId:    '7060',
documentId:  '24743',
internalId:  '7a1e937a0a5b8ac921502ca4690394c4',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24701',
internalId:  '',
customField: '20100414-185046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24722',
internalId:  '',
customField: '20100218-180537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24743',
internalId:  '',
customField: '20100414-185157'
};
webappMappings['7060']=webappMappings['7060-581d1ba9ae13b2331c28c628fa348c16']={
webappId:    '7060',
documentId:  '594',
internalId:  '581d1ba9ae13b2331c28c628fa348c16',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-a673184cfb74d1e1f02a824157a41881']={
webappId:    '7060',
documentId:  '615',
internalId:  'a673184cfb74d1e1f02a824157a41881',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31301',
internalId:  '',
customField: '20100622-172003'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INP613';
var companyName   = 'Return+the+Favor';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
