/* [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','13',jdecode('Home'),jdecode(''), jdecode('%2F13.html'), 'true',[],'',''],
	['PAGE','2364',jdecode('Larrisdo-News'),jdecode(''), jdecode('%2F2364.html'), 'true',[],'',''],
	['PAGE','1975',jdecode('LAR%28a%29'),jdecode(''), jdecode('%2F1975%2Findex.html'), 'true',[ 
		['PAGE','92351',jdecode('Kunstobjekt+'),jdecode(''), jdecode('%2F1975%2F92351.html'), 'true',[],'',''],
		['PAGE','160751',jdecode('school%60s+out'),jdecode(''), jdecode('%2F1975%2F160751.html'), 'true',[],'','']
	],'',''],
	['PAGE','1984',jdecode('%28i%29RIS'),jdecode(''), jdecode('%2F1984%2Findex.html'), 'true',[ 
		['PAGE','5046',jdecode('dansk+foedselsdag'),jdecode(''), jdecode('%2F1984%2F5046.html'), 'true',[],'','']
	],'',''],
	['PAGE','52',jdecode('DO%28g+%29'),jdecode(''), jdecode('%2F52%2Findex.html'), 'true',[ 
		['PAGE','2513',jdecode('Barrique'),jdecode(''), jdecode('%2F52%2F2513.html'), 'true',[],'',''],
		['PAGE','102051',jdecode('Kyra+%26+Kim+'),jdecode(''), jdecode('%2F52%2F102051.html'), 'true',[],'',''],
		['PAGE','5386',jdecode('DO%28g%29-pictures'),jdecode(''), jdecode('%2F52%2F5386.html'), 'true',[],'',''],
		['PAGE','368',jdecode('DO%28g%29-tales'),jdecode(''), jdecode('%2F52%2F368.html'), 'true',[],'',''],
		['PAGE','377',jdecode('WM+for+DO%28g%29s'),jdecode(''), jdecode('%2F52%2F377.html'), 'true',[],'','']
	],'',''],
	['PAGE','314',jdecode('Larrisdo%60s+2.+home'),jdecode(''), jdecode('%2F314%2Findex.html'), 'true',[ 
		['PAGE','126551',jdecode('solnedergang'),jdecode(''), jdecode('%2F314%2F126551.html'), 'true',[],'','']
	],'',''],
	['PAGE','323',jdecode('Larrisdo+unterwegs'),jdecode(''), jdecode('%2F323.html'), 'true',[],'',''],
	['PAGE','173351',jdecode('Larrisdo-Monatsbilder11'),jdecode(''), jdecode('%2F173351.html'), 'true',[],'',''],
	['PAGE','148451',jdecode('Larrisdo-Monatsbilder10'),jdecode(''), jdecode('%2F148451.html'), 'true',[],'',''],
	['PAGE','115251',jdecode('Larrisdo-Monatsbilder09'),jdecode(''), jdecode('%2F115251.html'), 'true',[],'',''],
	['PAGE','386',jdecode('Larrisdo%60s+www-friends'),jdecode(''), jdecode('%2F386.html'), 'true',[],'',''],
	['PAGE','84029',jdecode('Unsere+Larrisdo-Banner'),jdecode(''), jdecode('%2F84029.html'), 'true',[],'',''],
	['PAGE','84050',jdecode('Larrisdo-Lieblingslinks'),jdecode(''), jdecode('%2F84050%2Findex.html'), 'true',[ 
		['PAGE','88929',jdecode('more+Lieblingslinks'),jdecode(''), jdecode('%2F84050%2F88929.html'), 'true',[],'','']
	],'',''],
	['PAGE','98251',jdecode('Larrisdo-G%C3%A4stebuch'),jdecode(''), jdecode('%2F98251.html'), 'true',[],'',''],
	['PAGE','104151',jdecode('Larrisdo-birthday-book'),jdecode(''), jdecode('%2F104151.html'), 'true',[],'',''],
	['PAGE','404',jdecode('Impressum'),jdecode(''), jdecode('%2F404.html'), 'true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Blossom';
theSitetree.paletteFamily='AC2E53';
theSitetree.keyvisualId='7122';
theSitetree.keyvisualName='kv_7122.jpg';
theSitetree.fontsetId='16395';
theSitetree.graphicsetId='12128';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E5E2E2';
var localeDef={
  language: 'de',
  country: 'DE'
};
var prodDef={
  wl_name: 'netcologne',
  product: 'WSCSYSSSSLYTCPLT'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blossom',
				paletteFamily: 	'AC2E53',
				keyvisualId: 	'7122',
				keyvisualName: 	'kv_7122.jpg',
				fontsetId: 		'16395',
				graphicsetId: 	'12128',
				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:  '13',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13',
internalId:  '',
customField: '20110404-135600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115251',
internalId:  '',
customField: '20091229-224349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2364',
internalId:  '',
customField: '20111212-235623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1975',
internalId:  '',
customField: '20110205-071622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92351',
internalId:  '',
customField: '20080505-073017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1984',
internalId:  '',
customField: '20110404-140208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5046',
internalId:  '',
customField: '20070417-233431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52',
internalId:  '',
customField: '20091213-120617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2513',
internalId:  '',
customField: '20081012-202800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160751',
internalId:  '',
customField: '20100728-114512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102051',
internalId:  '',
customField: '20081018-132629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5386',
internalId:  '',
customField: '20070510-235142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '368',
internalId:  '',
customField: '20090610-174328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '377',
internalId:  '',
customField: '20061227-234101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '314',
internalId:  '',
customField: '20061213-223130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '323',
internalId:  '',
customField: '20070603-112819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '386',
internalId:  '',
customField: '20070130-182339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173351',
internalId:  '',
customField: '20111212-235414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84029',
internalId:  '',
customField: '20081017-210705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84050',
internalId:  '',
customField: '20100221-084106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88929',
internalId:  '',
customField: '20100306-092939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98251',
internalId:  '',
customField: '20080712-183646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104151',
internalId:  '',
customField: '20081017-205851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '404',
internalId:  '',
customField: '20080302-130048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148451',
internalId:  '',
customField: '20110102-123951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126551',
internalId:  '',
customField: '20090728-180320'
};
var webAppHostname = 'cm4all.netcologne.de:80';
var canonHostname = 'cm4all4.netcologne.de';
var accountId     = 'ANC010IN2NNR';
var companyName   = 'Larrisdo';
var htmlTitle	  = '';
var metaKeywords  = 'Golden+Retriever+%2C+Teenager+%2C+Alleinerziehend+%2C+D%C3%A4nemark+%2C+';
var metaContents  = 'Larrisdo+%2C+die+private+Homepage+einer+Minifamilie+';
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();
};

