/* [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('Powitanie'),jdecode(''),'/301.html','true',[],''],
	['PAGE','352',jdecode('O+mnie'),jdecode(''),'/352.html','true',[],''],
	['PAGE','499',jdecode('Kontakt'),jdecode(''),'/499.html','true',[],''],
	['PAGE','8001',jdecode('Historia+rachunkowo%C5%9Bci'),jdecode(''),'/8001.html','true',[],''],
	['PAGE','8022',jdecode('Moja+oferta'),jdecode(''),'/8022.html','true',[],''],
	['PAGE','24401',jdecode('Przyk%C5%82adowe+pliki'),jdecode(''),'/24401.html','true',[],''],
	['PAGE','9906',jdecode('Ksi%C4%99ga+go%C5%9Bci'),jdecode(''),'/9906/index.html','true',[ 
		['PAGE','9901',jdecode('Czytaj+Ksi%C4%99ga+go%C5%9Bci'),jdecode(''),'/9906/9901.html','true',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Dispose';
theSitetree.paletteFamily='718DF8';
theSitetree.keyvisualId='9693';
theSitetree.keyvisualName='kv_9693.gif';
theSitetree.fontsetId='27670';
theSitetree.graphicsetId='11186';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCACA';
var theTemplate={
				name: 			'Dispose',
				paletteFamily: 	'718DF8',
				keyvisualId: 	'9693',
				keyvisualName: 	'kv_9693.gif',
				fontsetId: 		'27670',
				graphicsetId: 	'11186',
				contentColor: 	'000000',
				contentBGColor: 'CCCACA',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1008']={
webappId:    '1008',
documentId:  '301',
internalId:  '5317471',
customField: 'pl:PL:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '9906',
internalId:  '9906ahpl20ine0an',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '9901',
internalId:  '9906ahpl20ine0an',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20070510-203000'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '352',
internalId:  '',
customField: '20070527-140122'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '499',
internalId:  '',
customField: '20070722-123151'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20070731-201610'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20070218-122305'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8022',
internalId:  '',
customField: '20070527-011712'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9906',
internalId:  '',
customField: '20070218-130924'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20070218-130924'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL20INE0AN';
var companyName   = 'Troszk%C4%99+o+mnie+i+mojej+pracy';
var htmlTitle	  = 'Analizy+finansowe';
var metaKeywords  = 'Analizy+finansowe%2C+rachunkowo%C5%9B%C4%87+finansowa%2C+rachunkowo%C5%9B%C4%87+zarz%C4%85dcza%2Cfinanse%2C+Analiza+finansowa%2C+Analiza+sprawozda%C5%84+finansowych%2C+biznes+plan%2C+biznes+plany%2C+Business+plan+dla+ka%C5%BCdego%2C+dla+firm+ma%C5%82ych+i+du%C5%BCych';
var metaContents  = 'Analizy+finansowe%2C+rachunkowo%C5%9B%C4%87+finansowa%2C+rachunkowo%C5%9B%C4%87+zarz%C4%85dcza%2Cfinanse%2C+Analiza+finansowa%2C+Analiza+sprawozda%C5%84+finansowych%2C+biznes+plan%2C+biznes+plany%2C+Business+plan+dla+ka%C5%BCdego%2C+dla+firm+ma%C5%82ych+i+du%C5%BCych';
					                                                                    
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 */					                                                            
