/* [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','6101',jdecode('Lestenci+in+sen%C4%8Dila+'),jdecode(''),'/6101.html','true',[],''],
	['PAGE','11301',jdecode('Plo%C5%A1%C4%8Dice+in+umivalniki'),jdecode(''),'/11301.html','true',[],''],
	['PAGE','54801',jdecode('cenik'),jdecode(''),'/54801.html','true',[],''],
	['PAGE','42601',jdecode('Reference+v+sliki'),jdecode(''),'/42601.html','true',[],''],
	['PAGE','46601',jdecode('reference'),jdecode(''),'/46601.html','true',[],''],
	['PAGE','3506',jdecode('Knjiga+gostov'),jdecode(''),'/3506/index.html','true',[ 
		['PAGE','3501',jdecode('vpisi'),jdecode(''),'/3506/3501.html','true',[],'']
	],''],
	['PAGE','28701',jdecode('Utrinki+iz+delavnice'),jdecode(''),'/28701.html','true',[],''],
	['PAGE','615',jdecode('Kontakt'),jdecode(''),'/615.html','true',[],''],
	['PAGE','40501',jdecode('lokacija'),jdecode(''),'/40501.html','true',[],''],
	['PAGE','501',jdecode('Domov'),jdecode(''),'/501.html','true',[],''],
	['PAGE','54201',jdecode('Plavalni+ribniki'),jdecode(''),'/54201.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Citadel';
theSitetree.paletteFamily='414E8C';
theSitetree.keyvisualId='8166';
theSitetree.keyvisualName='kv_8166.jpg';
theSitetree.fontsetId='20932';
theSitetree.graphicsetId='12397';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='414E8C';
var theTemplate={
				name: 			'Citadel',
				paletteFamily: 	'414E8C',
				keyvisualId: 	'8166',
				keyvisualName: 	'kv_8166.jpg',
				fontsetId: 		'20932',
				graphicsetId: 	'12397',
				contentColor: 	'FFFFFF',
				contentBGColor: '414E8C',
				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:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '3506',
internalId:  '3506asio10in28r5',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '3501',
internalId:  '3506asio10in28r5',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '40501',
internalId:  '11bc5cf522c',
customField: 'g.13f2s24b2.2o2lu4dabtc.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54801',
internalId:  '',
customField: '20110721-194200'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '6101',
internalId:  '1110a6a544e',
customField: 'g.12459jcd5.k3aha2o6ms.0'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '11301',
internalId:  '1111e813a4c',
customField: 'g.124fb0vuv.c1q5nrg64s.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090925-183843'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46601',
internalId:  '',
customField: '20110705-181158'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20110220-155901'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20070304-210851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54201',
internalId:  '',
customField: '20100201-120617'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40501',
internalId:  '',
customField: '20080815-132549'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3506',
internalId:  '',
customField: '20070227-213224'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20070227-213224'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20101211-232946'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '42601',
internalId:  '11bc615f7bb',
customField: 'g.13f2tnjq5.l17hvfjt3l.3o'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '615',
internalId:  '2740846',
customField: 'sl:SI:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20081204-205934'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42601',
internalId:  '',
customField: '20080815-143648'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASIO10IN28R5';
var companyName   = 'glina+in+les+v+harmoniji+in+rokah+dveh+mladih+mojstrov';
var htmlTitle	  = 'unikatna+keramika%2Clon%C4%8Dene+lu%C4%8Di%2Ckerami%C4%8Dni+umivalniki%2Ckuhinje%2Ckarmen+klemensberger%2Crobert+klemensberger';
var metaKeywords  = 'karmen+klemensberger%2C+unikatna+keramika%2C+lon%C4%8Dene+lu%C4%8Di%2C+plo%C5%A1%C4%8Dice%2C+sen%C4%8Dila%2Ckerami%C4%8Dni+umivalniki%2C+pohi%C5%A1tvo%2Clon%C4%8Darstvo%2C+izdelki+doma%C4%8De+obrti%2Cmizarstvo%2Ckuhinje%2Crobert+klemensberger';
var metaContents  = 'lon%C4%8Dene+lu%C4%8Di%2C+karmen+klemensberger%2C+lestenci%2C+plo%C5%A1%C4%8Dice%2C+sen%C4%8Dila%2C+unikatno+pohi%C5%A1tvo%2C+lon%C4%8Darstvo%2Cizdelki+doma%C4%8De+obrti%2Ckuhinje%2Cmizarstvo%2Ckerami%C4%8Dni+umivalniki%2Crobert+klemnsberger';
					                                                                    
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 */					                                                            

