/* [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','452',jdecode('Kako+do+nas'),jdecode(''),'/452.html','true',[],''],
	['PAGE','5501',jdecode('Fotogalerija'),jdecode(''),'/5501/index.html','true',[ 
		['PAGE','30301',jdecode('Kuhinje+in+jedilnice'),jdecode(''),'/5501/30301.html','true',[],''],
		['PAGE','30401',jdecode('Spalnice+in+garderobe'),jdecode(''),'/5501/30401.html','true',[],''],
		['PAGE','30501',jdecode('Kopalnice+in+dnevne+sobe'),jdecode(''),'/5501/30501.html','true',[],''],
		['PAGE','30601',jdecode('Poslovni+lokali'),jdecode(''),'/5501/30601.html','true',[],''],
		['PAGE','30701',jdecode('Stopnice%2C+vrata+in+ostalo'),jdecode(''),'/5501/30701.html','true',[],'']
	],''],
	['PAGE','494',jdecode('Izdelki+v+besedilu'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','515',jdecode('Dnevne+sobe'),jdecode(''),'/494/515.html','true',[],''],
		['PAGE','536',jdecode('Kuhinje'),jdecode(''),'/494/536.html','true',[],''],
		['PAGE','41601',jdecode('Jedilnice'),jdecode(''),'/494/41601.html','true',[],''],
		['PAGE','557',jdecode('Kopalnice'),jdecode(''),'/494/557.html','true',[],''],
		['PAGE','578',jdecode('Poslovni+in+gostinski+lokali'),jdecode(''),'/494/578.html','true',[],''],
		['PAGE','599',jdecode('Garderobe'),jdecode(''),'/494/599.html','true',[],''],
		['PAGE','620',jdecode('Spalnice'),jdecode(''),'/494/620.html','true',[],''],
		['PAGE','641',jdecode('Otro%C5%A1ke+sobe'),jdecode(''),'/494/641.html','true',[],''],
		['PAGE','662',jdecode('Stopnice'),jdecode(''),'/494/662.html','true',[],''],
		['PAGE','683',jdecode('Vrata'),jdecode(''),'/494/683.html','true',[],''],
		['PAGE','704',jdecode('Ostalo'),jdecode(''),'/494/704.html','true',[],'']
	],''],
	['PAGE','746',jdecode('Storitve'),jdecode(''),'/746.html','true',[],''],
	['PAGE','767',jdecode('Reference'),jdecode(''),'/767.html','true',[],''],
	['PAGE','788',jdecode('Novice'),jdecode(''),'/788.html','true',[],''],
	['PAGE','809',jdecode('Zaposlitve'),jdecode(''),'/809.html','true',[],''],
	['PAGE','830',jdecode('Kontakt'),jdecode(''),'/830.html','true',[],''],
	['PAGE','67006',jdecode('Knjiga+gostov'),jdecode(''),'/67006/index.html','true',[ 
		['PAGE','67001',jdecode('Vpisi'),jdecode(''),'/67006/67001.html','true',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='6699CC';
theSitetree.keyvisualId='881';
theSitetree.keyvisualName='detail.jpg';
theSitetree.fontsetId='18172';
theSitetree.graphicsetId='187';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Neon',
				paletteFamily: 	'6699CC',
				keyvisualId: 	'881',
				keyvisualName: 	'detail.jpg',
				fontsetId: 		'18172',
				graphicsetId: 	'187',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100305-140214'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20091202-023645'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20100305-135636'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '746',
internalId:  '',
customField: '20091013-142401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '767',
internalId:  '',
customField: '20091202-020305'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20100212-194756'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '30701',
internalId:  '1242fd5e40d',
customField: 'g.14gnt9r7v.eoo4mkui2v.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20091202-023620'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '30501',
internalId:  '1242fd23c02',
customField: 'g.14gnt1nsj.72gnogl9lmb.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41601',
internalId:  '',
customField: '20100222-193200'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '30401',
internalId:  '1242fcfe7cd',
customField: 'g.14gnsr0f7.d6nd5njckd.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20091014-145254'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100222-193103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20100222-193025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20100222-193256'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100222-193356'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20100222-193425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20100222-193454'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20100222-193556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20100222-193641'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20091006-214752'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20091006-214752'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '830',
internalId:  '',
customField: '20100305-135908'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '788',
internalId:  '',
customField: '20091013-142913'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '809',
internalId:  '',
customField: '20091009-025246'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '30601',
internalId:  '1242fd40731',
customField: 'g.14gnt5kk0.jebhbq0u0n.3o'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '30301',
internalId:  '1242fcc3e67',
customField: 'g.14gnsipdl.82rl081nr4.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20091202-023718'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20091202-023546'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30701',
internalId:  '',
customField: '20091202-023946'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '67006',
internalId:  '67006asio10in2z7d',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '67001',
internalId:  '67006asio10in2z7d',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '67006',
internalId:  '',
customField: '20100525-003842'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '67001',
internalId:  '',
customField: '20100525-003842'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASIO10IN2Z7D';
var companyName   = 'ProLegno+-+notranja+oprema';
var htmlTitle	  = 'www.prolegno.si';
var metaKeywords  = 'pohi%C5%A1tvo%2C+pohi%C5%A1tvo+po+naro%C4%8Dilu%2C+kuhinja%2C+kuhinja+po+meri%2C+kuhinjsko+pohi%C5%A1tvo%2C+otro%C5%A1ke+sobe%2C+pisalne+mize%2C+spalnice%2C+garderobe%2C+garderobna+omara%2C+vgradna+omara%2C+omara+od+tal+do+stropa%2C+omara+z+drsnimi+vrati%2C+dnevna+soba%2C+pohi%C5%A1tvo+za+dnevne+sobe%2C+kopalni%C5%A1ka+oprema%2C+oprema+za+kopalnice%2C+kopalni%C5%A1ko+pohi%C5%A1tvo%2C+jedilnica%2C+oprema+za+jedilnice%2C+postelja%2C+mizarstvo%2C+notranja+oprema%2C+izris+pohi%C5%A1tva%2C+na%C4%8Drt+za+kuhinjo%2C+arhitektura+notranje+opreme%2C+svetovanje%2C+in%C5%BEeniring%2C+in%C5%BEeniring+notranje+opreme%2C+Andrej+%C5%A0merc';
var metaContents  = 'www.prolegno.si%2C+pohi%C5%A1tvo%2C+pohi%C5%A1tvo+po+naro%C4%8Dilu%2C+kuhinja%2C+kuhinja+po+meri%2C+kuhinjsko+pohi%C5%A1tvo%2C+otro%C5%A1ke+sobe%2C+pisalne+mize%2C+spalnice%2C+garderobe%2C+garderobna+omara%2C+vgradna+omara%2C+omara+od+tal+do+stropa%2C+omara+z+drsnimi+vrati%2C+dnevna+soba%2C+pohi%C5%A1tvo+za+dnevne+sobe%2C+kopalni%C5%A1ka+oprema%2C+oprema+za+kopalnice%2C+kopalni%C5%A1ko+pohi%C5%A1tvo%2C+jedilnica%2C+oprema+za+jedilnice%2C+postelja%2C+mizarstvo%2C+notranja+oprema%2C+izris+pohi%C5%A1tva%2C+na%C4%8Drt+za+kuhinjo%2C+arhitektura+notranje+opreme%2C+svetovanje%2C+in%C5%BEeniring%2C+in%C5%BEeniring+notranje+opreme%2C+Andrej+%C5%A0merc';
					                                                                    
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 */					                                                            

