/* [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('Vabljeni+v+Idrsko+in+Mlinsko'),jdecode(''),'/401.html','true',[],''],
	['PAGE','30901',jdecode('Dogodki+in+prireditve'),jdecode(''),'/30901/index.html','true',[ 
		['PAGE','49101',jdecode('Jezdeci+smaragdne+reke'),jdecode(''),'/30901/49101.html','true',[],'']
	],''],
	['PAGE','16701',jdecode('Delo+in+obi%C4%8Daji'),jdecode(''),'/16701/index.html','true',[ 
		['PAGE','116401',jdecode('Zapu%C5%A1%C4%8Dena+seno%C5%BEeta+...'),jdecode(''),'/16701/116401.html','true',[],''],
		['PAGE','19101',jdecode('Gosti%C5%A1%C4%8De+Jazbec'),jdecode(''),'/16701/19101.html','true',[],''],
		['PAGE','18501',jdecode('Kulinarika'),jdecode(''),'/16701/18501.html','true',[],''],
		['PAGE','236001',jdecode('Idrska+planina+na+Matajurju'),jdecode(''),'/16701/236001.html','true',[],'']
	],''],
	['PAGE','260901',jdecode('Nare%C4%8Dne+pravljice+iz+okolice'),jdecode(''),'/260901/index.html','true',[ 
		['PAGE','261301',jdecode('Pravljica%3A+VOLK+IN+LISICA'),jdecode(''),'/260901/261301.html','true',[],''],
		['PAGE','261801',jdecode('Pravljica%3A+TRNULJ%C4%8CICA'),jdecode(''),'/260901/261801.html','true',[],''],
		['PAGE','261822',jdecode('Pravljica%3A+PLE%C5%A0EC'),jdecode(''),'/260901/261822.html','true',[],''],
		['PAGE','261843',jdecode('Pravljica%3A+KAKO+JE+FANTI%C4%8C+POSTAL+PRINC'),jdecode(''),'/260901/261843.html','true',[],''],
		['PAGE','261864',jdecode('Pravljica%3A+JERICA'),jdecode(''),'/260901/261864.html','true',[],''],
		['PAGE','261885',jdecode('Pravljica%3A+SNEGULJ%C4%8CICA+IN+PAL%C4%8CKI'),jdecode(''),'/260901/261885.html','true',[],''],
		['PAGE','261906',jdecode('Pravljica%3A+OKOSTNJAK'),jdecode(''),'/260901/261906.html','true',[],''],
		['PAGE','261927',jdecode('Pravljica%3A+JEZDEC'),jdecode(''),'/260901/261927.html','true',[],''],
		['PAGE','261948',jdecode('Pravljica%3A+VETER+JE+SPIHAL+MOKO'),jdecode(''),'/260901/261948.html','true',[],''],
		['PAGE','261969',jdecode('Pesmi'),jdecode(''),'/260901/261969.html','true',[],''],
		['PAGE','263401',jdecode('Pripovedke+%22iz+son%C4%8Dne+strani%22'),jdecode(''),'/260901/263401.html','true',[],''],
		['PAGE','263901',jdecode('Pripovedki+iz+Jev%C5%A1%C4%8Dka'),jdecode(''),'/260901/263901.html','true',[],''],
		['PAGE','264401',jdecode('Pravljice+iz+Bene%C4%8Dije'),jdecode(''),'/260901/264401.html','true',[],''],
		['PAGE','265001',jdecode('Misli+o+nare%C4%8Dju%2C+u%C4%8Dni+na%C4%8Drt...'),jdecode(''),'/260901/265001.html','true',[],'']
	],''],
	['PAGE','56101',jdecode('Zgodovina+Idrskega+'),jdecode(''),'/56101/index.html','true',[ 
		['PAGE','15001',jdecode('Kratka+zgodovina+'),jdecode(''),'/56101/15001.html','true',[],''],
		['PAGE','174101',jdecode('Rudi+Berginc-%22Rudi+%C5%BDehu%22'),jdecode(''),'/56101/174101.html','true',[],''],
		['PAGE','56601',jdecode('Muzej+1915+-+1917'),jdecode(''),'/56101/56601.html','true',[],''],
		['PAGE','57901',jdecode('1.del-od+vojne+do+iger'),jdecode(''),'/56101/57901.html','true',[],''],
		['PAGE','171401',jdecode('2.del-med+1.in+2.+svet.vojno'),jdecode(''),'/56101/171401.html','true',[],''],
		['PAGE','64301',jdecode('3.del-od+smu%C4%8Danja+do+NNNP'),jdecode(''),'/56101/64301.html','true',[],''],
		['PAGE','73701',jdecode('4.del-od+snega+do+ko%C4%8De'),jdecode(''),'/56101/73701.html','true',[],''],
		['PAGE','78201',jdecode('5.del-od+potresa+do+obnove'),jdecode(''),'/56101/78201.html','true',[],''],
		['PAGE','81801',jdecode('6.del-od+5000+din+do+asfalta'),jdecode(''),'/56101/81801.html','true',[],''],
		['PAGE','93401',jdecode('7.del-od+poplav+do+soure'),jdecode(''),'/56101/93401.html','true',[],''],
		['PAGE','225401',jdecode('8.del-in+kako+je+danes%3F'),jdecode(''),'/56101/225401.html','true',[],'']
	],''],
	['PAGE','27501',jdecode('%C5%A0portne+aktivnosti'),jdecode(''),'/27501/index.html','true',[ 
		['PAGE','227601',jdecode('Tek+in+teka%C5%A1ke+priprave'),jdecode(''),'/27501/227601.html','true',[],''],
		['PAGE','158501',jdecode('Fusbal%3A+Idrsko'),jdecode(''),'/27501/158501.html','true',[],''],
		['PAGE','31201',jdecode('Kolesarstvo'),jdecode(''),'/27501/31201.html','true',[],''],
		['PAGE','51501',jdecode('Zimsko+veselje'),jdecode(''),'/27501/51501.html','true',[],'']
	],''],
	['PAGE','155901',jdecode('Album'),jdecode(''),'/155901.html','true',[],''],
	['PAGE','45201',jdecode('INFO+to%C4%8Dka'),jdecode(''),'/45201/index.html','true',[ 
		['PAGE','183401',jdecode('Foto+in+video%3AIdrsko'),jdecode(''),'/45201/183401.html','true',[],'']
	],''],
	['PAGE','208901',jdecode('Forum+-+debatna+stran'),jdecode(''),'/208901.html','true',[],''],
	['PAGE','27006',jdecode('Knjiga+gostov'),jdecode(''),'/27006/index.html','true',[ 
		['PAGE','27001',jdecode('Vpisi'),jdecode(''),'/27006/27001.html','true',[],'']
	],'']];
var siteelementCount=46;
theSitetree.topTemplateName='Instrument';
theSitetree.paletteFamily='7EAD73';
theSitetree.keyvisualId='6145';
theSitetree.keyvisualName='kv_6145.jpg';
theSitetree.fontsetId='20332';
theSitetree.graphicsetId='11932';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCDBCC';
var theTemplate={
				name: 			'Instrument',
				paletteFamily: 	'7EAD73',
				keyvisualId: 	'6145',
				keyvisualName: 	'kv_6145.jpg',
				fontsetId: 		'20332',
				graphicsetId: 	'11932',
				contentColor: 	'000000',
				contentBGColor: 'CCDBCC',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'2E6331',
				e_color: 		'2E6331',
				f_color: 		'2E6331',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '201401',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '27006',
internalId:  '27006asi010inx33f',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '27001',
internalId:  '27006asi010inx33f',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20120124-105729'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '155901',
internalId:  '10e0d26d68f',
customField: 'g.11o6ige2p.ruomgaugft.3o'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '183401',
internalId:  '11154a95c94',
customField: 'g.125aajeg4.mdsfh1a04d.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20120124-104234'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '208901',
internalId:  '',
customField: '20120103-112201'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49101',
internalId:  '',
customField: '20090107-100943'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20111219-123525'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '116401',
internalId:  '',
customField: '20120124-105111'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20120124-105026'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20090127-075900'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '56101',
internalId:  '',
customField: '20111014-114001'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20120124-105302'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '174101',
internalId:  '',
customField: '20070117-114240'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '56601',
internalId:  '',
customField: '20120124-105233'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '57901',
internalId:  '',
customField: '20111219-124122'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '171401',
internalId:  '',
customField: '20111219-123238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64301',
internalId:  '',
customField: '20061220-110502'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20111219-115446'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78201',
internalId:  '',
customField: '20111219-115547'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81801',
internalId:  '',
customField: '20111219-124732'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '93401',
internalId:  '',
customField: '20111219-115847'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20120124-105516'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '158501',
internalId:  '',
customField: '20101108-193328'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20101108-195415'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '51501',
internalId:  '',
customField: '20100301-000817'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '155901',
internalId:  '',
customField: '20100301-001352'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45201',
internalId:  '',
customField: '20120103-111306'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '183401',
internalId:  '',
customField: '20120103-112153'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27006',
internalId:  '',
customField: '20060125-104903'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27001',
internalId:  '',
customField: '20060125-104903'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '227601',
internalId:  '',
customField: '20111021-083712'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '236001',
internalId:  '',
customField: '20080805-234020'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '225401',
internalId:  '',
customField: '20120124-104531'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '260901',
internalId:  '',
customField: '20091220-171731'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261301',
internalId:  '',
customField: '20090529-134646'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261801',
internalId:  '',
customField: '20090529-134812'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261822',
internalId:  '',
customField: '20090529-134915'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261843',
internalId:  '',
customField: '20090529-135025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261864',
internalId:  '',
customField: '20090529-135122'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261885',
internalId:  '',
customField: '20090529-135236'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261906',
internalId:  '',
customField: '20090529-135339'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261927',
internalId:  '',
customField: '20090529-135438'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261948',
internalId:  '',
customField: '20090529-135548'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261969',
internalId:  '',
customField: '20090529-140209'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263401',
internalId:  '',
customField: '20090529-140636'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263901',
internalId:  '',
customField: '20090529-141024'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '264401',
internalId:  '',
customField: '20090529-141238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '265001',
internalId:  '',
customField: '20090529-142745'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASI010INX33F';
var companyName   = 'Idrsko+-+Mlinsko';
var htmlTitle	  = 'http%3A%2F%2Fwww.idrsko.si';
var metaKeywords  = 'Kobarid+So%C4%8Da+Idrsko+Matajur+Kolesarstvo+Kajak+Rafting+Kobarid++So%C4%8Da+Muzej+Jazbec+OPLAST+KRN+POSTRV+PADALSTVO+KUK+';
var metaContents  = 'KOBARID+SO%C4%8CA+KRN+IDRSKO++JAZBEC++Slovenija+MUZEJ++MATAJUR+VOJNA++KPK+OPLAST+POSTRV+ZGODOVINA+KOLO+ENDURO+PADALSTVO+';
					                                                                    
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 */					                                                            

