/* [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','301',jdecode('O+podjetju'),jdecode(''),'/301/index.html','true',[ 
		['PAGE','2301',jdecode('Poslanstvo'),jdecode(''),'/301/2301.html','true',[],''],
		['PAGE','4201',jdecode('Vizija'),jdecode(''),'/301/4201.html','true',[],''],
		['PAGE','4222',jdecode('Politika+kakovosti'),jdecode(''),'/301/4222.html','true',[],''],
		['PAGE','4243',jdecode('Osnovni+podatki'),jdecode(''),'/301/4243.html','true',[],''],
		['PAGE','4264',jdecode('Lokacija+in+dostop'),jdecode(''),'/301/4264.html','true',[],''],
		['PAGE','4285',jdecode('Zgodovina'),jdecode(''),'/301/4285.html','true',[],'']
	],''],
	['PAGE','4306',jdecode('Dejavnosti'),jdecode(''),'/4306/index.html','true',[ 
		['PAGE','4327',jdecode('Poslovni+vidik'),jdecode(''),'/4306/4327.html','true',[],''],
		['PAGE','5301',jdecode('Tehnolo%C5%A1ki+vidik'),jdecode(''),'/4306/5301.html','true',[],''],
		['PAGE','5322',jdecode('Vrsta+storitev'),jdecode(''),'/4306/5322.html','true',[],''],
		['PAGE','5343',jdecode('Velikost+ciljnih+podjetij'),jdecode(''),'/4306/5343.html','true',[],'']
	],''],
	['PAGE','5364',jdecode('Va%C5%A1e+mnenje'),jdecode(''),'/5364.html','true',[],''],
	['PAGE','5385',jdecode('Pogoji+uporabe'),jdecode(''),'/5385.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='333399';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='18042';
theSitetree.graphicsetId='105';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Global',
				paletteFamily: 	'333399',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'18042',
				graphicsetId: 	'105',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'242E8A',
				b_color: 		'FF9900',
				c_color: 		'000000',
				d_color: 		'EAEAEA',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20101020-163128'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5364',
internalId:  '1791449',
customField: 'sl:SI:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4243',
internalId:  '',
customField: '20101020-163506'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4264',
internalId:  '',
customField: '20101020-163615'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20060817-143450'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20060919-143113'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20060817-143836'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4285',
internalId:  '',
customField: '20101020-163941'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4306',
internalId:  '',
customField: '20101020-165654'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4327',
internalId:  '',
customField: '20060817-145145'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20101020-170022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20060817-145428'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5343',
internalId:  '',
customField: '20060817-145452'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5364',
internalId:  '',
customField: '20060817-145525'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5385',
internalId:  '',
customField: '20060919-143316'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASI010IN20XB';
var companyName   = '';
var htmlTitle	  = 'MAT+d.o.o.+ra%C4%8Dunalni%C5%A1ki+in%C5%BEeniring';
var metaKeywords  = 'ra%C4%8Dunalni%C5%A1ki+in%C5%BEeniring';
var metaContents  = 'Ra%C4%8Dunalni%C5%A1ki+in%C5%BEeniring';
					                                                                    
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 */					                                                            

