/* [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','53',jdecode('Home'),jdecode(''),'/53.html','true',[],'',''],
	['PAGE','1077',jdecode('About+Us'),jdecode(''),'/1077.html','true',[],'',''],
	['PAGE','92',jdecode('APPLICATION'),jdecode(''),'/92.html','true',[],'',''],
	['PAGE','515',jdecode('Dogs+Currently+Available'),jdecode(''),'/515.html','true',[],'',''],
	['PAGE','21701',jdecode('We%26%23x27%3Bre+on+YouTube%21%21%21'),jdecode(''),'/21701.html','true',[],'',''],
	['PAGE','2132',jdecode('Ways+you+can+Help'),jdecode(''),'/2132.html','true',[],'',''],
	['PAGE','46701',jdecode('Don%26%23x27%3Bt+Buy%21+Here%26%23x27%3Bs+Why'),jdecode(''),'/46701.html','true',[],'',''],
	['PAGE','45801',jdecode('Dogs+and+Babies'),jdecode(''),'/45801.html','true',[],'',''],
	['PAGE','13401',jdecode('LOTS+of+HELPFUL+INFO'),jdecode(''),'/13401.html','true',[],'',''],
	['PAGE','30101',jdecode('Where+donations+go'),jdecode(''),'/30101.html','true',[],'',''],
	['PAGE','17701',jdecode('Toxic+Flea+Treatment%21%21'),jdecode(''),'/17701.html','true',[],'',''],
	['PAGE','1314',jdecode('Bringing+a+New+Dog+Home'),jdecode(''),'/1314.html','true',[],'',''],
	['PAGE','46401',jdecode('Separation+Anxiety'),jdecode(''),'/46401.html','true',[],'',''],
	['PAGE','5301',jdecode('The+%22Working+Walk%22'),jdecode(''),'/5301.html','true',[],'',''],
	['PAGE','55801',jdecode('PAWSabilities+'),jdecode(''),'/55801.html','true',[],'',''],
	['PAGE','2123',jdecode('Happy+Tales'),jdecode(''),'/2123.html','true',[],'',''],
	['PAGE','2239',jdecode('Scrapbook'),jdecode(''),'/2239.html','true',[],'',''],
	['PAGE','1904',jdecode('Soap+Box'),jdecode(''),'/1904.html','true',[],'',''],
	['PAGE','1305',jdecode('Newbury+Park+Pet+Supply'),jdecode(''),'/1305.html','true',[],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='7F1EA8';
theSitetree.keyvisualId='7122';
theSitetree.keyvisualName='kv_7122.jpg';
theSitetree.fontsetId='16395';
theSitetree.graphicsetId='12133';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blossom',
				paletteFamily: 	'7F1EA8',
				keyvisualId: 	'7122',
				keyvisualName: 	'kv_7122.jpg',
				fontsetId: 		'16395',
				graphicsetId: 	'12133',
				contentColor: 	'000000',
				contentBGColor: 'E5E2E2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '53',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20100820-170502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1077',
internalId:  '',
customField: '20100807-121049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2132',
internalId:  '',
customField: '20100820-171700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92',
internalId:  '',
customField: '20100730-151102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20100323-120603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100801-000244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46701',
internalId:  '',
customField: '20100318-132302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1314',
internalId:  '',
customField: '20080528-192531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20080711-204057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20100305-112904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2123',
internalId:  '',
customField: '20100816-220402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1904',
internalId:  '',
customField: '20081209-152702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2239',
internalId:  '',
customField: '20100807-120822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1305',
internalId:  '',
customField: '20080426-034249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20100801-001811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20100820-171241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45801',
internalId:  '',
customField: '20100523-114902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46401',
internalId:  '',
customField: '20090419-120824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55801',
internalId:  '',
customField: '20100415-120955'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXXR3';
var companyName   = 'Dog+Rescue+Network';
var htmlTitle	  = 'dog+rescue+network';
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();
};
