/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','2301',jdecode('Lebenslauf'),jdecode(''),'/2301.html','true',[],'',''],
	['PAGE','9701',jdecode('Positionen'),jdecode(''),'/9701.html','true',[],'',''],
	['PAGE','20201',jdecode('Dossier'),jdecode(''),'/20201/index.html','true',[ 
		['PAGE','20222',jdecode('Mieten+im+Seefeld'),jdecode(''),'/20201/20222.html','true',[],'',''],
		['PAGE','21901',jdecode('Integrationspolitik'),jdecode(''),'/20201/21901.html','true',[],'',''],
		['PAGE','23901',jdecode('Wohnbaudebatte+vom+27.01.10'),jdecode(''),'/20201/23901.html','true',[],'','']
	],'',''],
	['PAGE','3601',jdecode('Meine+Vorst%C3%B6sse'),jdecode(''),'/3601/index.html','true',[ 
		['PAGE','4322',jdecode('Meine+Interpellationen'),jdecode(''),'/3601/4322.html','true',[],'',''],
		['PAGE','4301',jdecode('Meine+Postulate'),jdecode(''),'/3601/4301.html','true',[],'',''],
		['PAGE','12801',jdecode('Meine+Motionen'),jdecode(''),'/3601/12801.html','true',[],'',''],
		['PAGE','18801',jdecode('Meine+schriftlichen+Anfragen'),jdecode(''),'/3601/18801.html','true',[],'','']
	],'',''],
	['PAGE','14401',jdecode('Presse'),jdecode(''),'/14401/index.html','true',[ 
		['PAGE','31201',jdecode('NZZ+04.05.10+D%C3%A4mpfer+f%C3%BCr+Rot-Gr%C3%BCn'),jdecode(''),'/14401/31201.html','true',[],'',''],
		['PAGE','32001',jdecode('TA+04.05.10+R%C3%BCffel+f%C3%BCr+Links'),jdecode(''),'/14401/32001.html','true',[],'',''],
		['PAGE','31501',jdecode('TA+07.04.10+Abstimmungszeitung+geht+in+Druck'),jdecode(''),'/14401/31501.html','true',[],'',''],
		['PAGE','30601',jdecode('TA+31.03.10+Knatsch+Abstimmungstext'),jdecode(''),'/14401/30601.html','true',[],'',''],
		['PAGE','29901',jdecode('NZZ+31.03.10+Machtkampf+Abstimmungstext'),jdecode(''),'/14401/29901.html','true',[],'',''],
		['PAGE','32701',jdecode('TA+13.02.10+D%C3%A4chlikappe'),jdecode(''),'/14401/32701.html','true',[],'',''],
		['PAGE','33101',jdecode('TA+21.01.10+Integrationsbericht'),jdecode(''),'/14401/33101.html','true',[],'',''],
		['PAGE','22801',jdecode('NZZ+15.01.10+Gewerbe-Initiative'),jdecode(''),'/14401/22801.html','true',[],'',''],
		['PAGE','19601',jdecode('TA+13.10.09+Yuppisierung'),jdecode(''),'/14401/19601.html','true',[],'',''],
		['PAGE','14422',jdecode('TA+29.07.09+Kinder%C3%A4rzte'),jdecode(''),'/14401/14422.html','true',[],'',''],
		['PAGE','14443',jdecode('TA+18.06.09+Seerestaurant'),jdecode(''),'/14401/14443.html','true',[],'','']
	],'',''],
	['PAGE','10401',jdecode('Wahlkampfversprechen'),jdecode(''),'/10401.html','true',[],'',''],
	['PAGE','25701',jdecode('Unterst%C3%BCtzung+und+Komitee'),jdecode(''),'/25701.html','true',[],'',''],
	['PAGE','5201',jdecode('Kontakt'),jdecode(''),'/5201/index.html','true',[ 
		['PAGE','5601',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/5201/5601.html','false',[],'','']
	],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
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: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20100506-133319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100506-143704'
};
webappMappings['7008']=webappMappings['7008-324']={
webappId:    '7008',
documentId:  '5201',
internalId:  '324',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20100131-205415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20091013-151521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4322',
internalId:  '',
customField: '20100516-215102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4301',
internalId:  '',
customField: '20100506-143551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20090802-213539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20100518-152353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14422',
internalId:  '',
customField: '20090802-164301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14443',
internalId:  '',
customField: '20090802-163958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20100131-205348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20090527-140908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20100131-205256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20100506-143939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20100117-140825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20100131-205128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20222',
internalId:  '',
customField: '20100131-150029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20100127-181328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20100117-141200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23901',
internalId:  '',
customField: '20100131-145748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25701',
internalId:  '',
customField: '20100301-104246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29901',
internalId:  '',
customField: '20100507-134341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20100507-135050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20100509-212926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31501',
internalId:  '',
customField: '20100509-214052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20100511-130854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32701',
internalId:  '',
customField: '20100518-150909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20100518-153108'
};
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHOPT0INV00N';
var companyName   = 'Severin+Pfl%C3%BCger%2C+Gemeinderat+Z%C3%BCrich';
var htmlTitle	  = 'Severin+Pfl%C3%BCger+%28FDP%29';
var metaKeywords  = 'Politik++Freisinnig+Demokratische+Partei++FDP++Schweizerische+Volkspartei++SVP++Sozialistische+Partei++SP++Gr%C3%BCne++GP++Christliche+Volkspartei++CVP++Evangelische+Volkspartei++EVP++Alternative+Liste++AL++Partei+f%C3%BCr+Z%C3%BCrich++PFZ++Liberalismus++Marktwirtschaft++freie+Marktwirtschaft++Freiheit++Gleichheit++Br%C3%BCderlichkeit++Sozialismus++Konservative++Links++Rechts++Kreuzplatz++Stadelhofen++Hottingen++Fluntern++Hirslanden++Witikon++Riesbach++Seefeld++Z%C3%BCrich++Stadt+Z%C3%BCrich++Kanton+Z%C3%BCrich++Schweiz++Bund++Eidgenossenschaft++Gemeinderat++Stadtrat++Kantonsrat++Regierungsrat++Nationalrat++St%C3%A4nderat++Bundesrat++Demokratie++Wahlen++Gemeinderatswahlen++Kantonsratswahlen++Nationalratswahlen++St%C3%A4nderatswahlen++Regierungsratswahlen++Bundesratswahlen++Severin+Pfl%C3%BCger++Kultur++Bildung++Sport++Steuern++Finanzen++Hochbau++Tiefbau++Gesundheit++Umwelt++Verkehr++Gewerbe++Pr%C3%A4sident++Industrielle+Betriebe++ewz++vbz++erdgas++Polizei++Martin+Abele++Ruth+Ackermann++Christian+Aeschbach++Bruno+Amacker++Andreas+Ammann++Peter+Anderegg++Walter+Angst+++Ruth+Anhorn++Lukas+Apafi+++Marianne+Aubert++Hans+Bachmann++Jacqueline+Badran++Roger+Bartholdi++Erika+B%C3%A4rtschi++Erika+B%C3%A4rtschi+Hafner++Myriam+Barzotto++Michael+Baumer++Bermaier+Guido++Arthur+Bernet++Jris+Bischof++Monika+Bloch++Monika+Bloch+S%C3%BCss++Patrick+Bl%C3%B6chlinger++Simone+Brander++Ueli+Brasser++Schweizerdemokraten++SD++Martin+B%C3%BCrlimann++Marl%C3%A8ne+Butz++Pierino+Cerliani++Ilde+Cheridito++Ernst+Danner++Salvatore+Di+Consilio++Marianne+Dubs++Marianne+Dubs+Fr%C3%BCh++Urs+Egger++Annamarie+Elmer++Annamarie+Elmer+L%C3%BCck++Monika+Erfigen++Dominique+Feuillet++Peider+Filli++Dorothea+Frei++Bruno+Garzotto++Marian+Garzotto++Balthasar+Gl%C3%A4ttli++Davy+Graf++Christoph+Gut++Susi+Gut++Susanne+Gut++Theo+Hauri++Uschi+Heinrich++Theresa+Hensch++Teresa+Hensch-Stadelmann++Marc+Hohl++Christiana+Hug++Kurt+H%C3%BCssy++Bernhard+im+Oberdorf++Heinz+Jacobi++Alexander+J%C3%A4ger++Fiametta+Jahreiss++Fiametta+Jahreiss-Montagnani++Bernhard+J%C3%BCsi++Simon+K%C3%A4lin++Hans+J%C3%B6rg+K%C3%A4ppeli++Hansj%C3%B6rg+K%C3%A4ppeli++Hans-J%C3%B6rg+K%C3%A4ppeli++Andrew+Katumba++Gabriele+Kisker++Markuss+Knauss++Peter+K%C3%BCng++Hanspeter+Kunz++Hans+Peter+Kunz++Hans-Peter+Kunz++Albert+Leiser++Daniel+Leupi++Roger+Liebi++Martin+M%C3%A4chler++Elisabeth+Makwana++Elisabeth+Makwana-Boss++Joe+Manser++Joe+A.+Manser++Mario+Mariani++Thomas+Marthaler++Min+Li+Marti++Daniel+Meier++Karin+Meier++Karin+Meier-Bohrer++Myrtha+Meuli++Ueli+Nagel++Claudia+Nielsen++Andrea+N%C3%BCssli++Andrea+N%C3%BCssli-Danuser++Andr%C3%A9+Odermatt++Kyriakos+Papageorgiou++Severin+Pfl%C3%BCger++Bernhard+Piller++Esther+Ponti++Esther+Ponti-Weder++Matthias+Probst++Richard+Rabelbauer++Claudia+Rabelbauer-Pfiffner++A.+Recher++Alecs+Recher++Urs+Rechsteiner++Daniel+Regli++Beatrice+Reimann++Mark+Richli++Monjek+Rosenheim++Karin+Rykart++Karin+Rykart+Sutter++Marcel+Savarioud++Niklaus+Scherr++Hedy+Schlatter++Michael+Schmid++Urs+Schmid++Robert+Sch%C3%B6nb%C3%A4chler++Thomas+Schwendener++Markus+Schwyn++Christine+Seidler++Bruno+Sidler++Claudia+Simon++Marianne+Spieler++Marianne+Spieler+Frauenfelder++Peter+St%C3%A4hli++Peter+St%C3%A4hli-Barth++Heinz+Steger++Heinz+F.+Steger++Christine+Stokar++Christine+Stokar+Gasser++Esther+Straub++Jean-Daniel+Strub++Jean+Daniel+Strub++Jeandaniel+Strub++Rolf+Stucker++Roger+Tognella++Lucia+Tozzi++Christian+Traber++Mauro+Tuena++Ursula+Uttinger++Jean-Claude+Virchaux++Hans+Urs+von+Matt++Hans-Urs+von+Matt++Hansurs+von+Matt++Alexander+Weber++Urs+Weiss++Christian+Wenger++Mirella+Wepf++Josef+Widler++Bruno+Wohler++Katrin+W%C3%BCthrich++Rebekka+Wyler++Thomas+Wyss++Marcel+Zgraggen++Marcel+Zgraggen+Yuppisierung+Tagesanzeiger+Wohnungsnot+Ledermann+Seeburg+Weinegg';
var metaContents  = 'Politik++Freisinnig+Demokratische+Partei++FDP++Schweizerische+Volkspartei++SVP++Sozialistische+Partei++SP++Gr%C3%BCne++GP++Christliche+Volkspartei++CVP++Evangelische+Volkspartei++EVP++Alternative+Liste++AL++Partei+f%C3%BCr+Z%C3%BCrich++PFZ++Liberalismus++Marktwirtschaft++freie+Marktwirtschaft++Freiheit++Gleichheit++Br%C3%BCderlichkeit++Sozialismus++Konservative++Links++Rechts++Kreuzplatz++Stadelhofen++Hottingen++Fluntern++Hirslanden++Witikon++Riesbach++Seefeld++Z%C3%BCrich++Stadt+Z%C3%BCrich++Kanton+Z%C3%BCrich++Schweiz++Bund++Eidgenossenschaft++Gemeinderat++Stadtrat++Kantonsrat++Regierungsrat++Nationalrat++St%C3%A4nderat++Bundesrat++Demokratie++Wahlen++Gemeinderatswahlen++Kantonsratswahlen++Nationalratswahlen++St%C3%A4nderatswahlen++Regierungsratswahlen++Bundesratswahlen++Severin+Pfl%C3%BCger++Kultur++Bildung++Sport++Steuern++Finanzen++Hochbau++Tiefbau++Gesundheit++Umwelt++Verkehr++Gewerbe++Pr%C3%A4sident++Industrielle+Betriebe++ewz++vbz++erdgas++Polizei++Schweizer+Demokraten++SD+Yuppisierung+Tagesanzeiger+Wohnungsnot+Ledermann+Seeburg+Weinegg';
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();
};

