/* [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','1284',jdecode('+Im+Auftrag+der+Hausverwaltungen'),jdecode(''),'/1284.html','true',[],'',''],
	['PAGE','8039',jdecode('Wer+ist+Hausverwaltung'),jdecode(''),'/8039.html','true',[],'',''],
	['PAGE','17839',jdecode('Ferienvertretungen%2C+Absenzenvertretungen'),jdecode(''),'/17839.html','true',[],'',''],
	['PAGE','12539',jdecode('Hausmeisterdienst+f%C3%BCr+Tiefgarage'),jdecode(''),'/12539.html','true',[],'',''],
	['PAGE','12839',jdecode('Pflege+der+Aussenanlagen+in+ZH+und+AG'),jdecode(''),'/12839.html','true',[],'',''],
	['PAGE','27839',jdecode('Arealreinigung%2C+Grossfl%C3%A4chenreinigung'),jdecode(''),'/27839.html','true',[],'',''],
	['PAGE','13239',jdecode('Reinigung+der+Gehwege+in+ZH+und+AG'),jdecode(''),'/13239.html','true',[],'',''],
	['PAGE','13639',jdecode('Treppenhausreinigung+in+ZH+und+AG'),jdecode(''),'/13639.html','true',[],'',''],
	['PAGE','17539',jdecode('Teppichreinigung+in+ZH+und+AG'),jdecode(''),'/17539.html','true',[],'',''],
	['PAGE','15639',jdecode('Baureinigung+nach+Umbau%2C+Weiterbau'),jdecode(''),'/15639.html','true',[],'',''],
	['PAGE','16039',jdecode('Solarreinigung%2C+Photovoltaik-Reinigung'),jdecode(''),'/16039.html','true',[],'',''],
	['PAGE','16339',jdecode('Fassadenreinigung+in+ZH+und+AG'),jdecode(''),'/16339.html','true',[],'',''],
	['PAGE','17039',jdecode('Glasreinigung%2C+Fensterreinigung+in+ZH+und+AG'),jdecode(''),'/17039.html','true',[],'',''],
	['PAGE','28539',jdecode('Hochdruckreinigung+in+ZH+und+AG'),jdecode(''),'/28539.html','true',[],'',''],
	['PAGE','15239',jdecode('Unsere+St%C3%A4rken'),jdecode(''),'/15239.html','true',[],'',''],
	['PAGE','14339',jdecode('Unsere+weitere+Webseiten'),jdecode(''),'/14339.html','true',[],'',''],
	['PAGE','23239',jdecode('Unsere+Einsatzgebiete+CH'),jdecode(''),'/23239.html','true',[],'',''],
	['PAGE','1358',jdecode('G%C3%A4stebuch'),jdecode(''),'/1358.html','true',[],'',''],
	['PAGE','1379',jdecode('So+kontaktieren+Sie+uns'),jdecode(''),'/1379.html','true',[],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Pastel';
theSitetree.paletteFamily='C9DDFF';
theSitetree.keyvisualId='11250';
theSitetree.keyvisualName='kv_11250.jpg';
theSitetree.fontsetId='32128';
theSitetree.graphicsetId='13924';
theSitetree.contentColor='403f3f';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Pastel',
				paletteFamily: 	'C9DDFF',
				keyvisualId: 	'11250',
				keyvisualName: 	'kv_11250.jpg',
				fontsetId: 		'32128',
				graphicsetId: 	'13924',
				contentColor: 	'403f3f',
				contentBGColor: 'FFFFFF',
				a_color: 		'C9DDFF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7002']=webappMappings['7002-3790']={
webappId:    '7002',
documentId:  '1358',
internalId:  '3790',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-4298']={
webappId:    '7008',
documentId:  '1379',
internalId:  '4298',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1284',
internalId:  '',
customField: '20100712-003341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1358',
internalId:  '',
customField: '20091115-120717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1379',
internalId:  '',
customField: '20100807-105521'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1284',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8039',
internalId:  '',
customField: '20100807-094204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12539',
internalId:  '',
customField: '20100807-094408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12839',
internalId:  '',
customField: '20100807-094450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13239',
internalId:  '',
customField: '20100807-094707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13639',
internalId:  '',
customField: '20100807-094756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14339',
internalId:  '',
customField: '20100712-004651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15239',
internalId:  '',
customField: '20100807-105138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15639',
internalId:  '',
customField: '20100807-094946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16039',
internalId:  '',
customField: '20100807-095047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16339',
internalId:  '',
customField: '20100807-103325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17039',
internalId:  '',
customField: '20100807-105034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17539',
internalId:  '',
customField: '20100807-094836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17839',
internalId:  '',
customField: '20100807-094242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23239',
internalId:  '',
customField: '20100405-171259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27839',
internalId:  '',
customField: '20100807-094552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28539',
internalId:  '',
customField: '20100807-105108'
};
var canonHostname = 'wsc02.webland.ch';
var accountId     = 'AWB010IN292T';
var companyName   = 'www.im-Auftrag-der-Hausverwaltungen.ch+++++++++++++++++044+%2F+810+32+20++++++++++++++++++++++++++++atax.suisse%40gmail.com';
var htmlTitle	  = 'Im+Auftrag+der+Hausverwaltungen%3A+Messie-R%C3%A4umung.Tatortreinigung%2C+Zwangsr%C3%A4umung%2C+Mietnomaden-Reinigung%2C+Uebergabereinigung%2C+Entr%C3%BCmpelung';
var metaKeywords  = 'Hausverwaltung+Vermieter+Hauseigent%C3%BCmer+Wohnungseigent%C3%BCmer++Wohnungsverwaltung+Immobilienverwaltung+Wohnungsuebergabe+Wohnungsr%C3%BCckgabe+Uebergabe+Messie-Wohnung+Zwangsr%C3%A4umung+Tatortreinigung+Leichenfundortreinigung+Unfallortreinigung+Immobilienverwaltung++Mietnomade+R%C3%A4umung+Zwangsr%C3%A4umung++Entr%C3%BCmpelung++Entsorgung+Hausr%C3%A4umung++Wohnungsr%C3%A4umung++Wohnungsaufl%C3%B6sung++Schweiz++CH++Z%C3%BCrich+Thurgau++Schaffhausen++Aargau+Schwyz++Zug++Luzern++Basel+Baselland+Basel-Landschaft++St.+Gallen++Solothurn++Winterthur++Baden+AG++Spreitenbach+Pfaaffikon++Hausmeister++Hausmeisterservice+Hausmeisterdienste++Wohnungsreinigung+Umzugsreinigung+mit+Abgabegarantie+Uebergabegarantie+ZH+TG+ZG+SG+AG+LU+SO+BL+BS+GR+GL+SH+SZ+BE+Reinigung+Reinigungsfirma+Reinigungsinstitut+Reinigungsunternehmen+Unterhaltsreinigung+Geb%C3%A4udereinigung';
var metaContents  = 'ATAX+bietet+im+Auftrag+der+Hausverwaltungen+und+im+Auftrag+der+Hauseigent%C3%BCmer+und+Vermieter+professionelle+Dienste+wie%3A++Messie-R%C3%A4umung+Tatortreinigung+Unfallortreinigung+Leichenfundortreinigung+Messie+Wohnung+Reinigung+Zwangsr%C3%A4umung%2C+Mietnomaden+Reinigung+Uebergabereinigung+Entr%C3%BCmpelung+Entsorgung+Entr%C3%BCmpelung+Entsorgung+Hausr%C3%A4umung+Wohnungsr%C3%A4umung+Wohnungsaufl%C3%B6sung+Seniorenumzug+Umzugsreinigung+Wohnungsreinigung+mit+Abgabegarantie+Seniorenumzug+in+Kantonen+Z%C3%BCrich+Aargau+Thurgau+Zug+Solothurn+St.+Gallen+Schwyz+Basel+Baselland+Bern+Schaffhausen+Luzern+ZH+ZG+TG+SG+AG+BL+BS+LU+BE+SZ+SH+GL+GR+SO';
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();
};
