/* [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','1001',jdecode('DOMOV'),jdecode(''),'/1001.html','true',[],''],
	['PAGE','54001',jdecode('11.+PRAZNIK+KAKIJEV'),jdecode(''),'/54001.html','true',[],''],
	['PAGE','49201',jdecode('DNEVI+ARTI%C4%8COK'),jdecode(''),'/49201.html','true',[],''],
	['PAGE','50201',jdecode('%C4%8CISTILNA+AKCIJA+2012'),jdecode(''),'/50201.html','true',[],''],
	['PAGE','3101',jdecode('O+NAS'),jdecode(''),'/3101.html','true',[],''],
	['PAGE','3122',jdecode('KONTAKT'),jdecode(''),'/3122.html','true',[],''],
	['PAGE','30801',jdecode('AKTIVNOSTI'),jdecode(''),'/30801/index.html','true',[ 
		['PAGE','24401',jdecode('Ocenjevanje+vrtov'),jdecode(''),'/30801/24401.html','true',[],''],
		['PAGE','30122',jdecode('Pandolo'),jdecode(''),'/30801/30122.html','true',[],'']
	],''],
	['PAGE','15201',jdecode('PRAZNIK+KAKIJEV'),jdecode(''),'/15201/index.html','true',[ 
		['PAGE','32101',jdecode('Kaki+hrana+bogov'),jdecode(''),'/15201/32101.html','true',[],''],
		['PAGE','39601',jdecode('VABILO+HARMONIKARJEV'),jdecode(''),'/15201/39601.html','true',[],'']
	],''],
	['PAGE','15501',jdecode('AKTIV+%C5%BDENA'),jdecode(''),'/15501/index.html','true',[ 
		['PAGE','29701',jdecode('Telovadba'),jdecode(''),'/15501/29701.html','true',[],'']
	],''],
	['PAGE','13701',jdecode('Foto+Albumi'),jdecode(''),'/13701.html','true',[],''],
	['PAGE','29722',jdecode('Zanimive+povezave'),jdecode(''),'/29722.html','true',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Momentsinlife';
theSitetree.paletteFamily='4C51A8';
theSitetree.keyvisualId='6510';
theSitetree.keyvisualName='kv_6510.jpg';
theSitetree.fontsetId='20432';
theSitetree.graphicsetId='11987';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='7F7F7F';
var theTemplate={
				name: 			'Momentsinlife',
				paletteFamily: 	'4C51A8',
				keyvisualId: 	'6510',
				keyvisualName: 	'kv_6510.jpg',
				fontsetId: 		'20432',
				graphicsetId: 	'11987',
				contentColor: 	'FFFFFF',
				contentBGColor: '7F7F7F',
				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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20080926-165334'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20080705-142556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20080613-225434'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3122',
internalId:  '',
customField: '20110222-213838'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20100903-131234'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20080723-213251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20101101-145429'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20081009-175704'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29701',
internalId:  '',
customField: '20091015-160624'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30122',
internalId:  '',
customField: '20100921-112646'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29722',
internalId:  '',
customField: '20101018-102536'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32101',
internalId:  '',
customField: '20081015-215023'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49201',
internalId:  '',
customField: '20111025-200536'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54001',
internalId:  '',
customField: '20111025-203803'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39601',
internalId:  '',
customField: '20100921-112404'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50201',
internalId:  '',
customField: '20111025-200823'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASIO10IN22UM';
var companyName   = 'TURISTI%C4%8CNO+DRU%C5%A0TVO+SOLINAR+STRUNJAN++';
var htmlTitle	  = 'www.td-solinarstrunjan.net';
var metaKeywords  = 'dru%C5%A1tvo%2C+solinar%2C+strunjan%2C+praznik+kakijev';
var metaContents  = 'turisti%C4%8Dno+dru%C5%A1tvo+solinar+strunjan%2C+praznik+kakijev%2C+aktiv+%C5%BEena%2C';
					                                                                    
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 */					                                                            

