/* [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','4455',jdecode('Pr%C3%A9sentation'),jdecode(''), jdecode('%2F4455.html'), 'true',[],'',''],
	['PAGE','247612',jdecode('Voeux+2012'),jdecode(''), jdecode('%2F247612.html'), 'false',[],'',''],
	['PAGE','204771',jdecode('Votre+demande'),jdecode(''), jdecode('%2F204771.html'), 'false',[],'',''],
	['PAGE','238912',jdecode('Contact'),jdecode(''), jdecode('%2F238912%2Findex.html'), 'true',[ 
		['PAGE','237112',jdecode('Collaborateurs%2Ftrices'),jdecode(''), jdecode('%2F238912%2F237112.html'), 'true',[],'',''],
		['PAGE','203644',jdecode('Stages+-+%C3%A9tudiant%28e%29s'),jdecode(''), jdecode('%2F238912%2F203644.html'), 'false',[],'','']
	],'',''],
	['PAGE','200047',jdecode('SAV+-+d%C3%A9pannage'),jdecode(''), jdecode('%2F200047.html'), 'true',[],'',''],
	['PAGE','296434',jdecode('Projets+en+cours+2012'),jdecode(''), jdecode('%2F296434.html'), 'false',[],'',''],
	['PAGE','278012',jdecode('OFFRES+D%26%23x27%3BEMPLOI'),jdecode(''), jdecode('%2F278012%2Findex.html'), 'false',[ 
		['PAGE','197973',jdecode('1+installateur'),jdecode(''), jdecode('%2F278012%2F197973.html'), 'true',[],'',''],
		['PAGE','278033',jdecode('1+Ing%C3%A9nieur%28-e%29'),jdecode(''), jdecode('%2F278012%2F278033.html'), 'false',[],'','']
	],'',''],
	['PAGE','214112',jdecode('News'),jdecode(''), jdecode('%2F214112.html'), 'true',[],'',''],
	['PAGE','204640',jdecode('Thermographie'),jdecode(''), jdecode('%2F204640.html'), 'true',[],'',''],
	['PAGE','273212',jdecode('Changer+votre+chaudi%C3%A8re'),jdecode(''), jdecode('%2F273212.html'), 'true',[],'',''],
	['PAGE','154880',jdecode('Solaire+Thermique'),jdecode(''), jdecode('%2F154880.html'), 'true',[],'',''],
	['PAGE','155419',jdecode('Photovolta%C3%AFque+'),jdecode(''), jdecode('%2F155419%2Findex.html'), 'true',[ 
		['PAGE','155446',jdecode('Ref+Photovolta%C3%AFque'),jdecode(''), jdecode('%2F155419%2F155446.html'), 'true',[],'','']
	],'',''],
	['PAGE','197201',jdecode('Bois+-+soleil'),jdecode(''), jdecode('%2F197201%2Findex.html'), 'true',[ 
		['PAGE','197311',jdecode('Projets+bois'),jdecode(''), jdecode('%2F197201%2F197311.html'), 'true',[],'',''],
		['PAGE','240512',jdecode('Pellets'),jdecode(''), jdecode('%2F197201%2F240512.html'), 'true',[],'','']
	],'',''],
	['PAGE','205136',jdecode('Pompes+%C3%A0+chaleur'),jdecode(''), jdecode('%2F205136.html'), 'true',[],'',''],
	['PAGE','244612',jdecode('Liens+utiles'),jdecode(''), jdecode('%2F244612.html'), 'true',[],'',''],
	['PAGE','254112',jdecode('Isolation+des+b%C3%A2timents'),jdecode(''), jdecode('%2F254112.html'), 'false',[],'',''],
	['PAGE','245612',jdecode('Minergie'),jdecode(''), jdecode('%2F245612%2Findex.html'), 'false',[ 
		['PAGE','241112',jdecode('Exemple'),jdecode(''), jdecode('%2F245612%2F241112.html'), 'true',[],'',''],
		['PAGE','241312',jdecode('Certificats'),jdecode(''), jdecode('%2F245612%2F241312.html'), 'true',[],'','']
	],'',''],
	['PAGE','206912',jdecode('Maison+100%25+++Eco-E'),jdecode(''), jdecode('%2F206912.html'), 'false',[],'',''],
	['PAGE','186044',jdecode('News'),jdecode(''), jdecode('%2F186044.html'), 'false',[],'',''],
	['PAGE','201306',jdecode('Vente+mat%C3%A9riel'),jdecode(''), jdecode('%2F201306%2Findex.html'), 'false',[ 
		['PAGE','201192',jdecode('Solaire+thermique+'),jdecode(''), jdecode('%2F201306%2F201192.html'), 'true',[],'',''],
		['PAGE','201529',jdecode('Photovolta%C3%AFque+r%C3%A9seau'),jdecode(''), jdecode('%2F201306%2F201529.html'), 'true',[],'',''],
		['PAGE','190744',jdecode('Kits+PV+pour+chalets'),jdecode(''), jdecode('%2F201306%2F190744.html'), 'true',[],'','']
	],'',''],
	['PAGE','257312',jdecode('Occasions'),jdecode(''), jdecode('%2F257312%2Findex.html'), 'false',[ 
		['PAGE','215112',jdecode('Oskar+%2F+Rathiotherm'),jdecode(''), jdecode('%2F257312%2F215112.html'), 'false',[],'','']
	],'',''],
	['PAGE','58380',jdecode('Nos+partenariats'),jdecode(''), jdecode('%2F58380.html'), 'true',[],'',''],
	['PAGE','205595',jdecode('DIAGNO-THERM'),jdecode(''), jdecode('%2F205595.html'), 'false',[],'',''],
	['PAGE','205846',jdecode('Historique+'),jdecode(''), jdecode('%2F205846.html'), 'false',[],'',''],
	['PAGE','58488',jdecode('Infos+et+liens'),jdecode(''), jdecode('%2F58488.html'), 'false',[],'',''],
	['PAGE','272212',jdecode('Pro+du+solaire'),jdecode(''), jdecode('%2F272212.html'), 'true',[],'',''],
	['PAGE','198445',jdecode('Articles+de+presse'),jdecode(''), jdecode('%2F198445.html'), 'true',[],'',''],
	['PAGE','205358',jdecode('R%C3%A9f%C3%A9rences'),jdecode(''), jdecode('%2F205358%2Findex.html'), 'true',[ 
		['PAGE','250412',jdecode('projets+2011'),jdecode(''), jdecode('%2F205358%2F250412.html'), 'true',[],'',''],
		['PAGE','208812',jdecode('thermique+VII'),jdecode(''), jdecode('%2F205358%2F208812.html'), 'true',[],'',''],
		['PAGE','204278',jdecode('Thermique+VI'),jdecode(''), jdecode('%2F205358%2F204278.html'), 'true',[],'',''],
		['PAGE','199168',jdecode('Thermique+V'),jdecode(''), jdecode('%2F205358%2F199168.html'), 'true',[],'',''],
		['PAGE','199517',jdecode('Thermique+IV'),jdecode(''), jdecode('%2F205358%2F199517.html'), 'true',[],'',''],
		['PAGE','178829',jdecode('Thermique+III'),jdecode(''), jdecode('%2F205358%2F178829.html'), 'true',[],'',''],
		['PAGE','142476',jdecode('Thermique+II'),jdecode(''), jdecode('%2F205358%2F142476.html'), 'true',[],'',''],
		['PAGE','103186',jdecode('Thermique+I'),jdecode(''), jdecode('%2F205358%2F103186.html'), 'true',[],'',''],
		['PAGE','261812',jdecode('Journ%C3%A9e+du+soleil+2011'),jdecode(''), jdecode('%2F205358%2F261812.html'), 'true',[],'',''],
		['PAGE','202923',jdecode('Journ%C3%A9es+du+solaire+09'),jdecode(''), jdecode('%2F205358%2F202923.html'), 'true',[],'','']
	],'','']];
var siteelementCount=51;
theSitetree.topTemplateName='Straight';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='1535';
theSitetree.keyvisualName='bauen.jpg';
theSitetree.fontsetId='238';
theSitetree.graphicsetId='303';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var prodDef={
  wl_name: 'hostpoint',
  product: 'WSCSYSSSSLYTC21F'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Straight',
				paletteFamily: 	'660000',
				keyvisualId: 	'1535',
				keyvisualName: 	'bauen.jpg',
				fontsetId: 		'238',
				graphicsetId: 	'303',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'660000',
				b_color: 		'D7D7D7',
				c_color: 		'000000',
				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:  '4455',
internalId:  '',
customField: '20120117-211844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154880',
internalId:  '',
customField: '20101220-170550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199168',
internalId:  '',
customField: '20090813-093455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199517',
internalId:  '',
customField: '20090505-090223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178829',
internalId:  '',
customField: '20090123-165511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197201',
internalId:  '',
customField: '20110807-082742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197311',
internalId:  '',
customField: '20110409-163001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155419',
internalId:  '',
customField: '20111214-221402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155446',
internalId:  '',
customField: '20120109-221901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204278',
internalId:  '',
customField: '20090930-221614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58380',
internalId:  '',
customField: '20111201-211225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58488',
internalId:  '',
customField: '20080922-201116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '203644',
internalId:  '',
customField: '20111023-195823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200047',
internalId:  '',
customField: '20120108-143442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '250412',
internalId:  '',
customField: '20111218-232637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186044',
internalId:  '',
customField: '20100214-205824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201306',
internalId:  '',
customField: '20110320-080625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205358',
internalId:  '',
customField: '20120108-170403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201192',
internalId:  '',
customField: '20110320-081134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201529',
internalId:  '',
customField: '20090311-173627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190744',
internalId:  '',
customField: '20090310-094546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142476',
internalId:  '',
customField: '20080922-222310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103186',
internalId:  '',
customField: '20080922-221904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205136',
internalId:  '',
customField: '20100927-213216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197973',
internalId:  '',
customField: '20111122-161632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198445',
internalId:  '',
customField: '20111119-063434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202923',
internalId:  '',
customField: '20090519-093159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204771',
internalId:  '',
customField: '20120108-170118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '204640',
internalId:  '',
customField: '20120111-155546'
};
webappMappings['7008']=webappMappings['7008-943']={
webappId:    '7008',
documentId:  '204771',
internalId:  '943',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '261812',
internalId:  '',
customField: '20110515-222020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205595',
internalId:  '',
customField: '20100927-213807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205846',
internalId:  '',
customField: '20110216-201843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206912',
internalId:  '',
customField: '20100420-233028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208812',
internalId:  '',
customField: '20110103-063443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237112',
internalId:  '',
customField: '20120109-223342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214112',
internalId:  '',
customField: '20120117-212111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215112',
internalId:  '',
customField: '20100420-064315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238912',
internalId:  '',
customField: '20120109-223012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240512',
internalId:  '',
customField: '20101108-195837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241112',
internalId:  '',
customField: '20101215-204220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241312',
internalId:  '',
customField: '20101111-130519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244612',
internalId:  '',
customField: '20110720-070509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '245612',
internalId:  '',
customField: '20110309-124833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '247612',
internalId:  '',
customField: '20111214-220416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254112',
internalId:  '',
customField: '20110409-164335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '257312',
internalId:  '',
customField: '20111217-073906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272212',
internalId:  '',
customField: '20111009-204308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273212',
internalId:  '',
customField: '20111119-065501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '278012',
internalId:  '',
customField: '20111122-161436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '278033',
internalId:  '',
customField: '20110929-181239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '296434',
internalId:  '',
customField: '20120117-212133'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN3OFL';
var companyName   = 'Sol-Air+Concept+%3A+l%27%C3%A9nergie+verte+chez+soi';
var htmlTitle	  = 'Sol-AIR+Concept+S%C3%A0rl';
var metaKeywords  = 'Solaire+Thermique%2C+Solaire+photovolta%C3%AFque%2C+G%C3%A9nie+industriel%2C+R%C3%A9novations%2C+Mises+%C3%A0+lenqu%C3%AAte+%2F+soumissions+Bureau+d%C3%A9tude.+Nicolas+Erbeau';
var metaContents  = 'Solaire+Thermique%2CSolaire+photovolta%C3%AFque%2CG%C3%A9nie+industriel%2CR%C3%A9novations%2CMises+%C3%A0+lenqu%C3%AAte+%2F+soumissions%2CBureau+d%C3%A9tude%2CNicolas+Erbeau.';
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();
};

