/* [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','24701',jdecode('Novice'),jdecode(''),'/24701.html','true',[],''],
	['PAGE','27401',jdecode('%C5%BDivali+za+oddajo'),jdecode(''),'/27401.html','true',[],''],
	['PAGE','214923',jdecode('Posvojitev+na+daljavo'),jdecode(''),'/214923.html','true',[],''],
	['PAGE','111901',jdecode('Na%C5%A1i+uspehi'),jdecode(''),'/111901/index.html','true',[ 
		['PAGE','155301',jdecode('Na%C5%A1i+uspehi+2009'),jdecode(''),'/111901/155301.html','true',[],''],
		['PAGE','212623',jdecode('Na%C5%A1i+uspehi+2010'),jdecode(''),'/111901/212623.html','true',[],'']
	],''],
	['PAGE','9901',jdecode('Postanite+na%C5%A1+%C4%8Dlan'),jdecode(''),'/9901.html','true',[],''],
	['PAGE','19601',jdecode('Pristopna+izjava'),jdecode(''),'/19601.html','true',[],''],
	['PAGE','78501',jdecode('Zgodbe'),jdecode(''),'/78501.html','true',[],''],
	['PAGE','499',jdecode('Prijave+o+mu%C4%8Denju'),jdecode(''),'/499.html','true',[],''],
	['PAGE','394',jdecode('Neza%C5%BEeleni+mladi%C4%8Di'),jdecode(''),'/394.html','true',[],''],
	['PAGE','415',jdecode('Akcije'),jdecode(''),'/415/index.html','true',[ 
		['PAGE','14301',jdecode('Zbiranje+hrane+'),jdecode(''),'/415/14301.html','true',[],''],
		['PAGE','373',jdecode('Zbiranje+denarja'),jdecode(''),'/415/373.html','true',[],'']
	],''],
	['PAGE','68501',jdecode('Za+lastnike+psov+in+ma%C4%8Dk'),jdecode(''),'/68501/index.html','true',[ 
		['PAGE','68522',jdecode('Pes+-+%C4%8Duvaj+in+prijatelj'),jdecode(''),'/68501/68522.html','true',[],''],
		['PAGE','68543',jdecode('Kaj+mora+vedeti+lastnik+psa%2Fma%C4%8Dke'),jdecode(''),'/68501/68543.html','true',[],'']
	],''],
	['PAGE','208123',jdecode('Knjiga+o+ma%C4%8Dkah'),jdecode(''),'/208123.html','true',[],''],
	['PAGE','352',jdecode('Splo%C5%A1ne+informacije'),jdecode(''),'/352.html','true',[],''],
	['PAGE','301',jdecode('O+dru%C5%A1tvu'),jdecode(''),'/301.html','true',[],''],
	['PAGE','20501',jdecode('Statut+dru%C5%A1tva'),jdecode(''),'/20501.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Antigua';
theSitetree.paletteFamily='617F92';
theSitetree.keyvisualId='6919';
theSitetree.keyvisualName='kv_6919.jpg';
theSitetree.fontsetId='20512';
theSitetree.graphicsetId='12036';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='809DAF';
var theTemplate={
				name: 			'Antigua',
				paletteFamily: 	'617F92',
				keyvisualId: 	'6919',
				keyvisualName: 	'kv_6919.jpg',
				fontsetId: 		'20512',
				graphicsetId: 	'12036',
				contentColor: 	'000000',
				contentBGColor: '809DAF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20060420-150543'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '27401',
internalId:  '1501',
customField: '1501'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '19601',
internalId:  '914338',
customField: 'sl:SI:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '27401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20100304-180527'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24701',
internalId:  '',
customField: '20100202-185506'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20060301-213134'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20070905-111123'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20060312-090535'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20060608-080943'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78501',
internalId:  '',
customField: '20080305-093558'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '499',
internalId:  '',
customField: '20060303-093316'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '208123',
internalId:  '914338',
customField: 'sl:SI:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '394',
internalId:  '',
customField: '20070109-145347'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '415',
internalId:  '',
customField: '20060301-202931'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20070330-074704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20070330-074544'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68501',
internalId:  '',
customField: '20070216-140735'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68522',
internalId:  '',
customField: '20070216-140751'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68543',
internalId:  '',
customField: '20070216-133322'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '111901',
internalId:  '',
customField: '20100201-173703'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '208123',
internalId:  '',
customField: '20100104-192047'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '155301',
internalId:  '',
customField: '20100104-191033'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '212623',
internalId:  '',
customField: '20100304-181009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '214923',
internalId:  '',
customField: '20100201-161357'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASI010INXPVQ';
var companyName   = 'Dru%C5%A1tvo+za+za%C5%A1%C4%8Dito+%C5%BEivali+Ko%C4%8Devje';
var htmlTitle	  = 'Dru%C5%A1tvo+za+za%C5%A1%C4%8Dito+%C5%BEivali+Ko%C4%8Devje';
var metaKeywords  = 'Dru%C5%A1tvo+za+za%C5%A1%C4%8Dito+%C5%BEivali+Ko%C4%8Devje%2C+mu%C4%8Denje+%C5%BEivali%2C+mucke%2C+psi%2C+mladi%C4%8Di%2C+prostovoljno+delo';
var metaContents  = 'Dru%C5%A1tvo+za+za%C5%A1%C4%8Dito+%C5%BEivali+Ko%C4%8Devje%2C+mu%C4%8Denje+%C5%BEivali%2C+mucke%2C+psi%2C+mladi%C4%8Di%2C+prostovoljno+delo';
					                                                                    
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 */					                                                            
