/* [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','301',jdecode('Gesch%C3%A4ftsr%C3%A4umungen'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','16401',jdecode('Firmenaufl%C3%B6sungen'),jdecode(''),'/16401.html','true',[],'',''],
	['PAGE','14201',jdecode('Kellerr%C3%A4umungen'),jdecode(''),'/14201.html','true',[],'',''],
	['PAGE','17801',jdecode('Aktenvernichtungen'),jdecode(''),'/17801/index.html','true',[ 
		['PAGE','18201',jdecode('Aktenvernichtung+%28Folgeseite%29'),jdecode(''),'/17801/18201.html','false',[],'','']
	],'',''],
	['PAGE','20401',jdecode('Unsere+Leistungen'),jdecode(''),'/20401.html','true',[],'',''],
	['PAGE','20801',jdecode('Occasion+B%C3%BCrom%C3%B6bel'),jdecode(''),'/20801.html','true',[],'',''],
	['PAGE','21601',jdecode('M%C3%B6belmontage'),jdecode(''),'/21601.html','true',[],'',''],
	['PAGE','352',jdecode('Kontakt'),jdecode(''),'/352/index.html','true',[ 
		['PAGE','16801',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/352/16801.html','false',[],'','']
	],'','']];
var siteelementCount=10;
theSitetree.topTemplateName='Reflectance';
theSitetree.paletteFamily='7BE7A4';
theSitetree.keyvisualId='3602';
theSitetree.keyvisualName='kv_3602.jpg';
theSitetree.fontsetId='10739';
theSitetree.graphicsetId='10856';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Reflectance',
				paletteFamily: 	'7BE7A4',
				keyvisualId: 	'3602',
				keyvisualName: 	'kv_3602.jpg',
				fontsetId: 		'10739',
				graphicsetId: 	'10856',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'7BE7A4',
				e_color: 		'407956',
				f_color: 		'A09D9D',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-1665']={
webappId:    '7008',
documentId:  '352',
internalId:  '1665',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20100322-004224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20100322-004135'
};
webappMappings['7008']=webappMappings['7008-1666']={
webappId:    '7008',
documentId:  '17801',
internalId:  '1666',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20100322-004036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100322-003950'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20081107-001656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20100322-004314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20100322-004406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20100322-004458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20100322-004541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20081107-000312'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN3FH9';
var companyName   = '++++++++++++atax.suisse%40gmail.com';
var htmlTitle	  = 'Firmenr%C3%A4umungen%2C+Firmenaufl%C3%B6sungen%2C+Gesch%C3%A4ftsaufl%C3%B6sungen%2C+Betriebaufl%C3%B6sungen%2C+Werkstatr%C3%A4umungen%2C+Lagerr%C3%A4umungen%2C+B%C3%BCror%C3%A4umungen%2C+Archivr%C3%A4umungen%2C+Aktenvernichtungen%2C+Kellerr%C3%A4umungen%2C+Industrieentsorgungen%2C+Garagenr%C3%A4umungen%2C+Entr%C3%BCmpelungen%3A';
var metaKeywords  = 'Firmenraeumung+ZH%2C+Bueroraeumung+ZH%2C+Betriebsaufl%C3%B6sung+ZH%2C+Betriebsr%C3%A4umung+ZH%2C+Gewerberaeumung+ZH%2C+Firmenaufl%C3%B6sung+ZH%2C+B%C3%BCroaufl%C3%B6sung+ZH%2C+Gewerbeaufl%C3%B6sung+ZH%2C+Aktenvernichtung+ZH%2C+Archivr%C3%A4umung+ZH%2C+Kellerr%C3%A4umung+ZH%2C+Archivaufl%C3%B6sung+ZH%2C+Kelleraufl%C3%B6sung+ZH%2C+Werkstattr%C3%A4umung+ZH%2C+Gesch%C3%A4ftsr%C3%A4umung+ZH%2C+Gesch%C3%A4ftsaufl%C3%B6sung+ZH%2C+Entr%C3%BCmpelung+ZH%2C+Entsorgung+ZH%2C+Industrier%C3%A4umung+ZH%2C+Industrieentsorgung+ZH%2C+Recycling+ZH%2C+Gesch%C3%A4ftsaufgabe+ZH%2C+Firmenaufgabe+ZH%2C+B%C3%BCroentr%C3%BCmpelung+ZH%2C++Schrottentsorgung+ZH%2C++Abfuhrarbeiten+ZH%2C+Estrichr%C3%A4umung+ZH%2C+Speicherr%C3%A4umung+ZH%2C+Objektr%C3%A4umung+ZH%2C+Objektaufl%C3%B6sung+ZH%2C+Garagenr%C3%A4umung+ZH%2C+';
var metaContents  = 'ATAX+bietet+Ihnen+Diskretion%2C+Zuverl%C3%A4ssigkeit%2C+Termingerechtigkeit+und+Professionalit%C3%A4t+bei+Gesch%C3%A4ftsaufl%C3%B6sungen%2C+Betriebaufl%C3%B6sungen%2C+Werkstatr%C3%A4umungen%2C+Lagerr%C3%A4umungen%2C+B%C3%BCror%C3%A4umungen+im+Grossraum+Z%C3%BCrich%3A';
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();
};
