/* [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'),jdecode(''),'/401.html','true',[],''],
	['PAGE','127234',jdecode('Predstavitev+priro%C4%8Dnika'),jdecode(''),'/127234.html','true',[],''],
	['PAGE','494',jdecode('Kdo+smo+'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','536',jdecode('%C4%8Clani'),jdecode(''),'/494/536.html','true',[],''],
		['PAGE','8301',jdecode('Organi+dru%C5%A1tva'),jdecode(''),'/494/8301.html','true',[],''],
		['PAGE','18801',jdecode('Pravila+dru%C5%A1tva'),jdecode(''),'/494/18801.html','true',[],''],
		['PAGE','37201',jdecode('Kodeks+mediatorjev'),jdecode(''),'/494/37201.html','true',[],''],
		['PAGE','45612',jdecode('Izjave+za+javnost'),jdecode(''),'/494/45612.html','true',[],'']
	],''],
	['PAGE','109234',jdecode('DMS+Tarifa+mediatorjev'),jdecode(''),'/109234.html','true',[],''],
	['PAGE','101434',jdecode('Pristopna+izjava'),jdecode(''),'/101434.html','true',[],''],
	['PAGE','7901',jdecode('Mediacije'),jdecode(''),'/7901/index.html','true',[ 
		['PAGE','88234',jdecode('Splo%C5%A1no'),jdecode(''),'/7901/88234.html','true',[],''],
		['PAGE','88634',jdecode('Pojem+mediacije'),jdecode(''),'/7901/88634.html','true',[],''],
		['PAGE','88255',jdecode('Temeljna+na%C4%8Dela'),jdecode(''),'/7901/88255.html','true',[],''],
		['PAGE','7964',jdecode('Vrste+mediacije'),jdecode(''),'/7901/7964.html','true',[],''],
		['PAGE','89334',jdecode('Pravni+viri'),jdecode(''),'/7901/89334.html','true',[],'']
	],''],
	['PAGE','95034',jdecode('Pogodba+o+mediaciji'),jdecode(''),'/95034.html','true',[],''],
	['PAGE','578',jdecode('Osnovni+trenigi'),jdecode(''),'/578/index.html','true',[ 
		['PAGE','105034',jdecode('Pogosta+vpra%C5%A1anja+in+odgovori'),jdecode(''),'/578/105034.html','true',[],'']
	],''],
	['PAGE','599',jdecode('Za+izku%C5%A1ene'),jdecode(''),'/599.html','true',[],''],
	['PAGE','620',jdecode('Trenerji'),jdecode(''),'/620.html','true',[],''],
	['PAGE','62334',jdecode('Bela+knjiga+o+mediaciji'),jdecode(''),'/62334/index.html','true',[ 
		['PAGE','66634',jdecode('Sporo%C4%8Dilo+za+javnost'),jdecode(''),'/62334/66634.html','true',[],''],
		['PAGE','66655',jdecode('Povzetek'),jdecode(''),'/62334/66655.html','true',[],''],
		['PAGE','67634',jdecode('Bela+knjiga+'),jdecode(''),'/62334/67634.html','true',[],'']
	],''],
	['PAGE','641',jdecode('Kontakt'),jdecode(''),'/641.html','true',[],''],
	['PAGE','662',jdecode('Povezave'),jdecode(''),'/662/index.html','true',[ 
		['PAGE','46412',jdecode('EMNI'),jdecode(''),'/662/46412.html','true',[],'']
	],''],
	['PAGE','80034',jdecode('Objave'),jdecode(''),'/80034.html','true',[],''],
	['PAGE','50212',jdecode('Arhiv'),jdecode(''),'/50212.html','true',[],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Care';
theSitetree.paletteFamily='CC6866';
theSitetree.keyvisualId='206';
theSitetree.keyvisualName='apothekerin.jpg';
theSitetree.fontsetId='17932';
theSitetree.graphicsetId='18';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Care',
				paletteFamily: 	'CC6866',
				keyvisualId: 	'206',
				keyvisualName: 	'apothekerin.jpg',
				fontsetId: 		'17932',
				graphicsetId: 	'18',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'CC6866',
				b_color: 		'CC9966',
				c_color: 		'000000',
				d_color: 		'6A8493',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '641',
internalId:  '3360130',
customField: 'sl:SI:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20120120-094101'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45612',
internalId:  '',
customField: '20080616-094422'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080318-171335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20120130-181544'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20110406-180334'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20070820-143250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '37201',
internalId:  '',
customField: '20081111-173359'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20090329-191117'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7964',
internalId:  '',
customField: '20090618-171205'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88234',
internalId:  '',
customField: '20090629-165320'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20120112-121100'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20120111-102137'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20091006-061854'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20111004-101544'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20090127-184445'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46412',
internalId:  '',
customField: '20071206-162134'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80034',
internalId:  '',
customField: '20081204-165622'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50212',
internalId:  '',
customField: '20101027-205946'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '578',
internalId:  '3782826',
customField: 'sl:SI:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '89334',
internalId:  '',
customField: '20100630-174620'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '62334',
internalId:  '',
customField: '20080618-164132'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '66634',
internalId:  '',
customField: '20080617-134901'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '66655',
internalId:  '',
customField: '20080618-163753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '67634',
internalId:  '',
customField: '20080617-145514'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88255',
internalId:  '',
customField: '20090629-165750'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88634',
internalId:  '',
customField: '20090618-172135'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '95034',
internalId:  '',
customField: '20091102-105906'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '101434',
internalId:  '',
customField: '20100301-122114'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '105034',
internalId:  '',
customField: '20100511-201512'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '109234',
internalId:  '',
customField: '20100709-183359'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127234',
internalId:  '',
customField: '20111121-153724'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASIO10IN2T85';
var companyName   = 'Dru%C5%A1tvo+mediatorjev+Slovenije';
var htmlTitle	  = 'http%3A%2F%2Fwww.slo-med.si';
var metaKeywords  = 'mediacije%2C+konflikt%2C+spor%2C+sodi%C5%A1%C4%8De%2C+re%C5%A1evanje%2C+dru%C5%BEina%2C+pravda%2C+lo%C4%8Ditev';
var metaContents  = '';
					                                                                    
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 */					                                                            

