/* [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','1346',jdecode('Home'),jdecode(''),'/1346.html','true',[],'',''],
	['PAGE','2601',jdecode('Beschreibung%3A+Abbruch'),jdecode(''),'/2601.html','true',[],'',''],
	['PAGE','3601',jdecode('Unsere+Leistungen'),jdecode(''),'/3601.html','true',[],'',''],
	['PAGE','15201',jdecode('Handabbr%C3%BCche'),jdecode(''),'/15201.html','true',[],'',''],
	['PAGE','4601',jdecode('einfache+Abbrucharbeiten+ZH+%2B+AG'),jdecode(''),'/4601.html','true',[],'',''],
	['PAGE','5101',jdecode('R%C3%BCckbauarbeiten+in+ZH+%2B+AG'),jdecode(''),'/5101.html','true',[],'',''],
	['PAGE','7401',jdecode('Ladenr%C3%BCckbau+in+ZH+%2B+AG'),jdecode(''),'/7401.html','true',[],'',''],
	['PAGE','14601',jdecode('Gesch%C3%A4ftsr%C3%A4umungen%2C+Firmenr%C3%A4umungen'),jdecode(''),'/14601.html','true',[],'',''],
	['PAGE','5701',jdecode('Entkernungen+in+ZH+%2B+AG'),jdecode(''),'/5701.html','true',[],'',''],
	['PAGE','12101',jdecode('Demontage+und+Industrier%C3%A4umung'),jdecode(''),'/12101.html','true',[],'',''],
	['PAGE','7001',jdecode('Entsorgungen%2C+Entr%C3%BCmpelungen'),jdecode(''),'/7001.html','true',[],'',''],
	['PAGE','7601',jdecode('Muldenservice+in+ZH+%2B+AG'),jdecode(''),'/7601.html','true',[],'',''],
	['PAGE','15501',jdecode('Sperrm%C3%BCllentsorgung+in+ZH+%2B+AG'),jdecode(''),'/15501.html','true',[],'',''],
	['PAGE','5801',jdecode('Dekontamination+in+ZH+%2B+AG'),jdecode(''),'/5801.html','true',[],'',''],
	['PAGE','10701',jdecode('Asbestsanierung+in+ZH+%2B+AG'),jdecode(''),'/10701.html','true',[],'',''],
	['PAGE','6001',jdecode('Wasserschadensanierung+in+ZH+%2B+AG'),jdecode(''),'/6001.html','true',[],'',''],
	['PAGE','6022',jdecode('Brandschadensanierung+in+ZH+%2B+AG'),jdecode(''),'/6022.html','true',[],'',''],
	['PAGE','7201',jdecode('Ber%C3%A4umung+und+Baureinigung'),jdecode(''),'/7201.html','true',[],'',''],
	['PAGE','8001',jdecode('Wohnungsaufl%C3%B6sungen+in+ZH+%2B+AG'),jdecode(''),'/8001.html','true',[],'',''],
	['PAGE','8022',jdecode('Hausr%C3%A4umungen+in+ZH+%2B+AG'),jdecode(''),'/8022.html','true',[],'',''],
	['PAGE','8301',jdecode('Entr%C3%BCmpelungsservice+in+ZH+%2B+AG'),jdecode(''),'/8301.html','true',[],'',''],
	['PAGE','9701',jdecode('Abriss+der+Einrichtungen'),jdecode(''),'/9701.html','true',[],'',''],
	['PAGE','9501',jdecode('Abriss+der+alten+K%C3%BCche+'),jdecode(''),'/9501.html','true',[],'',''],
	['PAGE','8901',jdecode('Teppichentfernung+in+ZH+%2B+AG'),jdecode(''),'/8901.html','true',[],'',''],
	['PAGE','9101',jdecode('Tapetenentfernung+in+ZH+%2B+AG'),jdecode(''),'/9101.html','true',[],'',''],
	['PAGE','9122',jdecode('Entfernung+von+Bodenbel%C3%A4gen+'),jdecode(''),'/9122.html','true',[],'',''],
	['PAGE','33101',jdecode('Fliesen+entfernen'),jdecode(''),'/33101.html','true',[],'',''],
	['PAGE','6101',jdecode('Arbeitssicherheit'),jdecode(''),'/6101.html','true',[],'',''],
	['PAGE','46201',jdecode('Abdeckungen+%2F+Staubschutz'),jdecode(''),'/46201.html','true',[],'',''],
	['PAGE','34901',jdecode('Unsere+weitere+Webseiten'),jdecode(''),'/34901.html','true',[],'',''],
	['PAGE','1441',jdecode('So+kontaktieren+Sie+uns'),jdecode(''),'/1441.html','true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Pastel';
theSitetree.paletteFamily='D3F9AA';
theSitetree.keyvisualId='11250';
theSitetree.keyvisualName='kv_11250.jpg';
theSitetree.fontsetId='32128';
theSitetree.graphicsetId='13921';
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: 	'D3F9AA',
				keyvisualId: 	'11250',
				keyvisualName: 	'kv_11250.jpg',
				fontsetId: 		'32128',
				graphicsetId: 	'13921',
				contentColor: 	'403f3f',
				contentBGColor: 'FFFFFF',
				a_color: 		'D3F9AA',
				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:  '6101',
internalId:  '',
customField: '20100716-081042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20100716-072221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20100716-072349'
};
webappMappings['7008']=webappMappings['7008-5283']={
webappId:    '7008',
documentId:  '1441',
internalId:  '5283',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1346',
internalId:  '',
customField: '20100716-072104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6022',
internalId:  '',
customField: '20100716-074356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100716-073543'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1346',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20091217-192738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1441',
internalId:  '',
customField: '20100716-081406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20100716-073718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7001',
internalId:  '',
customField: '20100716-073037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20100716-074459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20100716-072507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20100716-073128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20100716-072841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20100716-075400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20100716-074539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8022',
internalId:  '',
customField: '20100716-074627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20100716-074757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20100716-075120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20100716-075223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9122',
internalId:  '',
customField: '20100716-075306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20100716-072429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20100716-075021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20100716-074938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20100716-073633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20100716-072943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20100716-072544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20100716-072302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20100716-073500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34901',
internalId:  '',
customField: '20100731-074622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46201',
internalId:  '',
customField: '20100716-081128'
};
var canonHostname = 'wsc02.webland.ch';
var accountId     = 'AWB010IN25AI';
var companyName   = 'www.Abriss-Abbruch-Entkernung-Rueckbau-in-Zuerich-und-Aargau.ch+++++++++++++++++++++++++++++atax.suisse%40gmail.com';
var htmlTitle	  = 'Abriss%2C+Abbruch%2C+Entkernung%2C+R%C3%BCckbau%2C++R%C3%A4umung+in+ZH%2C+ZG%2C+TG%2C+AG%2C+SG%2C+SH%2C+SZ%2C+BE%2C+BL%2C+BS%2C+LU%2C+SO';
var metaKeywords  = 'Abriss+Abrissarbeiten+Abbruch+Abbrucharbeiten+Entkernung+Entkernungen+R%C3%BCckbau+Rueckbau+Ladenr%C3%BCckbau+B%C3%BCror%C3%BCckbau+Gesch%C3%A4ftsr%C3%BCckbau++R%C3%BCckbauarbeiten+Ladenr%C3%BCckbau+Entr%C3%BCmpelungen+R%C3%A4umungen+Entsorgungen+Renovationen+Teppichentfernung+Teppich+herausreissen+wegreissen++entsorgen+entr%C3%BCmpeln+r%C3%A4umen+Tapetenentfernung+K%C3%BCchenabbau+Parkettentfernung+Entfernung+von+Bodenbel%C3%A4gen+Umbau+umbauen+renovieren+Geb%C3%A4uderenovation+Ladenumbau+Ladenr%C3%BCckbau+renovieren+ZH+ZG+TG+AG+SG++SH+SZ+BL+BS+BE+SO+Z%C3%BCrich+Aargau+Aarau+Brugg+Baden+Lenzburg+Wohlen+Wilen+Freienbach+Affoltern+Adliswil+Urdorf+Spreitenbach+D%C3%A4ttwil++Regensdorf+Dielsdorf+B%C3%BClach+Andelfingen+Schaffhausen+Neuhausen+Bachenb%C3%BClach+Winterthur+Effretikon+Hinwil+Wetzikon+Uster+Pf%C3%A4ffikon+Rapperswil+Meilen+K%C3%BCsnacht+Zllokon+Zumikon+Zollikerberg+Oerlikon+Seebach+Opfikon+Glattbrugg+R%C3%BCmlang+Niederhasli+Oberglatt+D%C3%BCbendorf+Wallisellen+Br%C3%BCttisellen+Witikon+Wipkingen+Seefeld+Enge+Wollishofe+Kilchberg+Horgen+Thalwil+Richterswil+Oberrieden+R%C3%BCschlikon+Forch+Aesch+Maur+Schwerzenbach+Volketswil+Basel+Basel-Stadt+Baselland+Basellandschaft+Solothurn+Bern+freiburg+Thun+Luzern+Zug+Baar+Cham+St.+Gallen+Wil+Wattwil+Koblenz+Thurgau+Frauenfeld+Schwyz+Glarus+Graub%C3%BCnden+R%C3%A4umung++Entr%C3%BCmpelung+Entsorgung+Recycling+Mulde+Muldenservice+Minimulde+Kellerr%C3%A4umung+Garagenr%C3%A4umung+BigBag-Mulde+Baureinigung+Baugrobreinigung+Bauschutt+entfernen+ZH+ZG+TG+AG+SG+SH+SZ+BS+BL+GR+GL+AI+AR+LU+SO+BE+Z%C3%BCrich+Aargau+Aarau+Winterthur+Pf%C3%A4ffikon+Solothurn+Basel+baselland+Basel-Landschaft+Basel-Stadt+Bern+Luzern+Schwyz+Glarus+Graub%C3%BCnden+Zug+St.Gallen+Schaffhausen+Thurgau+Cham+Baar+Lenzburg+Brugg+Baden+Spreitenbach';
var metaContents  = 'Deutschschweiz%3A+Abriss%2C+Abbruch%2C+Entkernung%2C+R%C3%BCckbau%2C+R%C3%A4umung%2C+Wohnungsaufl%C3%B6sung%2C+Teppichentfernung+Tapetenentfernung%2C+Fliesenentfernung++in+Kantonen+ZH%2C+ZG%2C+TG%2C+AG%2C+SG%2C+SH%2C+SZ%2C+BL%2C+BS%2C+BE%2C+SO%2C++Z%C3%BCrich+Aargau+Aarau+Winterthur+Pf%C3%A4ffikon+Solothurn+Basel+baselland+Basel-Landschaft+Basel-Stadt+Bern+Luzern+Schwyz+Glarus+Graub%C3%BCnden+Zug+St.Gallen+Schaffhausen+Thurgau+Cham+Baar+Lenzburg+Brugg+Baden+Spreitenbach';
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();
};
