/* [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','335',jdecode('News'),jdecode(''),'/335.html','true',[],''],
	['PAGE','49986',jdecode('Males'),jdecode(''),'/49986/index.html','true',[ 
		['PAGE','50007',jdecode('Eiko+vom+Landgraf'),jdecode(''),'/49986/50007.html','true',[],'']
	],''],
	['PAGE','50049',jdecode('Females'),jdecode(''),'/50049/index.html','true',[ 
		['PAGE','80',jdecode('Covae+vom+Landgraf'),jdecode(''),'/50049/80.html','true',[],''],
		['PAGE','2063',jdecode('Dunja+vom+Landgraf'),jdecode(''),'/50049/2063.html','true',[],''],
		['PAGE','46186',jdecode('Eisa+vom+Landgraf'),jdecode(''),'/50049/46186.html','true',[],''],
		['PAGE','77108',jdecode('Fenja+vom+Landgraf'),jdecode(''),'/50049/77108.html','true',[],''],
		['PAGE','71',jdecode('Lussi+von+der+Krillenburg'),jdecode(''),'/50049/71.html','true',[],'']
	],''],
	['PAGE','344',jdecode('Puppies'),jdecode(''),'/344.html','true',[],''],
	['PAGE','32',jdecode('Past+Litters'),jdecode(''),'/32/index.html','true',[ 
		['PAGE','40986',jdecode('A+%26+B+Liiters'),jdecode(''),'/32/40986.html','true',[],''],
		['PAGE','41007',jdecode('C-Litter'),jdecode(''),'/32/41007.html','true',[],''],
		['PAGE','41028',jdecode('D-litter'),jdecode(''),'/32/41028.html','true',[],''],
		['PAGE','43986',jdecode('E-Litter'),jdecode(''),'/32/43986.html','true',[],''],
		['PAGE','61786',jdecode('F-Litter'),jdecode(''),'/32/61786.html','true',[],''],
		['PAGE','75808',jdecode('G-Litter'),jdecode(''),'/32/75808.html','true',[],'']
	],''],
	['PAGE','77129',jdecode('Past+Dogs'),jdecode(''),'/77129/index.html','true',[ 
		['PAGE','1152',jdecode('L%26%23x27%3BJersey+Loups+du+Soleil'),jdecode(''),'/77129/1152.html','true',[],''],
		['PAGE','77150',jdecode('Cara%26%23x27%3Bs+Graaf+Quinton'),jdecode(''),'/77129/77150.html','true',[],''],
		['PAGE','62',jdecode('Alida+von+Tal+Des+Goldes'),jdecode(''),'/77129/62.html','true',[],''],
		['PAGE','77171',jdecode('Citto+von+der+Wudritz'),jdecode(''),'/77129/77171.html','true',[],'']
	],''],
	['PAGE','23886',jdecode('About+Landgraf'),jdecode(''),'/23886.html','true',[],''],
	['PAGE','2138',jdecode('Photo+album'),jdecode(''),'/2138.html','true',[],''],
	['PAGE','371',jdecode('Contact+Us'),jdecode(''),'/371.html','true',[],''],
	['PAGE','20591',jdecode('Guestbook'),jdecode(''),'/20591/index.html','true',[ 
		['PAGE','20586',jdecode('Read+Guestbook'),jdecode(''),'/20591/20586.html','false',[],'']
	],''],
	['PAGE','32786',jdecode('Links'),jdecode(''),'/32786.html','true',[],'']];
var siteelementCount=28;
theSitetree.topTemplateName='Livinginamerica';
theSitetree.paletteFamily='83A270';
theSitetree.keyvisualId='6307';
theSitetree.keyvisualName='kv_6307.jpg';
theSitetree.fontsetId='11154';
theSitetree.graphicsetId='11957';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D1E0C7';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Livinginamerica',
				paletteFamily: 	'83A270',
				keyvisualId: 	'6307',
				keyvisualName: 	'kv_6307.jpg',
				fontsetId: 		'11154',
				graphicsetId: 	'11957',
				contentColor: 	'000000',
				contentBGColor: 'D1E0C7',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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['7060']=webappMappings['7060-1ead2df52fe03dd20365c607ace28d88']={
webappId:    '7060',
documentId:  '2138',
internalId:  '1ead2df52fe03dd20365c607ace28d88',
customField: 'language:en;country:US;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '335',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-20591awh010inx3dk']={
webappId:    '1002',
documentId:  '20591',
internalId:  '20591awh010inx3dk',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '335',
internalId:  '',
customField: '20100613-172250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71',
internalId:  '',
customField: '20100205-140036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80',
internalId:  '',
customField: '20100501-170152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2063',
internalId:  '',
customField: '20100205-140225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1152',
internalId:  '',
customField: '20100316-114251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62',
internalId:  '',
customField: '20100205-140133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '344',
internalId:  '',
customField: '20100623-141421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20090822-193127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40986',
internalId:  '',
customField: '20090726-230037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41007',
internalId:  '',
customField: '20100623-141352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41028',
internalId:  '',
customField: '20100623-141254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43986',
internalId:  '',
customField: '20100623-140853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23886',
internalId:  '',
customField: '20100623-135817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2138',
internalId:  '',
customField: '20070827-011438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '371',
internalId:  '',
customField: '20080912-153506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20591',
internalId:  '',
customField: '20080912-153609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20586',
internalId:  '',
customField: '20070514-043303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32786',
internalId:  '',
customField: '20100514-113128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46186',
internalId:  '',
customField: '20090827-215109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49986',
internalId:  '',
customField: '20100623-141920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50007',
internalId:  '',
customField: '20100613-172220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75808',
internalId:  '',
customField: '20100506-010453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50049',
internalId:  '',
customField: '20090128-211145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61786',
internalId:  '',
customField: '20100623-135708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77108',
internalId:  '',
customField: '20100525-164452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77129',
internalId:  '',
customField: '20100331-152550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77150',
internalId:  '',
customField: '20100316-114223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77171',
internalId:  '',
customField: '20100514-113519'
};
var canonHostname = 'cm4all01.west-datacenter.net';
var accountId     = 'AWH010INX3DK';
var companyName   = 'Vom+Landgraf+Working+Dogs';
var htmlTitle	  = 'vom+Landgraf';
var metaKeywords  = 'Dobermann%2C+Doberman+%2C+Doberman+Pincher%2CDobermans+in+Schutzhund+and+French+Ring.Doberman+puppies%2C+Working+line+dodermans+Schutzhund+training+Sacramento+California.+Mooreiche%2C+Bayern%2C+Weyermuhler%2C+Dobermanns+California%2C+';
var metaContents  = 'Train%2C+Title+and+breed+German+line+working+Dobermanns+for+Schutzhund+and+Ring+sport.+Puppies+are+available+occasionaly.+Preformance+and+health+tested+dogs+handled+by+multiple+National+level+competitor.';
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();
};
