/* [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('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','2001',jdecode('O+kancelarii'),jdecode(''),'/2001/index.html','true',[ 
		['PAGE','2022',jdecode('Zakres+us%C5%82ug'),jdecode(''),'/2001/2022.html','true',[],''],
		['PAGE','2801',jdecode('Klienci'),jdecode(''),'/2001/2801.html','true',[],'']
	],''],
	['PAGE','2043',jdecode('O+mnie'),jdecode(''),'/2043.html','true',[],''],
	['PAGE','2106',jdecode('Polecane+strony'),jdecode(''),'/2106.html','true',[],''],
	['PAGE','2127',jdecode('Kontakt'),jdecode(''),'/2127/index.html','true',[ 
		['PAGE','2822',jdecode('Wype%C5%82nij+formularz'),jdecode(''),'/2127/2822.html','true',[],'']
	],''],
	['PAGE','1906',jdecode('Ksi%C4%99ga+go%C5%9Bci'),jdecode(''),'/1906/index.html','true',[ 
		['PAGE','1901',jdecode('Zobacz+Ksi%C4%99g%C4%99+go%C5%9Bci'),jdecode(''),'/1906/1901.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Proton';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='3533';
theSitetree.keyvisualName='kv_3533.jpg';
theSitetree.fontsetId='27417';
theSitetree.graphicsetId='10827';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Proton',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'3533',
				keyvisualName: 	'kv_3533.jpg',
				fontsetId: 		'27417',
				graphicsetId: 	'10827',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'747474',
				e_color: 		'864242',
				f_color: 		'A9A9A9',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20070812-061422'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '1906',
internalId:  '1906ahpl10in3at6',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '1901',
internalId:  '1906ahpl10in3at6',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20070812-060148'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2022',
internalId:  '',
customField: '20070812-060245'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2043',
internalId:  '',
customField: '20070812-060451'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20070812-054203'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '2822',
internalId:  '10428589',
customField: 'pl:PL:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2106',
internalId:  '',
customField: '20070812-024054'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2127',
internalId:  '',
customField: '20070812-055749'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1906',
internalId:  '',
customField: '20070812-023605'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20070812-023838'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '2822',
internalId:  '',
customField: '20070812-023906'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'wsc1.home.net.pl';
var accountId     = 'AHPL10IN3AT6';
var companyName   = 'awi.kancelaria';
var htmlTitle	  = 'awi.kancelaria+Arkadiusz+T.+Wierzbicki+Doradztwo+Prawne+i+Konsulting';
var metaKeywords  = 'kancelaria+prawna%2C+kancelaria+prawnicza%2C+kancelaria%2C+prawnik%2C+Arkadiusz+Wierzbicki%2C+kancelaria+warszawa%2C+warszawa%2C+kancelaria+prawna+warszawa%2C+kancelaria+prawnicza+warszawa%2C+prawnik+warszawa%2C+prawo+warszawa%2C+doradztwo+prawne+warszawa%2C+porada+prawna+warszawa%2C+doradztwo%2C+porada%2C+prawo%2C+doradztwo+prawne%2C+porady+prawne%2C+porada+prawna%2C+Wierzbicki%2C+Arkadiusz+T.+Wierzbicki%2C+Arek+Wierzbicki%2C+awi.kancelaria%2C+awi%2C+awi+kancelaria%2C+awi.%2C+awikancelaria%2C+Salans%2C+law+office%2C+law%2C+legal%2C+legal+advice';
var metaContents  = 'Strona+warszawskiej+kancelarii+prawniczej+awi.kancelaria+Arkadiusz+T.+Wierzbicki+Doradztwo+Prawne+i+Konsulting';
					                                                                    
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 */					                                                            

