/* [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','13765',jdecode('Home'),jdecode(''),'/13765.html','true',[],''],
	['PAGE','13771',jdecode('Mein+Zuhause'),jdecode(''),'/13771.html','true',[],''],
	['PAGE','13781',jdecode('Meine+Kinder'),jdecode(''),'/13781.html','true',[],''],
	['PAGE','13776',jdecode('Meine+Urkunden'),jdecode(''),'/13776.html','true',[],''],
	['PAGE','14015',jdecode('Bilder'),jdecode(''),'/14015.html','true',[],''],
	['PAGE','13786',jdecode('Kontakt'),jdecode(''),'/13786.html','true',[],''],
	['PAGE','14020',jdecode('Links'),jdecode(''),'/14020.html','true',[],''],
	['PAGE','14102',jdecode('G%C3%A4stebuch'),jdecode(''),'/14102/home.html','true',[ 
		['PAGE','14103',jdecode('Eintr%C3%A4ge'),jdecode(''),'/14102/14103.html','true',[],'']
	],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Roadsign';
theSitetree.paletteFamily='FBFDC7';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10741';
theSitetree.graphicsetId='10497';
theSitetree.contentColor='663300';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Roadsign',
				paletteFamily: 	'FBFDC7',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10741',
				graphicsetId: 	'10497',
				contentColor: 	'663300',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'666666',
				e_color: 		'999999',
				f_color: 		'663300',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-14102atoix0ine2x3']={
webappId:    '1002',
documentId:  '14102',
internalId:  '14102atoix0ine2x3',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-14102atoix0ine2x3']={
webappId:    '1002',
documentId:  '14103',
internalId:  '14102atoix0ine2x3',
customField: 'action=list'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13765',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-14783049']={
webappId:    '1501',
documentId:  '13765',
internalId:  '14783049',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13765',
internalId:  '',
customField: '20080130-214717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13781',
internalId:  '',
customField: '20080220-124104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13771',
internalId:  '',
customField: '20050608-141648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13776',
internalId:  '',
customField: '20050602-113114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14015',
internalId:  '',
customField: '20050610-115858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13786',
internalId:  '',
customField: '20050602-120730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14020',
internalId:  '',
customField: '20050602-131345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14102',
internalId:  '',
customField: '20050608-132207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14103',
internalId:  '',
customField: '20050519-122759'
};
var canonHostname = 'cfawrk09.aul.t-online.de';
var accountId     = 'ATOIX0INE2X3';
var companyName   = 'Cora+vom+Tannzapfenland';
var htmlTitle	  = '';
var metaKeywords  = 'M%C3%BCnsterl%C3%A4nderin+Welpen+Bayern+Maisachauen+Tannzapfenland+Zucht';
var metaContents  = '';
					                                                                    
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 */					                                                            

