/* [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','1410',jdecode('Home'),jdecode(''),'/1410.html','true',[],'',''],
	['PAGE','20501',jdecode('Move+out+cleaning'),jdecode(''),'/20501.html','true',[],'',''],
	['PAGE','6601',jdecode('Wohnungsreinigung+mit+Abgabe'),jdecode(''),'/6601.html','true',[],'',''],
	['PAGE','7001',jdecode('Ihre+Vorteile'),jdecode(''),'/7001.html','true',[],'',''],
	['PAGE','7401',jdecode('Preise+mit+Garantie'),jdecode(''),'/7401.html','true',[],'',''],
	['PAGE','13001',jdecode('ATAX+Putzfrauenservice+in+ZH+%2B+AG'),jdecode(''),'/13001.html','true',[],'',''],
	['PAGE','15701',jdecode('B%C3%BCroreinigung+in+ZH+%2B+AG'),jdecode(''),'/15701.html','true',[],'',''],
	['PAGE','16701',jdecode('Reinigungstipps'),jdecode(''),'/16701.html','true',[],'',''],
	['PAGE','27301',jdecode('Umweltgerechte+Reinigungsmittel'),jdecode(''),'/27301.html','true',[],'',''],
	['PAGE','23901',jdecode('Unsere+ArbeitsQualit%C3%A4t'),jdecode(''),'/23901.html','true',[],'',''],
	['PAGE','17401',jdecode('Unsere+Einsatztgebiete+nach+Postleitzahlen'),jdecode(''),'/17401.html','true',[],'',''],
	['PAGE','14201',jdecode('Unsere+weitere+Webseiten'),jdecode(''),'/14201.html','true',[],'',''],
	['PAGE','1505',jdecode('So+kontaktieren+Sie+uns'),jdecode(''),'/1505.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Pastel';
theSitetree.paletteFamily='DFBBFE';
theSitetree.keyvisualId='11250';
theSitetree.keyvisualName='kv_11250.jpg';
theSitetree.fontsetId='32128';
theSitetree.graphicsetId='13922';
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: 	'DFBBFE',
				keyvisualId: 	'11250',
				keyvisualName: 	'kv_11250.jpg',
				fontsetId: 		'32128',
				graphicsetId: 	'13922',
				contentColor: 	'403f3f',
				contentBGColor: 'FFFFFF',
				a_color: 		'DFBBFE',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20100715-130635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20100715-130854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13001',
internalId:  '',
customField: '20100715-131121'
};
webappMappings['7008']=webappMappings['7008-1581']={
webappId:    '7008',
documentId:  '1505',
internalId:  '1581',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1410',
internalId:  '',
customField: '20100715-125943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20101111-213219'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1410',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20100715-130319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20100715-130500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1505',
internalId:  '',
customField: '20100715-132328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20100715-131438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20090511-182038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20100405-220634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20100715-131840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27301',
internalId:  '',
customField: '20100715-131708'
};
var canonHostname = 'wsc01.webland.ch';
var accountId     = 'AWB010INXVG2';
var companyName   = 'www.Umzugsreinigung-Zuerich.ch+++++++++++++++++++++++++++044+%2F+810+32+20++++++++++++++++++++++++++++++++atax.suisse%40gmail.com';
var htmlTitle	  = 'Z%C3%BCrich+%2B+Aargau%3A+g%C3%BCnstige%2C+umweltfreundliche+Umzugsreinigung+Wohnungsreinigung+mit+Abgabegarantie+Uebergabegarantie+';
var metaKeywords  = 'Wohnung+Reinigung+Wohnungsreinigung+Umzugsreinigung+mit+Abgabegarantie+Uebergabegarantie+R%C3%BCckgabegarantie+Putzfirma+Putzinstitut+Putzunternehmen+Reinigungsfirma+Reinigungsunternehmen+Reinigungsinstitut+Putzfrau+Putzfrauenservice+Umzug+Umzugsfirma+Zuegelfirma++in+Z%C3%BCrich++Gockhausen+Fluntern++Hottingen++Hirslanden+Witikon++Binz+Maur+Fall%C3%A4nden++Forch++Zumikon+Zollikon+Zollikerberg++K%C3%BCsnacht+Egg++Esslingen++St%C3%A4fa++Meilen++Obermeilen+Dorfmeilen+Zollikon+Seefeld+Z%C3%BCrich+City+Rathausquartier+Lindenhofquartier+Z%C3%BCrich+Stadt++Enge++Leimbach++Adliswil%2C+Wollishofen+Wiedikon++Freisenberg++Goldbrunnen++Treimli+Oberstrass+Unterstrass+M%C3%BChlebachquartier+H%C3%B6ngg++Wipkingen+Oerlikon+Affoltern+Regensdorf++Glattbrugg+++Opfikon+R%C3%BCmlang++B%C3%BClach++Bachenb%C3%BClach+Schwamendingen+Gewerbeschulquartier++Escher-Wyss++Kilchberg+R%C3%BCschlikon++Oberrieden++Thalwil+Waedenswil+Horgen+Richterswil++Albisrieden+Dietikon++Walliselen++Uster+Wetzikon++Hinwil+Winterthur++Bremgarten+Urdorf++Widen+AG%2C+Umzugsreinigung+mit+Abgabegarantie+in+Wohlen+Baden+AG+Brugg++Lenzburg++Spreitenbach++Wuerenlos+Pfaeffikon++Lachen+SZ++Baech+Wilen++Freienbach+SZ';
var metaContents  = 'ATAX+bietet+kosteng%C3%BCnstige+und+umweltfreundliche+Umzugsreinigung%2C+Wohnungsreinigung+mit+Abgabegarantie%2C+Uebergabegarantie+im+Grossraum+Z%C3%BCrich+und+im+Kanton+Aargau.+Uebergabegarantie+R%C3%BCckgabegarantie+Putzfirma+Putzinstitut+Putzunternehmen+Reinigungsfirma+Reinigungsunternehmen+Reinigungsinstitut+Putzfrau+Putzfrauenservice';
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();
};

