/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','4655',jdecode('Oinousses'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','11301',jdecode('General+Photographs'),jdecode(''),'/4655/11301.html','true',[],''],
		['PAGE','9966',jdecode('Satellite+Photograph'),jdecode(''),'/4655/9966.html','true',[],''],
		['PAGE','40262',jdecode('Oinoussian+Poetry'),jdecode(''),'/4655/40262.html','true',[],'']
	],''],
	['PAGE','48707',jdecode('Latest+News'),jdecode(''),'/48707.html','true',[],''],
	['PAGE','45041',jdecode('St+Nikolas+-+our+Patron'),jdecode(''),'/45041.html','true',[],''],
	['PAGE','43948',jdecode('World+Oinoussians'),jdecode(''),'/43948.html','true',[],''],
	['PAGE','4682',jdecode('Oinoussian+Activities'),jdecode(''),'/4682/index.html','true',[ 
		['PAGE','32109',jdecode('2004+Olympic+Torch+Relay'),jdecode(''),'/4682/32109.html','true',[],'']
	],''],
	['PAGE','42287',jdecode('Oinoussian+Announcements'),jdecode(''),'/42287/index.html','true',[ 
		['PAGE','42003',jdecode('Oinoussian+Properties'),jdecode(''),'/42287/42003.html','true',[],''],
		['PAGE','42827',jdecode('Oinoussian+Rooms+to+Let'),jdecode(''),'/42287/42827.html','true',[],''],
		['PAGE','42034',jdecode('Oinoussian+Jobs'),jdecode(''),'/42287/42034.html','true',[],''],
		['PAGE','42187',jdecode('Oinoussian+Births'),jdecode(''),'/42287/42187.html','true',[],''],
		['PAGE','42318',jdecode('Oinoussian+Achievements'),jdecode(''),'/42287/42318.html','true',[],''],
		['PAGE','42218',jdecode('Oinoussian+Civil+Unions'),jdecode(''),'/42287/42218.html','true',[],''],
		['PAGE','41907',jdecode('Oinoussian+Weddings'),jdecode(''),'/42287/41907.html','true',[],''],
		['PAGE','41941',jdecode('Oinoussian+Obituaries'),jdecode(''),'/42287/41941.html','true',[],''],
		['PAGE','48210',jdecode('Obituary+of+Cynthia+Pateras'),jdecode(''),'/42287/48210.html','true',[],'']
	],''],
	['PAGE','43546',jdecode('Oinoussai+III'),jdecode(''),'/43546.html','true',[],''],
	['PAGE','43020',jdecode('Oinoussian+Ferry+Boat+Schedule'),jdecode(''),'/43020.html','true',[],''],
	['PAGE','42065',jdecode('Oinoussian+Sports'),jdecode(''),'/42065/index.html','true',[ 
		['PAGE','36109',jdecode('A.+O.+PANOINOUSSIOS'),jdecode(''),'/42065/36109.html','true',[],'']
	],''],
	['PAGE','4736',jdecode('External+Links'),jdecode(''),'/4736.html','true',[],''],
	['PAGE','43507',jdecode('Oinoussian+Forum'),jdecode(''),'/43507.html','true',[],''],
	['PAGE','41659',jdecode('Guestbook'),jdecode(''),'/41659/index.html','true',[ 
		['PAGE','41660',jdecode('Read+Guestbook'),jdecode(''),'/41659/41660.html','true',[],'']
	],''],
	['PAGE','41207',jdecode('Contact'),jdecode(''),'/41207/index.html','true',[ 
		['PAGE','41640',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/41207/41640.html','false',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Stylus';
					                                                                    
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 */					                                                            

