/* [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','218255',jdecode('O+PODJETJU'),jdecode(''),'/218255.html','true',[],''],
	['PAGE','219034',jdecode('KONTAKT'),jdecode(''),'/219034/index.html','true',[ 
		['PAGE','261134',jdecode('Prodajna+mre%C5%BEa'),jdecode(''),'/219034/261134.html','true',[],'']
	],''],
	['PAGE','261934',jdecode('PROGRAM+ZA+PODJETJA'),jdecode(''),'/261934/index.html','true',[ 
		['PAGE','262234',jdecode('Predpranje'),jdecode(''),'/261934/262234.html','true',[],''],
		['PAGE','262255',jdecode('Ro%C4%8Dno+pranje'),jdecode(''),'/261934/262255.html','true',[],''],
		['PAGE','262276',jdecode('Avtomatske+avtopralnice'),jdecode(''),'/261934/262276.html','true',[],''],
		['PAGE','262934',jdecode('%C4%8Ci%C5%A1%C4%8Denje+plati%C5%A1%C4%8D'),jdecode(''),'/261934/262934.html','true',[],''],
		['PAGE','262955',jdecode('Zunanji+premazi'),jdecode(''),'/261934/262955.html','true',[],''],
		['PAGE','262976',jdecode('Notranje+%C4%8Di%C5%A1%C4%8Denje'),jdecode(''),'/261934/262976.html','true',[],''],
		['PAGE','262997',jdecode('Nega+avtopralnic'),jdecode(''),'/261934/262997.html','true',[],'']
	],''],
	['PAGE','263018',jdecode('PROGRAM+HOBBY'),jdecode(''),'/263018.html','true',[],''],
	['PAGE','270834',jdecode('OPREMA+IN+DODATKI'),jdecode(''),'/270834.html','true',[],''],
	['PAGE','263039',jdecode('AUTOMAGIC'),jdecode(''),'/263039/index.html','true',[ 
		['PAGE','272734',jdecode('RISK+FREE+SISTEM'),jdecode(''),'/263039/272734.html','true',[],'']
	],''],
	['PAGE','263060',jdecode('MARINE+MAGIC'),jdecode(''),'/263060.html','true',[],''],
	['PAGE','263081',jdecode('SCHOLL+CONCEPTS'),jdecode(''),'/263081.html','true',[],''],
	['PAGE','263102',jdecode('VIKAN'),jdecode(''),'/263102.html','true',[],''],
	['PAGE','263144',jdecode('AVTOPRALNICE'),jdecode(''),'/263144.html','true',[],''],
	['PAGE','263165',jdecode('NANOTEHNOLOGIJA'),jdecode(''),'/263165.html','true',[],''],
	['PAGE','283334',jdecode('POPRAVILO+IN+NEGA+USNJA'),jdecode(''),'/283334.html','true',[],''],
	['PAGE','263186',jdecode('VARNOSTNI+LISTI'),jdecode(''),'/263186/index.html','true',[ 
		['PAGE','263207',jdecode('Fraber+profi'),jdecode(''),'/263186/263207.html','true',[],''],
		['PAGE','263228',jdecode('Fraber+hobby'),jdecode(''),'/263186/263228.html','true',[],''],
		['PAGE','263249',jdecode('Automagic'),jdecode(''),'/263186/263249.html','true',[],''],
		['PAGE','279534',jdecode('Marine+magic'),jdecode(''),'/263186/279534.html','true',[],''],
		['PAGE','263270',jdecode('Scholl+'),jdecode(''),'/263186/263270.html','true',[],'']
	],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Stars';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='19592';
theSitetree.graphicsetId='10916';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Stars',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'19592',
				graphicsetId: 	'10916',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '218255',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '218255',
internalId:  '1501',
customField: '1501'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '218255',
internalId:  '1083001',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261134',
internalId:  '',
customField: '20110509-191857'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '261934',
internalId:  '',
customField: '20110510-142639'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '283334',
internalId:  '',
customField: '20120115-122926'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263165',
internalId:  '',
customField: '20110510-222528'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263207',
internalId:  '',
customField: '20110614-103353'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263228',
internalId:  '',
customField: '20110613-132215'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263249',
internalId:  '',
customField: '20110808-195749'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263270',
internalId:  '',
customField: '20110614-110025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '270834',
internalId:  '',
customField: '20110510-141623'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '279534',
internalId:  '',
customField: '20110614-111515'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263186',
internalId:  '',
customField: '20110614-102726'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '262234',
internalId:  '',
customField: '20110510-104225'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '262255',
internalId:  '',
customField: '20110510-105217'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '262276',
internalId:  '',
customField: '20110510-110106'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '262934',
internalId:  '',
customField: '20110510-111658'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '262955',
internalId:  '',
customField: '20110510-133904'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '262976',
internalId:  '',
customField: '20110512-152012'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '262997',
internalId:  '',
customField: '20110510-133509'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263018',
internalId:  '',
customField: '20110512-155504'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263039',
internalId:  '',
customField: '20110510-161930'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263060',
internalId:  '',
customField: '20110509-195549'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263081',
internalId:  '',
customField: '20110509-194413'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263102',
internalId:  '',
customField: '20110509-193109'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '272734',
internalId:  '',
customField: '20110510-161851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '263144',
internalId:  '',
customField: '20110509-193109'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '218255',
internalId:  '',
customField: '20110510-222255'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '219034',
internalId:  '',
customField: '20110510-090559'
};
var canonHostname = 'virgo.siol.net';
var accountId     = 'ASI010IN2CCY';
var companyName   = 'Klemen+%26+Donna+AVTOKOZMETIKA';
var htmlTitle	  = 'Klemen++Donna+d.o.o.%2C+prodaja+in+distribucija+avtokozmetike+FRABER';
var metaKeywords  = 'fraber%2C+fra-ber%2C+fra+ber%2C+avtokozmetika%2C+automagic%2C+autokozmetika%2C+poliranje%2C+puki%2C+mafra%2C+daerg%2C+samopostre%C5%BEne+avtopralnice%2C+avtopralnice%2C+autopralnice%2C+klemendonna%2C+klemen++donna%2C+klemen++donna%2C+mo%C4%8Dnik+matja%C5%BE%2C+matja%C5%BE%2C+zeljarska%2C+ljubljana%2C+poliranje%2C+mobicool%2C+mobi+cool%2C+';
var metaContents  = 'Klemen++Donna+se+ukvarja+s+prodajo+avtokozmetike%2C+sredstva+za+avtopralnice%2C+samopostre%C5%BEne+avtopralnice%2C+sredstva+za+poliranje+avtomobilov%2C+paste%2C+kreme%2C+fraber%2C+fra-ber%2C+fra+ber%2C+avtokozmetika%2C+automagic%2C+autokozmetika%2C+poliranje%2C+puki%2C+mafra%2C+daerg%2C+samopostre%C5%BEne+avtopralnice%2C+avtopralnice%2C+autopralnice%2C+klemendonna%2C+klemen++donna%2C+klemen++donna%2C+mo%C4%8Dnik+matja%C5%BE%2C+matja%C5%BE%2C+zeljarska%2C+ljubljana%2C+poliranje%2C+mobicool%2C+mobi+cool%2C+';
					                                                                    
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 */					                                                            

