/* [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','4598',jdecode('Home+%2F+Fahrzeuge'),jdecode(''),'/4598.html','true',[],'',''],
	['PAGE','4655',jdecode('Ueber+mich'),jdecode(''),'/4655.html','true',[],'',''],
	['PAGE','39040',jdecode('Taxipreise'),jdecode(''),'/39040.html','true',[],'',''],
	['PAGE','4682',jdecode('Limousinenservice'),jdecode(''),'/4682.html','true',[],'',''],
	['PAGE','4736',jdecode('Stretchlimousinen'),jdecode(''),'/4736/index.html','true',[ 
		['PAGE','39526',jdecode('Stretchlimousinen+%28Folgeseite%29'),jdecode(''),'/4736/39526.html','false',[],'','']
	],'',''],
	['PAGE','25089',jdecode('Ausfl%C3%BCge'),jdecode(''),'/25089/index.html','true',[ 
		['PAGE','25187',jdecode('Mietanh%C3%A4nger+%28Folgeseite%29'),jdecode(''),'/25089/25187.html','false',[],'','']
	],'',''],
	['PAGE','24804',jdecode('WEF+in+Davos'),jdecode(''),'/24804/index.html','true',[ 
		['PAGE','37688',jdecode('WEF+in+Davos+%28Folgeseite%29'),jdecode(''),'/24804/37688.html','false',[],'','']
	],'',''],
	['PAGE','4790',jdecode('Kontakt'),jdecode(''),'/4790/index.html','true',[ 
		['PAGE','5292',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/4790/5292.html','false',[],'','']
	],'','']];
var siteelementCount=12;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='003390';
theSitetree.keyvisualId='1738';
theSitetree.keyvisualName='boerse.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='353';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003390';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'003390',
				keyvisualId: 	'1738',
				keyvisualName: 	'boerse.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'353',
				contentColor: 	'FFFFFF',
				contentBGColor: '003390',
				a_color: 		'003390',
				b_color: 		'000000',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39526',
internalId:  '',
customField: '20070703-214438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25187',
internalId:  '',
customField: '20060203-135816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4736',
internalId:  '',
customField: '20070820-193539'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-8018']={
webappId:    '7008',
documentId:  '24804',
internalId:  '8018',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-8016']={
webappId:    '7008',
documentId:  '25089',
internalId:  '8016',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4655',
internalId:  '',
customField: '20070131-194342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24804',
internalId:  '',
customField: '20091110-151633'
};
webappMappings['7008']=webappMappings['7008-8015']={
webappId:    '7008',
documentId:  '4790',
internalId:  '8015',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39040',
internalId:  '',
customField: '20080509-210338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25089',
internalId:  '',
customField: '20070627-141544'
};
webappMappings['7008']=webappMappings['7008-8017']={
webappId:    '7008',
documentId:  '4736',
internalId:  '8017',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20091110-152331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20091110-154038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37688',
internalId:  '',
customField: '20060905-142238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4790',
internalId:  '',
customField: '20061004-230731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5292',
internalId:  '',
customField: '20030901-231806'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXE8X';
var companyName   = 'LIMOUSINENSERVICE+Christen';
var htmlTitle	  = 'Limousinenservice+Stretchlimousine+Mietchauffeur+Privatchauffeur+Rent+a+Driver+Taxi+Daniel+Christen+Z%C3%BCrich+Airporttransfer+Taxi+Stretchlimousine+Mercedes+S+Lang+Kleinbus+Z%C3%BCrich+Z%C3%BCrichsee+Herrliberg+Bus+Shuttle+Euro+08';
var metaKeywords  = 'WEF%2C+Davos%2C+Privatchauffeur%2C+Mietchauffeur%2C+Chauffeur%2C+Rent+a+Driver%2C+Limousinen-Service%2C+Limousinen%2C+Privatchauffeur%2C+Lastwagen-Chauffeur%2C+Ueberf%C3%BChrungen%2C+Kurierdienst%2C+VIP-Service%2C+Airporttransfer%2C+Transfer+zum+Airport%2C+Airport+Transfer%2C+Chauffeurdienste%2C+Hochzeiten%2C+mieten%2C+miete%2C+Schultransporte%2C+Dauerauftr%C3%A4ge%2C+WEF%2C+Davos%2C+g%C3%BCnstig%2C+Car%2C+Carchauffeur%2C+Chauffeur%2C+Stretch%2C+Stretchlimousine%2C+Taxi%2C+Z%C3%BCrichsee%2C+Z%C3%BCrich%2C+Meilen%2C+Herrliberg%2C+St%C3%A4fa%2C+Erlenbach%2C+Pfannenstiel%2C+g%C3%BCnstig%2C+Lincoln+Town+Car%2C+Ausfl%C3%BCge%2C+Audi+A8+Lang%2C+Audi+A8+L%2C+Audi+A8L%2C+Rundfahrten%2C+Z%C3%BCrichsee-Rundfahrten%2C+Firmenanlasse%2C+Firmenausfl%C3%BCge%2C+Weihnachtsessen%2C+Torkel%2C+B%C3%BCndner+Herrschaft%2C+Graub%C3%BCnden%2C+Wild%2C+Spezialit%C3%A4t%2C+gratis%2C+Z%C3%BCrich%2C+Zurich%2C+Zollikon%2C+Zumikon%2C+VIP%2C+Hochzeit%2C+Polterabend%2C+Geburtstag%2C+2007%2C+Dienst%2C+Dienstleistung%2C+modern%2C+Limousinenservice%2C+Rolls+Royce%2C+Mercedes+S+350+Lang%2C+Mercedes+Viano%2C+Busmiete%2C+miete+Bus%2C+Shuttle+Service+Euro+08+Euro08';
var metaContents  = 'WEF%2C+Davos%2C+Mietchauffeur%2C+Rent+a+Driver%2C+Limousinen-Service%2C+Chauffeurdienste%2C+Limousinen%2C+Privatchauffeur%2C+Transfer%2C+Airport%2C+Z%C3%BCrich%2C+Stretchlimousine%2C+Chauffeur%2C+Miete%2C+Mercedes+S+350+Lang%2C+Taxi%2C+g%C3%BCnstig%2C+Limousine%2C+Stretch%2C+Lincoln+Town+Car%2C+Z%C3%BCrichsee%2C+Schultransporte%2C+Dauerauftr%C3%A4ge%2C+Rundfahrten%2C+Z%C3%BCrichsee-Rundfahrten%2C+Firmenausflug%2C+Weihnachtsessen%2C+Rolls+Royce+RR+';
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();
};
