/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','552',jdecode('NEWS'),jdecode(''),'/552.html','true',[],''],
	['PAGE','22001',jdecode('ABOUT+ME'),jdecode(''),'/22001.html','true',[],''],
	['PAGE','33301',jdecode('PUBLICATIONS'),jdecode(''),'/33301.html','true',[],''],
	['PAGE','594',jdecode('OTHERS+ABOUT+ME'),jdecode(''),'/594.html','true',[],''],
	['PAGE','5343',jdecode('FOR+STUDENTS'),jdecode(''),'/5343.html','true',[],''],
	['PAGE','42301',jdecode('PHOTOS'),jdecode(''),'/42301.html','true',[],''],
	['PAGE','33501',jdecode('VISITOR%26%23x27%3Bs+BOOK'),jdecode(''),'/33501.html','true',[],''],
	['PAGE','5364',jdecode('CONTACT'),jdecode(''),'/5364.html','true',[],''],
	['PAGE','42322',jdecode('LINKS'),jdecode(''),'/42322.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='978';
theSitetree.keyvisualName='adresskartei.jpg';
theSitetree.fontsetId='26793';
theSitetree.graphicsetId='197';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'NewYork',
				paletteFamily: 	'660000',
				keyvisualId: 	'978',
				keyvisualName: 	'adresskartei.jpg',
				fontsetId: 		'26793',
				graphicsetId: 	'197',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'660000',
				c_color: 		'000000',
				d_color: 		'990000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '22001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20081204-215455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20081204-222228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20081204-221751'
};
webappMappings['7060']=webappMappings['7060-609af7c61c7cbf233a76b2ac92d3a285']={
webappId:    '7060',
documentId:  '42301',
internalId:  '609af7c61c7cbf233a76b2ac92d3a285',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42322',
internalId:  '',
customField: '20081204-221003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42301',
internalId:  '',
customField: '20081204-215910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5343',
internalId:  '',
customField: '20081204-221545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5364',
internalId:  '',
customField: '20081204-214803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33301',
internalId:  '',
customField: '20081204-213116'
};
webappMappings['7008']=webappMappings['7008-814']={
webappId:    '7008',
documentId:  '5364',
internalId:  '814',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20081204-214230'
};
webappMappings['1002']=webappMappings['1002-33501ahpl10invl1g']={
webappId:    '1002',
documentId:  '33501',
internalId:  '33501ahpl10invl1g',
customField: 'icq=false'
};
var canonHostname = 'wsc0.home.net.pl';
var accountId     = 'AHPL10INVL1G';
var companyName   = 'DOMINIKA+LECKA+-+the+personal+site';
var htmlTitle	  = 'DOMINIKA+LECKA+-+the+personal+site';
var metaKeywords  = 'Krawczinska%2C+Dominika%2C+%C5%81%C4%99cka%2C+dziecko%2C+dzieci%2C+nauczyciel%2Cszko%C5%82a%2C+MEN%2C+edukacja%2C+terapia%2C+psychoterapia%2C+systemowa%2C+ma%C5%82%C5%BCe%C5%84stwo%2C+pracownia%2C+pedagogika%2C+socjologia%2C+alternatywa%2C+krawczinska%2C+Toru%C5%84%2C+poradnia%2C+doradztwo%2C+k%C5%82opot%2C+pomoc%2C+rozmowa%2C+rozw%C3%B3j%2C+rodzice%2C+choroba%2C+zdrowie%2C+terapia%2C+coatching%2C+ngo%2C+ewaluacja%2C+badania%2C+on-line%2C+m%C5%82odzie%C5%BC%2C+doro%C5%9Bli%2C+rodzina%2C+instytucje%2C+problem%2C+uzale%C5%BCnienie%2C+komputer%2C+kom%C3%B3rka%2C+UMK%2C+problem';
var metaContents  = 'Pracownia+Pedagogiczno-Socjologiczna+ALTERNATYWA+zosta%C5%82a+utworzona+z+my%C5%9Bl%C4%85+o++ludziach+i+dla+ludzi+w+problemie%2C+ale+tak%C5%BCe+chc%C4%85cych+rozwija%C4%87+si%C4%99.+Pracownia+%C5%82%C5%82%C4%85czy+w+sobie+do%C5%9Bwiadczenia+pedagogiczne+z+socjologicznymi+opartymi+na+my%C5%9Bleniu+systemowym.+Pracownicy+zrzeszeni+w+Polskiej+Federacji+Psychoterapii+gwarantuj%C4%85+wysoki+poziom+us%C5%82ug+oraz+poufno%C5%9B%C4%87+zgodnie+ze+standardami%2C+kt%C3%B3re+obowi%C4%85zuj%C4%85+osoby+pomagaj%C4%85ce+innym.+Zapraszamy+do+zapoznania+si%C4%99+z+ofert%C4%85+Pracowni.';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            

