/* [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 theSitetree=[ 
	['PAGE','4801',jdecode('Home'),jdecode(''),'/4801.html','true',[],''],
	['PAGE','34401',jdecode('Formulare+%26+Brosch%C3%BCren'),jdecode(''),'/34401.html','true',[],''],
	['PAGE','4852',jdecode('Leistungen'),jdecode(''),'/4852/index.html','false',[ 
		['PAGE','4873',jdecode('Sachversicherungen'),jdecode(''),'/4852/4873.html','true',[],''],
		['PAGE','4894',jdecode('Kranken-+und+Unfallversicherung'),jdecode(''),'/4852/4894.html','true',[],'']
	],''],
	['PAGE','4915',jdecode('Offerte+bestellen'),jdecode(''),'/4915/index.html','true',[ 
		['PAGE','9601',jdecode('Krankenversicherung'),jdecode(''),'/4915/9601.html','true',[],''],
		['PAGE','31201',jdecode('Motorfahrzeug'),jdecode(''),'/4915/31201.html','true',[],''],
		['PAGE','36801',jdecode('Hausrat-+%26+Privathaftpflicht'),jdecode(''),'/4915/36801.html','true',[],'']
	],''],
	['PAGE','31101',jdecode('Unsere+Partner'),jdecode(''),'/31101.html','true',[],''],
	['PAGE','4936',jdecode('Aktuelle+Tipps'),jdecode(''),'/4936.html','false',[],''],
	['PAGE','33101',jdecode('Forum'),jdecode(''),'/33101.html','true',[],''],
	['PAGE','4957',jdecode('Kontakt'),jdecode(''),'/4957.html','true',[],''],
	['PAGE','4978',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/4978.html','true',[],''],
	['PAGE','40101',jdecode('Kundenbereich'),jdecode(''),'/40101/index.html','true',[ 
		['PAGE','40122',jdecode('Versicherungsvergleiche'),jdecode(''),'/40101/40122.html','true',[],''],
		['PAGE','40143',jdecode('Download'),jdecode(''),'/40101/40143.html','false',[],''],
		['PAGE','40401',jdecode('Vergleich+Krankenkasse'),jdecode(''),'/40101/40401.html','false',[],'']
	],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Sedan';
theSitetree.paletteFamily='556698';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10497';
theSitetree.graphicsetId='11106';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				name: 			'Sedan',
				paletteFamily: 	'556698',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10497',
				graphicsetId: 	'11106',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'556698',
				e_color: 		'556698',
				f_color: 		'556698',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20091007-061220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4915',
internalId:  '',
customField: '20090907-121305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4957',
internalId:  '',
customField: '20090930-224303'
};
webappMappings['7008']=webappMappings['7008-6745']={
webappId:    '7008',
documentId:  '4957',
internalId:  '6745',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9601',
internalId:  '',
customField: '20091007-060120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4852',
internalId:  '',
customField: '20090824-020557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4978',
internalId:  '',
customField: '20090805-215337'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4801',
internalId:  '1006',
customField: '1006'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '4801',
internalId:  'search',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-6760']={
webappId:    '7008',
documentId:  '9601',
internalId:  '6760',
customField: 'language:de;country:CH;'
};
webappMappings['1501']=webappMappings['1501-29866529']={
webappId:    '1501',
documentId:  '4801',
internalId:  '29866529',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4873',
internalId:  '',
customField: '20090727-224305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4894',
internalId:  '',
customField: '20090824-022323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4936',
internalId:  '',
customField: '20090727-224305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31101',
internalId:  '',
customField: '20091006-163429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20090730-141950'
};
webappMappings['7008']=webappMappings['7008-6761']={
webappId:    '7008',
documentId:  '31201',
internalId:  '6761',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20090820-215609'
};
webappMappings['7008']=webappMappings['7008-6992']={
webappId:    '7008',
documentId:  '36801',
internalId:  '6992',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34401',
internalId:  '',
customField: '20090812-124703'
};
webappMappings['7008']=webappMappings['7008-6917']={
webappId:    '7008',
documentId:  '34401',
internalId:  '6917',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20090801-143155'
};
webappMappings['1003']=webappMappings['1003-abw330ine8du122d5efa943']={
webappId:    '1003',
documentId:  '33101',
internalId:  'abw330ine8du122d5efa943',
customField: 'de:CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40101',
internalId:  '',
customField: '20091007-070824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40122',
internalId:  '',
customField: '20091007-071300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40401',
internalId:  '',
customField: '20091007-073508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40143',
internalId:  '',
customField: '20091007-070410'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW330INE8DU';
var companyName   = 'versicherungstipps.ch+-+Ihr+starker+Partner+f%C3%BCr+Versicherungsfragen';
var htmlTitle	  = 'versicherungstipps.ch+-+Ihr+Partner+Versicherungsfragen';
var metaKeywords  = 'Krankenkasse%2C+Vergleich%2C+Pr%C3%A4mie%2C+Vorgeburtliche+Anmeldung%2C+Versicherung%2C+Autoversicherung%2C+Haftpflicht%2C+Vollkasko%2C+Insassenunfall%2C+Krankenversicherung%2C+Pr%C3%A4mie%2C+2010%2C+KVG%2C+Geburt%2C+Baby%2C+Zahnversicherung%2C+Versicherungsvergleich%2C+Wildhaus%2C+Alt+St.+Johann%2C+UVG%2C+Unfall%2C+Krankentaggeld%2C+BVG%2C+Unfalltaggeld';
var metaContents  = 'kostenlose+und+neutrale+Versicherungsberatung%21+Nutzen+Sie+die+Gelegenheit+und+bestellen+Sie+eine+unverbindliche+Vergleichsofferte%21';
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();
};
