/* [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('Dobrodo%C5%A1li'),jdecode(''),'/401.html','true',[],''],
	['PAGE','11701',jdecode('Welcome+to+idrija+lace'),jdecode(''),'/11701.html','true',[],''],
	['PAGE','11722',jdecode('Izdelki+z+idrijsko+%C4%8Dipko'),jdecode(''),'/11722/index.html','true',[ 
		['PAGE','11743',jdecode('Prti+in+prti%C4%8Dki'),jdecode(''),'/11722/11743.html','true',[],''],
		['PAGE','11764',jdecode('Zavese+in+posteljnina'),jdecode(''),'/11722/11764.html','true',[],''],
		['PAGE','11785',jdecode('Obla%C4%8Dila'),jdecode(''),'/11722/11785.html','true',[],''],
		['PAGE','11806',jdecode('Poslovna+darila'),jdecode(''),'/11722/11806.html','true',[],'']
	],''],
	['PAGE','11827',jdecode('Kontakt'),jdecode(''),'/11827.html','true',[],''],
	['PAGE','11848',jdecode('Priljubljene+Povezave'),jdecode(''),'/11848.html','true',[],''],
	['PAGE','14401',jdecode('Idrijska+%C4%8Dipka-galerija'),jdecode(''),'/14401.html','true',[],''],
	['PAGE','19401',jdecode('Certifikat+in+priznanja'),jdecode(''),'/19401.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Gaudy';
theSitetree.paletteFamily='9D340D';
theSitetree.keyvisualId='5933';
theSitetree.keyvisualName='kv_5933.jpg';
theSitetree.fontsetId='20282';
theSitetree.graphicsetId='11907';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='D96F4F';
var theTemplate={
				name: 			'Gaudy',
				paletteFamily: 	'9D340D',
				keyvisualId: 	'5933',
				keyvisualName: 	'kv_5933.jpg',
				fontsetId: 		'20282',
				graphicsetId: 	'11907',
				contentColor: 	'FFFFFF',
				contentBGColor: 'D96F4F',
				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:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '11827',
internalId:  '893930',
customField: 'sl:SI:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091207-135031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11701',
internalId:  '',
customField: '20061106-130335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11722',
internalId:  '',
customField: '20070613-120233'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11743',
internalId:  '',
customField: '20061106-130559'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20091108-184341'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11806',
internalId:  '',
customField: '20060315-122053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11785',
internalId:  '',
customField: '20060308-185031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11764',
internalId:  '',
customField: '20061106-130645'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11827',
internalId:  '',
customField: '20061106-130749'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11848',
internalId:  '',
customField: '20061106-130807'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20060307-180915'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASI010IN2KIU';
var companyName   = 'galerija+idrijske+%C4%8Dipke';
var htmlTitle	  = 'http%3A%2F%2Fwww.idrija-lace.com';
var metaKeywords  = 'idrijska+%C4%8Dipka+%C4%8Dipke+%C4%8Dipka+idrija++klekljanje+lace+darila+poroka+gifts+obla%C4%8Dila+obleke+posteljnina+prti+zavese+prti%C4%8Dki++idrija+krst+rokavice+obrt+dedi%C5%A1%C4%8Dina+kultura+etnologija+++';
var metaContents  = 'Galerija+idrijske+%C4%8Dipke+se+ukvarja+zoblikovanjem+ro%C4%8Dno+klekljane+%C4%8Dipke%2C+so+za%C5%A1%C4%8Ditene+z+geografskim+poreklom+in+aplicirane+v+prte%2C+posteljnino%2C+zavese%2C+obla%C4%8Dila%2C+poslovna+darila%2C+poro%C4%8Dna+darila%2C+novoletna+darila%2C+reprezentacijska+darila.';
					                                                                    
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 */					                                                            
