/* [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','70412',jdecode(''),jdecode(''), jdecode('%2F70412.html'), 'true',[],'',''],
	['PAGE','2101',jdecode('Home'),jdecode(''), jdecode('%2F2101.html'), 'true',[],'',''],
	['PAGE','51412',jdecode('Aktuelles'),jdecode(''), jdecode('%2F51412.html'), 'true',[],'',''],
	['PAGE','2701',jdecode('Floyd'),jdecode(''), jdecode('%2F2701%2Findex.html'), 'true',[ 
		['PAGE','70512',jdecode('Sport'),jdecode(''), jdecode('%2F2701%2F70512.html'), 'true',[],'',''],
		['PAGE','36563',jdecode('Lieblingsbilder'),jdecode(''), jdecode('%2F2701%2F36563.html'), 'true',[],'',''],
		['PAGE','2743',jdecode('Pedigree%2FShowergebnisse'),jdecode(''), jdecode('%2F2701%2F2743.html'), 'true',[],'','']
	],'',''],
	['PAGE','68512',jdecode('+Hunde+als+Therapie'),jdecode(''), jdecode('%2F68512.html'), 'true',[],'',''],
	['PAGE','2722',jdecode('Jim'),jdecode(''), jdecode('%2F2722%2Findex.html'), 'true',[ 
		['PAGE','3901',jdecode('Pedigree%2FShowergebnisse'),jdecode(''), jdecode('%2F2722%2F3901.html'), 'true',[],'',''],
		['PAGE','62812',jdecode('Sport+%2F+Lieblingsbilder'),jdecode(''), jdecode('%2F2722%2F62812.html'), 'true',[],'','']
	],'',''],
	['PAGE','28512',jdecode('Unsere+Fotos'),jdecode(''), jdecode('%2F28512.html'), 'true',[],'',''],
	['PAGE','2785',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F2785.html'), 'true',[],'',''],
	['PAGE','36626',jdecode('Kontakt'),jdecode(''), jdecode('%2F36626.html'), 'true',[],'',''],
	['PAGE','2827',jdecode('Links'),jdecode(''), jdecode('%2F2827.html'), 'true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Game';
theSitetree.paletteFamily='22421C';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32042';
theSitetree.graphicsetId='13867';
theSitetree.contentColor='cb9240';
theSitetree.contentBGColor='22421C';
var localeDef={
  language: 'de',
  country: 'DE'
};
var prodDef={
  wl_name: 'alfahosting',
  product: 'WSCSYSSSSLY0XNQ8'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Game',
				paletteFamily: 	'22421C',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32042',
				graphicsetId: 	'13867',
				contentColor: 	'cb9240',
				contentBGColor: '22421C',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20110120-104310'
};
webappMappings['7002']=webappMappings['7002-3965']={
webappId:    '7002',
documentId:  '2785',
internalId:  '3965',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2743',
internalId:  '',
customField: '20101110-165124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2701',
internalId:  '',
customField: '20110217-175201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2722',
internalId:  '',
customField: '20110217-175627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28512',
internalId:  '',
customField: '20110210-192657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2785',
internalId:  '',
customField: '20100823-135349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20110131-152029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2827',
internalId:  '',
customField: '20101112-153142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36563',
internalId:  '',
customField: '20120204-115519'
};
webappMappings['7060']=webappMappings['7060-3de6636021895a95f481244e923f7756']={
webappId:    '7060',
documentId:  '28512',
internalId:  '3de6636021895a95f481244e923f7756',
customField: 'language:de;country:DE;'
};
webappMappings['7008']=webappMappings['7008-5685']={
webappId:    '7008',
documentId:  '36626',
internalId:  '5685',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68512',
internalId:  '',
customField: '20120204-115100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36626',
internalId:  '',
customField: '20110210-181559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62812',
internalId:  '',
customField: '20110211-054939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51412',
internalId:  '',
customField: '20120204-113020'
};
var webAppHostname = 'cgi-wsc.alfahosting.de:80';
var canonHostname = 'wsc.alfahosting.de';
var accountId     = 'AAHS10IN2R0V';
var companyName   = '+++++++++++++++++Border-Brothers+from+Borders+Paradise';
var htmlTitle	  = 'Border+Collie-Brothers+from+Borders+Paradise';
var metaKeywords  = 'Border+Collie%2C+Justification+of+me+from+Borders+Paradise%2C+White+Ice+Man+from+Borders+Paradise%2C+Deckr%C3%BCden%2C+studdogs%2C+Tullacrest+Ice+Man%2C+Trucharm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%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0ABordercollie+Brothers+from+Borders+Paradise%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0Aschwarz%2Fwei%C3%9Fer+R%C3%BCde%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AFloyd%26Jim';
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();
};

