/* [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','1246',jdecode('Hier+startet+unsere+Unterst%C3%BCtzung'),jdecode(''),'/1246.html','true',[],'',''],
	['PAGE','3322',jdecode('Zusammenarbeit+mit+Sozialbeh%C3%B6rden'),jdecode(''),'/3322.html','true',[],'',''],
	['PAGE','41812',jdecode('Ihre+Vorteile+durch+ATAX'),jdecode(''),'/41812.html','true',[],'',''],
	['PAGE','3301',jdecode('Unsere+Klientengruppen'),jdecode(''),'/3301/index.html','true',[ 
		['PAGE','6301',jdecode('Hilfe+f%C3%BCr+Verwahrlosen+und+Messie'),jdecode(''),'/3301/6301.html','true',[],'',''],
		['PAGE','6322',jdecode('MessieCoaching'),jdecode(''),'/3301/6322.html','true',[],'',''],
		['PAGE','6343',jdecode('Hilfe+f%C3%BCr+Alkohols%C3%BCchtige'),jdecode(''),'/3301/6343.html','true',[],'',''],
		['PAGE','6364',jdecode('Hilfe+f%C3%BCr+Drogens%C3%BCchtige'),jdecode(''),'/3301/6364.html','true',[],'',''],
		['PAGE','6385',jdecode('Hilfe+f%C3%BCr++Betagten'),jdecode(''),'/3301/6385.html','true',[],'',''],
		['PAGE','6406',jdecode('Hilfe+f%C3%BCr+Alzheimerkranken'),jdecode(''),'/3301/6406.html','true',[],'',''],
		['PAGE','7301',jdecode('Hilfe+f%C3%BCr+MS-Kranken'),jdecode(''),'/3301/7301.html','true',[],'',''],
		['PAGE','6427',jdecode('Allgemeine+Seniorenhilfe'),jdecode(''),'/3301/6427.html','true',[],'',''],
		['PAGE','7501',jdecode('Hilfe+f%C3%BCr+Behinderten'),jdecode(''),'/3301/7501.html','true',[],'',''],
		['PAGE','8001',jdecode('Hilfe+f%C3%BCr+Sozialbez%C3%BCger'),jdecode(''),'/3301/8001.html','true',[],'',''],
		['PAGE','28512',jdecode('Vormundschaft%2C+Beistand%2C+FFE'),jdecode(''),'/3301/28512.html','true',[],'','']
	],'',''],
	['PAGE','3343',jdecode('Unsere+Leistungen'),jdecode(''),'/3343/index.html','true',[ 
		['PAGE','4901',jdecode('ATAX+Umzugsservice'),jdecode(''),'/3343/4901.html','true',[],'',''],
		['PAGE','4922',jdecode('ATAX+Reinigungsservice'),jdecode(''),'/3343/4922.html','true',[],'',''],
		['PAGE','4943',jdecode('ATAX+Putzfrauenservice'),jdecode(''),'/3343/4943.html','true',[],'',''],
		['PAGE','4964',jdecode('ATAX+Seniorenservice'),jdecode(''),'/3343/4964.html','true',[],'',''],
		['PAGE','4985',jdecode('ATAX+Entr%C3%BCmpelungsservice'),jdecode(''),'/3343/4985.html','true',[],'',''],
		['PAGE','5006',jdecode('ATAX+Muldenservice'),jdecode(''),'/3343/5006.html','true',[],'',''],
		['PAGE','5027',jdecode('ATAX+R%C3%A4umungsservice'),jdecode(''),'/3343/5027.html','true',[],'',''],
		['PAGE','5048',jdecode('ATAX+Einlagerungsservice'),jdecode(''),'/3343/5048.html','true',[],'',''],
		['PAGE','5069',jdecode('ATAX+M%C3%B6belaufbauservice'),jdecode(''),'/3343/5069.html','true',[],'','']
	],'',''],
	['PAGE','4601',jdecode('N%C3%BCtzliche+Links'),jdecode(''),'/4601.html','true',[],'',''],
	['PAGE','4622',jdecode('ATAX%3A+unsere+weitere+Webseiten'),jdecode(''),'/4622.html','true',[],'',''],
	['PAGE','11301',jdecode('ATAX%3A+unsere+Einsatzgebiete'),jdecode(''),'/11301.html','true',[],'',''],
	['PAGE','11501',jdecode('ATAX%3A+unser+Qualit%C3%A4tsmanagement'),jdecode(''),'/11501.html','true',[],'',''],
	['PAGE','1341',jdecode('So+kontaktieren+Sie+uns'),jdecode(''),'/1341.html','true',[],'','']];
var siteelementCount=30;
theSitetree.topTemplateName='Pastel';
theSitetree.paletteFamily='FFE6C3';
theSitetree.keyvisualId='11258';
theSitetree.keyvisualName='kv_11258.jpg';
theSitetree.fontsetId='32128';
theSitetree.graphicsetId='13923';
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: 	'FFE6C3',
				keyvisualId: 	'11258',
				keyvisualName: 	'kv_11258.jpg',
				fontsetId: 		'32128',
				graphicsetId: 	'13923',
				contentColor: 	'403f3f',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFE6C3',
				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:  '4601',
internalId:  '',
customField: '20100712-173916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3322',
internalId:  '',
customField: '20100712-163320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3343',
internalId:  '',
customField: '20100712-171407'
};
webappMappings['7008']=webappMappings['7008-1383']={
webappId:    '7008',
documentId:  '1341',
internalId:  '1383',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1246',
internalId:  '',
customField: '20100712-162949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20100712-171647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4622',
internalId:  '',
customField: '20101107-211353'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1246',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20100712-164031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1341',
internalId:  '',
customField: '20100712-174700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4922',
internalId:  '',
customField: '20100712-171748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4943',
internalId:  '',
customField: '20100712-171911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4964',
internalId:  '',
customField: '20100712-172912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4985',
internalId:  '',
customField: '20100712-173122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5006',
internalId:  '',
customField: '20100712-173237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5027',
internalId:  '',
customField: '20100712-173404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5048',
internalId:  '',
customField: '20100712-173535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5069',
internalId:  '',
customField: '20100712-173804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20100712-164243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6322',
internalId:  '',
customField: '20100712-164518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6343',
internalId:  '',
customField: '20100712-164713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6364',
internalId:  '',
customField: '20100712-164916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6385',
internalId:  '',
customField: '20100712-165144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6406',
internalId:  '',
customField: '20100712-165338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6427',
internalId:  '',
customField: '20100712-165701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20100712-165514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20100712-165853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20100712-170042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20100405-192854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20100712-174223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28512',
internalId:  '',
customField: '20100712-170228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41812',
internalId:  '',
customField: '20100712-163759'
};
var canonHostname = 'wsc02.webland.ch';
var accountId     = 'AWB010INX3EM';
var companyName   = 'www.private-soziale-Dienste.ch+++++++++++++++++++++++++044+%2F+810+32+20++++++++++++++++++++++++++++++++++++atax.suisse%40gmail.com';
var htmlTitle	  = 'ATAX+private+soziale+Dienste%3A+vertrauer+Helfer+der+Sozialstellen%2C+der+Sozial%C3%A4mter%2C+der+Hilfsorganisationen.+Zwangsr%C3%A4umung+R%C3%A4umung+verwahrlosung+Messie-Wohnung+Entr%C3%BCmpelung+Sozialumzug+Wohnungsreinigung+Seniorenhilfe';
var metaKeywords  = 'Soziale+Hilfe+ZH+Sozialhilfe+ZH+Soziale+Dienste+Sozialservice+Sozialstelle+ZH+Sozialstellen+ZH+Sozialamt+ZH+Sozial%C3%A4mter+ZH+Sozialinstitution+ZH+Sozialinfo+ZH+Sozialbeh%C3%B6rde+ZH+Sozialdienst+ZH+Sozialestelle+der+Gemeinde%2C+Vormundschaft+ZH+Vormundschaftsbeh%C3%B6rde+ZH+private+Unterst%C3%BCtzung+bei+Suchtproblemen+ZH%2C+private+Unterst%C3%BCtzung+bei+Alkoholproblemen+ZH%2C+private+Unterst%C3%BCtzung+f%C3%BCr+Invaliden+ZH+private+Unterst%C3%BCtzung+f%C3%BCr+Senioren+ZH+private+Unterst%C3%BCtzung+f%C3%BCr+Betagten+ZH+private+Betruung+f%C3%BCr+Senioren+ZH%2C+Betreunng+f%C3%BCr+Betagten+ZH+private+Hilfe+f%C3%BCr+Verwahrlosen+ZH%2C+private+Hilfe+f%C3%BCr+Messies+ZH+Sozialamt+ZH+AG++SG+TG+Sozialamt+ZG+Sozialamt+SZ+Sozialamt+SH+Sozialinfo+SKOS+Caritas+Rotes+Kreuz+HEKS+R%C3%A4umung+Zwangsr%C3%A4umung+Kellerr%C3%A4umung+Messie-R%C3%A4umung%2C+Haushaltaufl%C3%B6sung+Wohnungsr%C3%A4umung+Sozialumzug+Seniorenhilfe+Verwahrlosung+Sozialservice+Kloten+B%C3%BClach+D%C3%BCbendorf+Limmattal+Hinwil+Wetzikon++Pf%C3%A4ffikon+Meilen+Wallisellen+H%C3%B6ngg+Altstetten+Dietikon+Urdorf+Schlieren+R%C3%BCmlang+Opfikon+Seebach+Oberstrass+Unterstrass+Witikon+Wipkingen+Oerlikon+Affoltern+Horgen+meilen+W%C3%A4denswil+Enge+Adliswil+Wollishofen+Wiedikon+Goldbrunnen+Triemli+Hardturm+Wohnungsreinigung+Umzug+Umzuege';
var metaContents  = 'ATAX+ist+vertrauter+professioneller+Helfer+der+Sozialenstellen%2C+der+Sozial%C3%A4mter%2C+der+Hilfsorganisationen%2C+der+Hilfsverb%C3%A4nde.+ATAX+betreibt+einen+privaten+sozialen+Dienst%2C+Wir+helfen+mit+Ihnen+zusammen+den+Menschen+am+Rande+der+Gesellschaft+oder+s%C3%A4mtliche+Schwierigkeiten+f%C3%BCr+Selbstverwaltung+haben.+R%C3%A4umung+Zwangsr%C3%A4umung+Kellerr%C3%A4umung+Messie-R%C3%A4umung%2C+Haushaltaufl%C3%B6sung+Wohnungsr%C3%A4umung+Sozialumzug+Seniorenhilfe+Verwahrlosung+Wohnungsreinigung+Umzug+Umzuege';
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();
};

