/* [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','39994',jdecode('Was+biete+ich+an%3F'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41348',jdecode('Mit+wem+haben+Sie+zu+tun%3F'),jdecode(''),'/41348.html','true',[],''],
	['PAGE','41367',jdecode('Kontakt+%2F+Impressum'),jdecode(''),'/41367.html','true',[],'']];
var siteelementCount=3;
theSitetree.topTemplateName='TOI_Business_2';
theSitetree.paletteFamily='1A4424';
theSitetree.keyvisualId='10768';
theSitetree.keyvisualName='kv_10768.jpg';
theSitetree.fontsetId='31826';
theSitetree.graphicsetId='13615';
theSitetree.contentColor='0E0F0F';
theSitetree.contentBGColor='fdfdfd';
var theTemplate={
				name: 			'TOI_Business_2',
				paletteFamily: 	'1A4424',
				keyvisualId: 	'10768',
				keyvisualName: 	'kv_10768.jpg',
				fontsetId: 		'31826',
				graphicsetId: 	'13615',
				contentColor: 	'0E0F0F',
				contentBGColor: 'fdfdfd',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20070909-180157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41348',
internalId:  '',
customField: '20070909-215414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41367',
internalId:  '',
customField: '20070908-232411'
};
webappMappings['1501']=webappMappings['1501-39523274']={
webappId:    '1501',
documentId:  '39994',
internalId:  '39523274',
customField: '1501'
};
var canonHostname = 'cfawrk07.aul.t-online.de';
var accountId     = 'ATOIX0I7ZLBY';
var companyName   = 'Willkommen+bei+call-and-connect.de';
var htmlTitle	  = 'call-and-connect.de';
var metaKeywords  = 'callandconnect+call-connect+call+and+connect++callconnect+call-and-connect+Telefonakquise+Kundenbetreuung+Freizeit+gestalten+Menschen+verbinden+gemeinsam+erleben';
var metaContents  = 'You+call+and+we+talk+-+Menschen+verbindenWillkommen+bei+call-and-connect.de+%2F+Nach+Auftrag+manches+anbieten%2C+Menschen+erreichen%2C+M%C3%B6gliches+bewegen.+Kundenbetreuung%2C+Kundenakquise%2C+Freizeitgestaltung%2C+Freizeit+organisieren%2C+Projektarbeit';
					                                                                    
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 */					                                                            
