/* [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('Domov'),jdecode(''),'/301.html','true',[],''],
	['PAGE','1801',jdecode('O+nas'),jdecode(''),'/1801.html','true',[],''],
	['PAGE','1822',jdecode('Novice'),jdecode(''),'/1822.html','true',[],''],
	['PAGE','1843',jdecode('Prodajni+program'),jdecode(''),'/1843/index.html','true',[ 
		['PAGE','1885',jdecode('Nahrbtniki'),jdecode(''),'/1843/1885.html','true',[],''],
		['PAGE','1948',jdecode('Planinski+%C4%8Devlji+in+plezalke'),jdecode(''),'/1843/1948.html','true',[],''],
		['PAGE','1969',jdecode('Spalne+vre%C4%8De'),jdecode(''),'/1843/1969.html','true',[],''],
		['PAGE','11501',jdecode('Knjige+in+priro%C4%8Dniki'),jdecode(''),'/1843/11501.html','true',[],''],
		['PAGE','11522',jdecode('Obla%C4%8Dila'),jdecode(''),'/1843/11522.html','true',[],''],
		['PAGE','2011',jdecode('Ostalo'),jdecode(''),'/1843/2011.html','true',[],''],
		['PAGE','11543',jdecode('Darilni+boni'),jdecode(''),'/1843/11543.html','true',[],'']
	],''],
	['PAGE','2032',jdecode('Priljubljene+Povezave'),jdecode(''),'/2032.html','true',[],''],
	['PAGE','11564',jdecode('Kontakt'),jdecode(''),'/11564.html','true',[],''],
	['PAGE','14501',jdecode('K2+album'),jdecode(''),'/14501.html','true',[],''],
	['PAGE','18401',jdecode('%C5%BDivali'),jdecode(''),'/18401.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Porto';
theSitetree.paletteFamily='999EFF';
theSitetree.keyvisualId='6735';
theSitetree.keyvisualName='kv_6735.jpg';
theSitetree.fontsetId='20482';
theSitetree.graphicsetId='12019';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='999EFF';
var theTemplate={
				name: 			'Porto',
				paletteFamily: 	'999EFF',
				keyvisualId: 	'6735',
				keyvisualName: 	'kv_6735.jpg',
				fontsetId: 		'20482',
				graphicsetId: 	'12019',
				contentColor: 	'FFFFFF',
				contentBGColor: '999EFF',
				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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100804-123031'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20100804-120101'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1822',
internalId:  '',
customField: '20111020-085425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1843',
internalId:  '',
customField: '20100711-130437'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1885',
internalId:  '',
customField: '20110215-081811'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11543',
internalId:  '',
customField: '20100804-121926'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11522',
internalId:  '',
customField: '20100701-141009'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1948',
internalId:  '',
customField: '20100629-215929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1969',
internalId:  '',
customField: '20100711-130959'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20100818-193057'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2011',
internalId:  '',
customField: '20100701-142357'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2032',
internalId:  '',
customField: '20100806-112435'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11564',
internalId:  '',
customField: '20100711-131505'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '301',
internalId:  '5888887',
customField: '1501'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '14501',
internalId:  '12992a93886',
customField: 'g.1569adm0o.74usecr80.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14501',
internalId:  '',
customField: '20100702-121925'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '18401',
internalId:  '129c1494ce2',
customField: 'g.1570kcnsd.rmr18gfjga.3o'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20100711-133920'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASIO10IN2F3N';
var companyName   = 'K2+ALPINIST';
var htmlTitle	  = 'http%3A%2F%2Fwww.k2-alpinist.si';
var metaKeywords  = 'k2%2Calpinist%2Ckid+comfort%2Cdeuter%2Cabs%2Cregata%2Cgore%2Cvreme%2Cnahrbtnik%2Cspalne+vre%C4%8De%2Canoraki%2Ctermoflisi%2Cplaninski+%C4%8Devlji%2C+plezalke%2Cotro%C5%A1ka+nosila%2Cannapurna';
var metaContents  = 'ANNAPURNA+d.o.o.+-+Trgovina+K2+ALPINIST';
					                                                                    
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 */					                                                            

