/* [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','2801',jdecode('Domov'),jdecode(''),'/2801.html','true',[],''],
	['PAGE','2852',jdecode('Lokacija'),jdecode(''),'/2852.html','true',[],''],
	['PAGE','2873',jdecode('O+na%C5%A1em+dru%C5%A1tvu'),jdecode(''),'/2873.html','true',[],''],
	['PAGE','2894',jdecode('Delovanje'),jdecode(''),'/2894/index.html','true',[ 
		['PAGE','7222',jdecode('AVTO-MOTO+%C5%A0PORT'),jdecode(''),'/2894/7222.html','true',[],''],
		['PAGE','7201',jdecode('AVTO+KARETA'),jdecode(''),'/2894/7201.html','true',[],''],
		['PAGE','7243',jdecode('PROMETNA+VZGOJA+IN+PREVENTIVA'),jdecode(''),'/2894/7243.html','true',[],'']
	],''],
	['PAGE','2915',jdecode('Prireditve'),jdecode(''),'/2915.html','true',[],''],
	['PAGE','2936',jdecode('Novice'),jdecode(''),'/2936.html','true',[],''],
	['PAGE','2957',jdecode('Kontakt'),jdecode(''),'/2957.html','true',[],''],
	['PAGE','7706',jdecode('Knjiga+gostov'),jdecode(''),'/7706/index.html','true',[ 
		['PAGE','7701',jdecode('Vpisi'),jdecode(''),'/7706/7701.html','true',[],'']
	],''],
	['PAGE','21301',jdecode('Foto+Albumi'),jdecode(''),'/21301.html','true',[],''],
	['PAGE','22001',jdecode('Mladi+kolesarji'),jdecode(''),'/22001/index.html','true',[ 
		['PAGE','27701',jdecode('EKIPA+AMZS-AMD+TOLMIN+3+NA+EVROPSKEM+PRVENSTVU+V+LIZBONI'),jdecode(''),'/22001/27701.html','true',[],'']
	],''],
	['PAGE','27301',jdecode('foto+album+AMD+TOLMIN'),jdecode(''),'/27301.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2247';
theSitetree.keyvisualName='reisebueros2.jpg';
theSitetree.fontsetId='18537';
theSitetree.graphicsetId='415';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='93A6CC';
var theTemplate={
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2247',
				keyvisualName: 	'reisebueros2.jpg',
				fontsetId: 		'18537',
				graphicsetId: 	'415',
				contentColor: 	'000000',
				contentBGColor: '93A6CC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'93A6CC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '2801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '7706',
internalId:  '7706asi010in2wcs',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '7701',
internalId:  '7706asi010in2wcs',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '27301',
internalId:  '10c06632616',
customField: 'g.11g36cjim.qbr1hdglgm.3o'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '22001',
internalId:  '10bdd195386',
customField: 'g.11fehlgpo.b104b96fql.3o'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '27701',
internalId:  '10c068bf6fa',
customField: 'g.11g393pk8.bgrtb4dtf3.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100808-114727'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2852',
internalId:  '',
customField: '20100808-115218'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2873',
internalId:  '',
customField: '20100808-122307'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2894',
internalId:  '',
customField: '20100808-122724'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7222',
internalId:  '',
customField: '20100808-122802'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20100808-122918'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7243',
internalId:  '',
customField: '20100808-123042'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2915',
internalId:  '',
customField: '20100802-124141'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2936',
internalId:  '',
customField: '20090112-204847'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2957',
internalId:  '',
customField: '20060831-144220'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7706',
internalId:  '',
customField: '20070415-232053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20060419-212906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20060830-204509'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27701',
internalId:  '',
customField: '20090818-175531'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27301',
internalId:  '',
customField: '20060707-154301'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21301',
internalId:  '',
customField: '20090818-175637'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASI010IN2WCS';
var companyName   = 'AMD+Avtomoto+dru%C5%A1tvo+Tolmin';
var htmlTitle	  = 'http%3A%2F%2Fwww.amd-tolmin.net';
var metaKeywords  = 'Avto+moto+dru%C5%A1tvo%2C+AMD+Tolmin%2C+sekcija+za+%C5%A1port%2C+oldtajmerji%2C+';
var metaContents  = 'Predstavitev+avto+moto+dru%C5%A1tva+Tolmin+in+dejvnosti%2C+ki+jih+vodi+na+%C5%A1ir%C5%A1em+podro%C4%8Dju+ob%C4%8Din+Tolmin%2C+Kobarid+in+Bovec.++AMD+Tolmin+je+v%C4%8Dlanjeno+tudi+v+AMZS%2C+vodi+pa+ga+dolgoletni+predsednik+Jo%C5%BEe+Re%C5%BEonja.';
					                                                                    
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 */					                                                            
