/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','501',jdecode('xSMS+Home'),jdecode(''),'/501/index.html','true',[ 
		['PAGE','27101',jdecode('Fran%C3%A7ais'),jdecode(''),'/501/27101.html','true',[],''],
		['PAGE','27122',jdecode('Deutsch'),jdecode(''),'/501/27122.html','true',[],''],
		['PAGE','27143',jdecode('Nederlands'),jdecode(''),'/501/27143.html','true',[],''],
		['PAGE','27164',jdecode('Espa%C3%B1ol'),jdecode(''),'/501/27164.html','true',[],'']
	],''],
	['PAGE','3101',jdecode('Download'),jdecode(''),'/3101/index.html','true',[ 
		['PAGE','3122',jdecode('xSMS+for+Windows'),jdecode(''),'/3101/3122.html','true',[],''],
		['PAGE','3143',jdecode('xSMS+for+Linux'),jdecode(''),'/3101/3143.html','true',[],''],
		['PAGE','3164',jdecode('xSMS+for+Mac+OSX'),jdecode(''),'/3101/3164.html','true',[],'']
	],''],
	['PAGE','21001',jdecode('Obtain+DEMO+license'),jdecode(''),'/21001/index.html','true',[ 
		['PAGE','21401',jdecode('Obtain+DEMO+license+%28follow+up+page%29'),jdecode(''),'/21001/21401.html','false',[],'']
	],''],
	['PAGE','22501',jdecode('Obtain+your+license'),jdecode(''),'/22501/index.html','true',[ 
		['PAGE','23201',jdecode('Obtain+your+license+%28follow+up+page%29'),jdecode(''),'/22501/23201.html','false',[],'']
	],''],
	['PAGE','9801',jdecode('Purchase+license'),jdecode(''),'/9801.html','true',[],''],
	['PAGE','12701',jdecode('Product+comparison'),jdecode(''),'/12701.html','true',[],''],
	['PAGE','3248',jdecode('Tips+%26+Tricks'),jdecode(''),'/3248/index.html','true',[ 
		['PAGE','19201',jdecode('External+connections'),jdecode(''),'/3248/19201.html','true',[],''],
		['PAGE','29401',jdecode('Mail2SMS'),jdecode(''),'/3248/29401.html','true',[],''],
		['PAGE','11901',jdecode('GSM+compatibility+status'),jdecode(''),'/3248/11901.html','true',[],''],
		['PAGE','20001',jdecode('License+installation'),jdecode(''),'/3248/20001.html','true',[],''],
		['PAGE','26201',jdecode('Build+history'),jdecode(''),'/3248/26201.html','true',[],'']
	],''],
	['PAGE','3185',jdecode('Support'),jdecode(''),'/3185/index.html','true',[ 
		['PAGE','10501',jdecode('Support+%28follow+up+page%29'),jdecode(''),'/3185/10501.html','false',[],''],
		['PAGE','3206',jdecode('Addresses'),jdecode(''),'/3185/3206.html','true',[],'']
	],''],
	['PAGE','23701',jdecode('Warranty'),jdecode(''),'/23701.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Round';
theSitetree.paletteFamily='cc3333';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='439';
theSitetree.graphicsetId='495';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='e47272';
var theTemplate={
				name: 			'Round',
				paletteFamily: 	'cc3333',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'439',
				graphicsetId: 	'495',
				contentColor: 	'000000',
				contentBGColor: 'e47272',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'e47272',
				b_color: 		'cc3333',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '3185',
internalId:  'aen010inl9h2118a33bb01f',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10501',
internalId:  'aen010inl9h2118a33bb01f',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '21001',
internalId:  'aen010inl9h211995ce59f0',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '21401',
internalId:  'aen010inl9h211995ce59f0',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '22501',
internalId:  'aen010inl9h21199b82d178',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '23201',
internalId:  'aen010inl9h21199b82d178',
customField: 'followUp'
};
var canonHostname = 'wsc02.ehost-services.com';
var accountId     = 'AEN010INL9H2';
var companyName   = 'PERSONAL+SMS+GATEWAY+MADE+EASY';
var htmlTitle	  = 'xSMS+Gateway+voor+Windows%2C+Linux+or+MAC+OSX';
var metaKeywords  = 'sms%2C+gateway%2C+xsms%2C+send+sms%2C+receive+sms%2C+sms+gateway%2C+free+sms%2C+osx%2C+apple%2C+windows%2C+linux%2C+group+message%2C+group+sms%2C+groep+sms%2C+gratis+sms%2C+zend+sms%2C+sms+internet%2C+bulk+sms%2C+linux%2C+mac%2C+telecom%2C+bluetooth%2C+serial';
var metaContents  = 'The+xSMS+software+connects+to+any+GSM%2FGPRS+device%2C+including+serial+and+Bluetooth+connected+devices.+The+desktop+edition+offers+the+best+solution+for+sending+bulk+SMS+messages+to+any+country+using+your+personal+telecom+provider.++';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
