/* [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('Domov+-+SLO'),jdecode(''),'/401/index.html','true',[ 
		['PAGE','1543',jdecode('Zgodovina+lipicanca'),jdecode(''),'/401/1543.html','true',[],''],
		['PAGE','14501',jdecode('%C5%A0panska+%C5%A1ola+jahanja'),jdecode(''),'/401/14501.html','true',[],''],
		['PAGE','94901',jdecode('O+Sloveniji'),jdecode(''),'/401/94901.html','true',[],''],
		['PAGE','3201',jdecode('Novice+'),jdecode(''),'/401/3201.html','true',[],''],
		['PAGE','252209',jdecode('Plemenilna+postaja'),jdecode(''),'/401/252209.html','true',[],''],
		['PAGE','5801',jdecode('Na%C5%A1i+konji'),jdecode(''),'/401/5801.html','true',[],''],
		['PAGE','55101',jdecode('%C5%BDrebeta'),jdecode(''),'/401/55101.html','true',[],''],
		['PAGE','53801',jdecode('Plemenski+%C5%BErebci'),jdecode(''),'/401/53801.html','true',[],''],
		['PAGE','6501',jdecode('Trenutno+naprodaj'),jdecode(''),'/401/6501.html','true',[],''],
		['PAGE','63001',jdecode('Prodani+konji'),jdecode(''),'/401/63001.html','true',[],''],
		['PAGE','194423',jdecode('Reference'),jdecode(''),'/401/194423.html','true',[],''],
		['PAGE','13101',jdecode('Galerija+na%C5%A1ih+konj'),jdecode(''),'/401/13101.html','true',[],''],
		['PAGE','1522',jdecode('Povezave'),jdecode(''),'/401/1522.html','true',[],''],
		['PAGE','8901',jdecode('Kontakt'),jdecode(''),'/401/8901.html','true',[],'']
	],''],
	['PAGE','25601',jdecode('Home+-+ENG'),jdecode(''),'/25601/index.html','true',[ 
		['PAGE','25622',jdecode('Lipizzan+breed'),jdecode(''),'/25601/25622.html','true',[],''],
		['PAGE','25727',jdecode('Spanish+riding+school'),jdecode(''),'/25601/25727.html','true',[],''],
		['PAGE','94922',jdecode('About+Slovenia'),jdecode(''),'/25601/94922.html','true',[],''],
		['PAGE','25664',jdecode('News+'),jdecode(''),'/25601/25664.html','true',[],''],
		['PAGE','252230',jdecode('Breeding+station'),jdecode(''),'/25601/252230.html','true',[],''],
		['PAGE','25685',jdecode('Our+horses'),jdecode(''),'/25601/25685.html','true',[],''],
		['PAGE','58043',jdecode('Foals'),jdecode(''),'/25601/58043.html','true',[],''],
		['PAGE','58001',jdecode('Fathers+of+our+foals'),jdecode(''),'/25601/58001.html','true',[],''],
		['PAGE','25748',jdecode('Horses+for+sale'),jdecode(''),'/25601/25748.html','true',[],''],
		['PAGE','63022',jdecode('Sold+horses'),jdecode(''),'/25601/63022.html','true',[],''],
		['PAGE','194444',jdecode('References'),jdecode(''),'/25601/194444.html','true',[],''],
		['PAGE','25706',jdecode('Foto+gallery'),jdecode(''),'/25601/25706.html','true',[],''],
		['PAGE','25643',jdecode('Links'),jdecode(''),'/25601/25643.html','true',[],''],
		['PAGE','25769',jdecode('Contact+us'),jdecode(''),'/25601/25769.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Gaudy';
theSitetree.paletteFamily='5C5D96';
theSitetree.keyvisualId='5975';
theSitetree.keyvisualName='kv_5975.jpg';
theSitetree.fontsetId='20282';
theSitetree.graphicsetId='11905';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6E8BCE';
var theTemplate={
				name: 			'Gaudy',
				paletteFamily: 	'5C5D96',
				keyvisualId: 	'5975',
				keyvisualName: 	'kv_5975.jpg',
				fontsetId: 		'20282',
				graphicsetId: 	'11905',
				contentColor: 	'FFFFFF',
				contentBGColor: '6E8BCE',
				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['1006']={
webappId:    '1006',
documentId:  '25601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '14501',
internalId:  '109db591b8a',
customField: 'g.117dldcbh.6lsf7gllm6t.1s'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '13101',
internalId:  '109db38a90d',
customField: 'g.117djgfhn.4k1cg0626j.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100711-075450'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100711-074947'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63001',
internalId:  '',
customField: '20100331-103426'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20100711-080019'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25685',
internalId:  '',
customField: '20100711-081247'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63022',
internalId:  '',
customField: '20100402-135526'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58001',
internalId:  '',
customField: '20100120-193551'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '53801',
internalId:  '',
customField: '20100120-193742'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1543',
internalId:  '',
customField: '20080730-144552'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '94901',
internalId:  '',
customField: '20080730-144307'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14501',
internalId:  '',
customField: '20060309-220817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20100711-072925'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20060308-201038'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55101',
internalId:  '',
customField: '20100428-151131'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20100520-151338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1522',
internalId:  '',
customField: '20100106-113250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20080416-110327'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25622',
internalId:  '',
customField: '20080605-191107'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '94922',
internalId:  '',
customField: '20091028-223411'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25727',
internalId:  '',
customField: '20060619-084443'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25664',
internalId:  '',
customField: '20100711-081315'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25706',
internalId:  '',
customField: '20060319-213525'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '58043',
internalId:  '',
customField: '20100412-111233'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25748',
internalId:  '',
customField: '20100711-080106'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25643',
internalId:  '',
customField: '20100111-090351'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25769',
internalId:  '',
customField: '20080416-105350'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '194423',
internalId:  '',
customField: '20100210-180816'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '194444',
internalId:  '',
customField: '20100210-181106'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '25601',
internalId:  '993401',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '252230',
internalId:  '',
customField: '20100427-105335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '252209',
internalId:  '',
customField: '20100428-150607'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASI010IN2KHT';
var companyName   = 'JJ-Lipizzans+';
var htmlTitle	  = 'JJ-Lipizzans';
var metaKeywords  = 'Lipicanec++++Lipicaner++++Lipizzan+for+sale+++Ja%C5%A1ovi%C4%87+++Jasovic+slovenian+private+breeding+assotiation+zrls';
var metaContents  = 'Na%C5%A1i+lipicanci+++lipizzan+for+sale++horses+for+sale+slovenian+private+breeding+zdru%C5%BEenje+rejcev+lipicanca+zrls+';
					                                                                    
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 */					                                                            
