/* [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','4717',jdecode('Home'),jdecode(''),'/4717.html','true',[],'',''],
	['PAGE','4774',jdecode('Services%2FDienstleistungen'),jdecode(''),'/4774.html','true',[],'',''],
	['PAGE','4828',jdecode('C.G.%2FAGB'),jdecode(''),'/4828.html','true',[],'',''],
	['PAGE','4801',jdecode('Devis+%2FKostenvoranschlag'),jdecode(''),'/4801/index.html','true',[ 
		['PAGE','5828',jdecode('Commande+%28Folgeseite%29'),jdecode(''),'/4801/5828.html','false',[],'','']
	],'',''],
	['PAGE','4855',jdecode('R%C3%A9f%C3%A9rences%2FReferenzen'),jdecode(''),'/4855.html','true',[],'',''],
	['PAGE','5253',jdecode('Livre+d%26%23x27%3BOr%2FGoldenes+Buch'),jdecode(''),'/5253/index.html','true',[ 
		['PAGE','5254',jdecode('Entr%C3%A9es'),jdecode(''),'/5253/5254.html','false',[],'','']
	],'',''],
	['PAGE','9006',jdecode('Links'),jdecode(''),'/9006.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Toronto';
theSitetree.paletteFamily='3358C6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16882';
theSitetree.graphicsetId='12318';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3358C6';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Toronto',
				paletteFamily: 	'3358C6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16882',
				graphicsetId: 	'12318',
				contentColor: 	'FFFFFF',
				contentBGColor: '3358C6',
				a_color: 		'3358C6',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4717',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20080417-220256'
};
webappMappings['1002']=webappMappings['1002-5253ABW0X0INXZG4']={
webappId:    '1002',
documentId:  '5253',
internalId:  '5253ABW0X0INXZG4',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-7911']={
webappId:    '7008',
documentId:  '4801',
internalId:  '7911',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4828',
internalId:  '',
customField: '20090122-205652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4774',
internalId:  '',
customField: '20091101-233409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4717',
internalId:  '',
customField: '20091101-232137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5828',
internalId:  '',
customField: '20050323-145403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4855',
internalId:  '',
customField: '20091101-233328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5253',
internalId:  '',
customField: '20091101-233350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5254',
internalId:  '',
customField: '20050323-141458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9006',
internalId:  '',
customField: '20091102-004314'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXZG4';
var companyName   = 'Echoicus';
var htmlTitle	  = 'Echoicus';
var metaKeywords  = 'English%2C+German%2C+French%2C+Italienisch%2C+Russich%2C+Spanish%2CDeutsch%2CFranz%C3%B6sisch%2CEnglisch%2CSpanisch%2Callemand%2Cfran%C3%A7ais%2Canglais%2Cespagnol%2C+italien%2C+russe%2C+traduction%2C%C3%9Cbersetzung%2Crelecture%2C%C3%9Cberarbeiten%2Cjuridique%2C+Recht%2C+Marketing%2C+Mode%2C+plan+marketing%2C+Marketing+Plan%2C+bail+%C3%A0+loyer%2C+Mietvertrag%2C+Abwasserentsorgung+-+Allgemeine+Bedingungen+-+Arbeitsvertr%C3%A4ge+-+Ausbildung+%E2%80%93+Beschwerdeverfahren+-+Bewachung++%C3%BCberwachung+-+Coaching+-+EDV+%E2%80%93+Entkeimungsseparator+-+Heiz-k%C3%BChleinrichtungen+-+Industrieumz%C3%BCge+-+K%C3%A4sereimilch+-+Kataloge+-+Kl%C3%A4rseparator+-+Kl%C3%A4ranlage+-+Kranarbeiten+%E2%80%93+Liegenschaften+-++Marketing+-+Melksteuerger%C3%A4te+-+Mietvertr%C3%A4ge+-+Milchentrahmung+-+Milchentkeimung+-+Mobiliar+-+Mode+-+Molkekonzentrierungsanlage+-+%C3%96ffentlichkeitswesen+-+Personalanstellung+-+Raum%C3%A4sthetik+-+Rechtswissenschaft+-+Recycling+-+Sicherheitsbereiche+-+Strassenbauprodukte+-+Strassentransporte+%E2%80%93+Streitf%C3%A4lle+-+Stromkreiseinrichtungen+-+Telekommunikation+-+Tourismus+-+Trainerhandb%C3%BCcher+-+Umwelt+-+Unterbekleidung+-+Unterw%C3%A4sche+-+Verb%C3%A4nde+-+Verdichtungsanlage+-+Verfahren+Umkehrosmose+-+Verpackungsdesign+-+Verpackungsl%C3%B6sungen+-+Versicherungsanalyse+-+Werbung%2C+analyse+dassurances+%E2%80%93+appareils+de+traie+-+associations+%E2%80%93+baux+%C3%A0+loyer+%E2%80%93+biens+fonciers+%E2%80%93+catalogues+-+coaching+-+conditions+g%C3%A9n%C3%A9rales+%E2%80%93+contrats+de+travail+%E2%80%93+d%C3%A9germinateur+-+d%C3%A9germination+-+d%C3%A9m%C3%A9nagements+industriels+%E2%80%93+documents+grand+public+%E2%80%93+droit+%E2%80%93+%C3%A9cr%C3%A9mage+du+lait+-+emballages+Design+%E2%80%93+environnement+%E2%80%93+espace+esth%C3%A9tique+formation+%E2%80%93+immobilier+-+informatique+%E2%80%93+installation+de+colmatage+%E2%80%93+installation+de+concentr%C3%A9+de+petit+lait+%E2%80%93+installations+calorifiques+et+frigorifiques+%E2%80%93+installations+de+circuits+%C3%A9lectriques+-+levage+%28de+grues%29+%E2%80%93+lingerie+f%C3%A9minine+-+lait+de+fromagerie+-+litiges+%E2%80%93+manuels+de+formation+commerciale+-+marketing+-+mobilier+%E2%80%93+mode+%E2%80%93+processus+dosmose+invers%C3%A9e+%E2%80%93+proc%C3%A9dure+de+recours+-+produits+bitumineux+%E2%80%93+publicit%C3%A9+-+recrutement+de+personnel+%E2%80%93+recyclage+%E2%80%93+s%C3%A9curit%C3%A9+-+s%C3%A9parateur+d%C3%A9puration+%E2%80%93+station+d%C3%A9puration+-+solutions+demballage+%E2%80%93+sous-v%C3%AAtements++-+surveillance++contr%C3%B4le+%E2%80%93+t%C3%A9l%C3%A9communication+%E2%80%93+tourisme+-+traitement+des+eaux+us%C3%A9es+%E2%80%93+transports+routiers++++++';
var metaContents  = 'English%2C+German%2C+French%2C+Spanish%2C+Italienisch%2C+Translation+-+Traduction+-+%C3%9Cbersetzung';
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();
};
