/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','9901',jdecode('%C3%9Cber+uns%2FChi+siamo'),jdecode(''),'/9901/index.html','true',[ 
		['PAGE','9922',jdecode('Geschichte%2FStoria'),jdecode(''),'/9901/9922.html','true',[],''],
		['PAGE','9943',jdecode('Vorstand%2FDirettivo'),jdecode(''),'/9901/9943.html','true',[],''],
		['PAGE','1901',jdecode('Mitglieder%2FMembri'),jdecode(''),'/9901/1901.html','true',[],'']
	],''],
	['PAGE','12622',jdecode('Saison+%2F+Stagione+2009%2F10'),jdecode(''),'/12622/index.html','true',[ 
		['PAGE','10006',jdecode('Spielplan%2FCalendario'),jdecode(''),'/12622/10006.html','true',[],''],
		['PAGE','9985',jdecode('Mannschaft+%2F+Squadra'),jdecode(''),'/12622/9985.html','true',[],'']
	],''],
	['PAGE','13401',jdecode('Letztes+Spiel%2FUltima+partita'),jdecode(''),'/13401.html','true',[],''],
	['PAGE','1922',jdecode('Alberghi+Stubaital'),jdecode(''),'/1922.html','true',[],''],
	['PAGE','10048',jdecode('Genoa+Links'),jdecode(''),'/10048.html','true',[],''],
	['PAGE','12001',jdecode('Foto+Ritiro+2008'),jdecode(''),'/12001.html','true',[],''],
	['PAGE','66301',jdecode('Foto+Ritiro+2009'),jdecode(''),'/66301.html','true',[],''],
	['PAGE','13706',jdecode('Guestbook'),jdecode(''),'/13706/index.html','true',[ 
		['PAGE','13701',jdecode('Eintr%C3%A4ge+%2F+Nota'),jdecode(''),'/13706/13701.html','true',[],'']
	],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='1389';
theSitetree.keyvisualName='tor.jpg';
theSitetree.fontsetId='233';
theSitetree.graphicsetId='292';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'000066',
				keyvisualId: 	'1389',
				keyvisualName: 	'tor.jpg',
				fontsetId: 		'233',
				graphicsetId: 	'292',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100215-173439'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20080816-172643'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1922',
internalId:  '',
customField: '20080720-220133'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9985',
internalId:  '',
customField: '20090831-181232'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10006',
internalId:  '',
customField: '20100215-172234'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20090118-192116'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9922',
internalId:  '',
customField: '20080816-172245'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9943',
internalId:  '',
customField: '20080901-172214'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '12001',
internalId:  '11bcc3d808f',
customField: 'g.13f624j85.43hofihbj50.3o'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '13706',
internalId:  '13706ainod0ine102',
customField: 'action=form&icq=false'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10048',
internalId:  '',
customField: '20091203-201217'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20091130-183842'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '2208096',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '13701',
internalId:  '13706ainod0ine102',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12622',
internalId:  '',
customField: '20100215-172812'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20100215-173658'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13706',
internalId:  '',
customField: '20080901-085154'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20080901-085154'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '66301',
internalId:  '1254a669619',
customField: 'g.14l55da95.6donkb6mbl.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '66301',
internalId:  '',
customField: '20091201-143329'
};
var canonHostname = 'cm4all.inode.at';
var accountId     = 'AINOD0INE102';
var companyName   = 'Genoa+Club+Stubai';
var htmlTitle	  = 'Genoa+Club+Stubai';
var metaKeywords  = 'Genoa+Club+Stubai+Neustift';
var metaContents  = 'Genoa+Club+Stubai+Alessandro+Giovannone+Cathrin+Paolo+Fagioli+Neustift';
					                                                                    
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 */					                                                            
