/* [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','1509',jdecode('Francais'),jdecode(''),'/1509/index.html','true',[ 
		['PAGE','90867',jdecode('Contact'),jdecode(''),'/1509/90867.html','true',[],''],
		['PAGE','1593',jdecode('Services'),jdecode(''),'/1509/1593.html','true',[],''],
		['PAGE','1647',jdecode('%C3%89oliennes+'),jdecode(''),'/1509/1647.html','true',[],''],
		['PAGE','175367',jdecode('Panneaux+solaires'),jdecode(''),'/1509/175367.html','true',[],''],
		['PAGE','22593',jdecode('Kits+solaires'),jdecode(''),'/1509/22593.html','true',[],''],
		['PAGE','165467',jdecode('Kits+hybrides'),jdecode(''),'/1509/165467.html','true',[],''],
		['PAGE','175388',jdecode('Hydrog%C3%A9n%C3%A9rateurs'),jdecode(''),'/1509/175388.html','true',[],''],
		['PAGE','149067',jdecode('Batteries+solaires'),jdecode(''),'/1509/149067.html','true',[],''],
		['PAGE','175409',jdecode('Instruments+solaires'),jdecode(''),'/1509/175409.html','true',[],''],
		['PAGE','55190',jdecode('Traqueurs+solaires'),jdecode(''),'/1509/55190.html','true',[],''],
		['PAGE','1620',jdecode('Pompage+solaire'),jdecode(''),'/1509/1620.html','true',[],''],
		['PAGE','22620',jdecode('Pompage+%C3%A9olien'),jdecode(''),'/1509/22620.html','true',[],''],
		['PAGE','22065',jdecode('Chauffe+eau+solaire'),jdecode(''),'/1509/22065.html','true',[],''],
		['PAGE','22298',jdecode('Chauffage+solaire'),jdecode(''),'/1509/22298.html','true',[],''],
		['PAGE','22647',jdecode('Chauffe+piscine+'),jdecode(''),'/1509/22647.html','true',[],''],
		['PAGE','22674',jdecode('Climatisation+solaire'),jdecode(''),'/1509/22674.html','true',[],''],
		['PAGE','49547',jdecode('Sites+industriels'),jdecode(''),'/1509/49547.html','true',[],''],
		['PAGE','22701',jdecode('%C3%89fficacit%C3%A9+d%26%23x27%3B%C3%A9nergie'),jdecode(''),'/1509/22701.html','true',[],''],
		['PAGE','151867',jdecode('Installations+clients'),jdecode(''),'/1509/151867.html','true',[],'']
	],''],
	['PAGE','1566',jdecode('English'),jdecode(''),'/1566/index.html','true',[ 
		['PAGE','90894',jdecode('Contact'),jdecode(''),'/1566/90894.html','true',[],''],
		['PAGE','1674',jdecode('Services'),jdecode(''),'/1566/1674.html','true',[],''],
		['PAGE','1701',jdecode('Wind+turbines'),jdecode(''),'/1566/1701.html','true',[],''],
		['PAGE','1728',jdecode('Solar+panels'),jdecode(''),'/1566/1728.html','true',[],''],
		['PAGE','127367',jdecode('Batteries+'),jdecode(''),'/1566/127367.html','true',[],''],
		['PAGE','55217',jdecode('Active+Trackers'),jdecode(''),'/1566/55217.html','true',[],''],
		['PAGE','22325',jdecode('Solar+pumping+'),jdecode(''),'/1566/22325.html','true',[],''],
		['PAGE','22352',jdecode('Wind+pumping+'),jdecode(''),'/1566/22352.html','true',[],''],
		['PAGE','45209',jdecode('Solar+Hot+Water'),jdecode(''),'/1566/45209.html','true',[],''],
		['PAGE','45236',jdecode('Solar+air+heating'),jdecode(''),'/1566/45236.html','true',[],''],
		['PAGE','45263',jdecode('Solar+Pool+heating+'),jdecode(''),'/1566/45263.html','true',[],''],
		['PAGE','50903',jdecode('Solar+air+conditioner'),jdecode(''),'/1566/50903.html','true',[],''],
		['PAGE','50930',jdecode('Industrial'),jdecode(''),'/1566/50930.html','true',[],''],
		['PAGE','45290',jdecode('Energy+efficienty'),jdecode(''),'/1566/45290.html','true',[],''],
		['PAGE','53281',jdecode('Catalogue+price'),jdecode(''),'/1566/53281.html','true',[],'']
	],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='A26013';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='155';
theSitetree.graphicsetId='176';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FCFCF4';
var theTemplate={
				name: 			'Natural',
				paletteFamily: 	'A26013',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'155',
				graphicsetId: 	'176',
				contentColor: 	'000000',
				contentBGColor: 'FCFCF4',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'A26013',
				b_color: 		'BB9F65',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1509',
internalId:  '',
customField: '20081128-121223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1647',
internalId:  '',
customField: '20081128-121302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90867',
internalId:  '',
customField: '20081128-121345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151867',
internalId:  '',
customField: '20081128-121426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175367',
internalId:  '',
customField: '20081128-121446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165467',
internalId:  '',
customField: '20081128-121508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22593',
internalId:  '',
customField: '20081128-121544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22674',
internalId:  '',
customField: '20081128-121656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1566',
internalId:  '',
customField: '20081128-121815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1593',
internalId:  '',
customField: '20081003-093034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175388',
internalId:  '',
customField: '20070923-124129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149067',
internalId:  '',
customField: '20081003-092238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175409',
internalId:  '',
customField: '20080330-142849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55190',
internalId:  '',
customField: '20070502-202444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1620',
internalId:  '',
customField: '20070922-103742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22620',
internalId:  '',
customField: '20071218-092710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22065',
internalId:  '',
customField: '20071114-200005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22298',
internalId:  '',
customField: '20071102-144358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22647',
internalId:  '',
customField: '20080520-125928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49547',
internalId:  '',
customField: '20070516-095512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20071017-164754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90894',
internalId:  '',
customField: '20071128-160753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1674',
internalId:  '',
customField: '20070106-131257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20080710-151806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1728',
internalId:  '',
customField: '20070612-221958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127367',
internalId:  '',
customField: '20070429-113532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55217',
internalId:  '',
customField: '20070417-161209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22325',
internalId:  '',
customField: '20061013-121447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22352',
internalId:  '',
customField: '20061014-112440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45209',
internalId:  '',
customField: '20061202-135522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45236',
internalId:  '',
customField: '20071102-142949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45263',
internalId:  '',
customField: '20061203-094611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50903',
internalId:  '',
customField: '20070521-152308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50930',
internalId:  '',
customField: '20061012-152421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45290',
internalId:  '',
customField: '20070428-170821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53281',
internalId:  '',
customField: '20080710-151859'
};
var canonHostname = 'cm1b.dca2.superb.net';
var accountId     = 'ASB010IN29DF';
var companyName   = '';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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) {														 
    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();
}
/* EOF */					                                                            
