/* [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','5301',jdecode('Home'),jdecode(''),'/5301.html','true',[],''],
	['PAGE','51312',jdecode('Paradise+for+pets'),jdecode(''),'/51312.html','true',[],''],
	['PAGE','6301',jdecode('personalised+pet+photos'),jdecode(''),'/6301.html','true',[],''],
	['PAGE','6322',jdecode('pet+portrait'),jdecode(''),'/6322.html','true',[],''],
	['PAGE','6343',jdecode('on+vacation'),jdecode(''),'/6343.html','true',[],''],
	['PAGE','6364',jdecode('field+sports+photos'),jdecode(''),'/6364.html','false',[],''],
	['PAGE','6385',jdecode('about+us'),jdecode(''),'/6385.html','true',[],''],
	['PAGE','6406',jdecode('place+an+order'),jdecode(''),'/6406.html','true',[],''],
	['PAGE','12001',jdecode('paymentsuccesful'),jdecode(''),'/12001.html','false',[],''],
	['PAGE','9401',jdecode('friends+forever'),jdecode(''),'/9401.html','false',[],''],
	['PAGE','9422',jdecode('in+loving+memory'),jdecode(''),'/9422.html','false',[],''],
	['PAGE','9443',jdecode('always+in+our+heart'),jdecode(''),'/9443.html','false',[],''],
	['PAGE','9201',jdecode('out+and+about'),jdecode(''),'/9201.html','false',[],''],
	['PAGE','10201',jdecode('ayres'),jdecode(''),'/10201.html','false',[],''],
	['PAGE','20812',jdecode('countryside1'),jdecode(''),'/20812.html','false',[],''],
	['PAGE','27312',jdecode('links+page'),jdecode(''),'/27312.html','true',[],''],
	['PAGE','33112',jdecode('cappo+ayres'),jdecode(''),'/33112.html','false',[],''],
	['PAGE','45612',jdecode('pallette'),jdecode(''),'/45612.html','false',[],''],
	['PAGE','45633',jdecode('pastel'),jdecode(''),'/45633.html','false',[],''],
	['PAGE','45654',jdecode('watercolour'),jdecode(''),'/45654.html','false',[],''],
	['PAGE','56312',jdecode('paradise+for+pets+dogs'),jdecode(''),'/56312.html','false',[],''],
	['PAGE','56512',jdecode('paradise+for+pets+cats'),jdecode(''),'/56512.html','false',[],''],
	['PAGE','56533',jdecode('paradise+for+pets+other'),jdecode(''),'/56533.html','false',[],''],
	['PAGE','61012',jdecode('test++page'),jdecode(''),'/61012.html','false',[],''],
	['PAGE','63512',jdecode('dogs2'),jdecode(''),'/63512.html','false',[],''],
	['PAGE','63533',jdecode('dogs3'),jdecode(''),'/63533.html','false',[],''],
	['PAGE','63554',jdecode('dogs4'),jdecode(''),'/63554.html','false',[],''],
	['PAGE','63575',jdecode('dogs5'),jdecode(''),'/63575.html','false',[],''],
	['PAGE','63596',jdecode('cats2'),jdecode(''),'/63596.html','false',[],''],
	['PAGE','63617',jdecode('cats3'),jdecode(''),'/63617.html','false',[],''],
	['PAGE','63638',jdecode('cats4'),jdecode(''),'/63638.html','false',[],''],
	['PAGE','63659',jdecode('cats5'),jdecode(''),'/63659.html','false',[],''],
	['PAGE','63680',jdecode('other2'),jdecode(''),'/63680.html','false',[],''],
	['PAGE','63701',jdecode('other3'),jdecode(''),'/63701.html','false',[],'']];
var siteelementCount=34;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='3F7177';
theSitetree.keyvisualId='2416';
theSitetree.keyvisualName='digital.jpg';
theSitetree.fontsetId='394';
theSitetree.graphicsetId='447';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3F7177';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Amaze',
				paletteFamily: 	'3F7177',
				keyvisualId: 	'2416',
				keyvisualName: 	'digital.jpg',
				fontsetId: 		'394',
				graphicsetId: 	'447',
				contentColor: 	'FFFFFF',
				contentBGColor: '3F7177',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3F7177',
				b_color: 		'2F5358',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20091029-234321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20091106-001919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6385',
internalId:  '',
customField: '20091029-233500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6343',
internalId:  '',
customField: '20091027-044122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20081202-010116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6406',
internalId:  '',
customField: '20091102-020219'
};
webappMappings['4001']=webappMappings['4001-13897201']={
webappId:    '4001',
documentId:  '6406',
internalId:  '13897201',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9401',
internalId:  '',
customField: '20081202-012112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9422',
internalId:  '',
customField: '20081202-012314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9443',
internalId:  '',
customField: '20081202-012427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6322',
internalId:  '',
customField: '20091027-044037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6364',
internalId:  '',
customField: '20090112-225721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20081202-014014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20090610-231933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45612',
internalId:  '',
customField: '20090608-040206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45633',
internalId:  '',
customField: '20090608-040256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20812',
internalId:  '',
customField: '20081206-035356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33112',
internalId:  '',
customField: '20090605-042157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27312',
internalId:  '',
customField: '20091104-005037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45654',
internalId:  '',
customField: '20090608-040348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51312',
internalId:  '',
customField: '20091029-235908'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56312',
internalId:  '',
customField: '20091028-030740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56512',
internalId:  '',
customField: '20091106-005526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56533',
internalId:  '',
customField: '20091028-031047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61012',
internalId:  '',
customField: '20091026-235302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63512',
internalId:  '',
customField: '20091028-031236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63533',
internalId:  '',
customField: '20091028-031408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63554',
internalId:  '',
customField: '20091028-031531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63575',
internalId:  '',
customField: '20091028-031751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63596',
internalId:  '',
customField: '20091028-032002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63617',
internalId:  '',
customField: '20091028-032136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63638',
internalId:  '',
customField: '20091028-032256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63659',
internalId:  '',
customField: '20091028-032401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63680',
internalId:  '',
customField: '20091028-032509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63701',
internalId:  '',
customField: '20091028-032559'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INEUEE';
var companyName   = 'Astounding+digital+images';
var htmlTitle	  = 'paradise+for+pets%2Cdigtalimaging%2Cpersonalised+pet+photos%2C+pet+memorial+s%2Cpet+portrait+%2C+no+postage+%2C+e-mailed+back';
var metaKeywords  = 'paradise%2Cheaven%2Cpersonalised%2Cpet%2Cphotos%2Cpet%2Cmemorial%2Cdigital%2Cimaging+%2Cgift%2Ce-mail';
var metaContents  = 'paradise+for+pets+%2C+digital+imaging+%2C+personalised+pet+photos+%2C+pet+memorial+%2Cpet+portrait+%2C+gift+%2C+no+postage+%2C+e-mailed+back';
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();
};
