/* [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','13801',jdecode('Home'),jdecode(''),'/13801.html','true',[],''],
	['PAGE','13807',jdecode('Unser+Angebot'),jdecode(''),'/13807/home.html','true',[ 
		['PAGE','13812',jdecode('Gebrauchtmaschinen'),jdecode(''),'/13807/13812.html','true',[],'']
	],''],
	['PAGE','13817',jdecode('Unser+Service'),jdecode(''),'/13817/home.html','true',[ 
		['PAGE','19801',jdecode('Finanzierung'),jdecode(''),'/13817/19801.html','true',[],'']
	],''],
	['PAGE','13822',jdecode('Kontakt'),jdecode(''),'/13822.html','true',[],''],
	['PAGE','13827',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/13827/home.html','true',[ 
		['PAGE','13832',jdecode('So+finden+Sie+uns'),jdecode(''),'/13827/13832.html','true',[],'']
	],''],
	['PAGE','13847',jdecode('Impressum'),jdecode(''),'/13847.html','true',[],''],
	['PAGE','19402',jdecode('Anfahrt'),jdecode(''),'/19402.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Popart';
theSitetree.paletteFamily='2F8A3B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10345';
theSitetree.graphicsetId='10455';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='D8D3D3';
var theTemplate={
				name: 			'Popart',
				paletteFamily: 	'2F8A3B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10345',
				graphicsetId: 	'10455',
				contentColor: 	'000000',
				contentBGColor: 'D8D3D3',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '19402',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20071111-161127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13807',
internalId:  '',
customField: '20071111-161345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13817',
internalId:  '',
customField: '20071111-161526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19801',
internalId:  '',
customField: '20071111-163021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19402',
internalId:  '',
customField: '20071111-164304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13827',
internalId:  '',
customField: '20071111-180656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13812',
internalId:  '',
customField: '20050704-210913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13822',
internalId:  '',
customField: '20050704-215225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13832',
internalId:  '',
customField: '20050704-215913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13847',
internalId:  '',
customField: '20050704-220026'
};
var canonHostname = 'cfawrk05.aul.t-online.de';
var accountId     = 'ATOIX0IN35TB';
var companyName   = 'Link+GbR+Tel.06667%2F919292+R.+Link+0171%2F6536528+T.+Link+0160%2F97520786';
var htmlTitle	  = 'Link+GbR+Land-+und+Baumaschinen';
var metaKeywords  = 'Fendt%2CJohn+Deere%2CUnimog%2CMB-trac%2CCase%2CIHC%2CSame%2CLamborghini%2CH%C3%BCrlimann%2CDeutz%2CClaas%2CNew+Holland%2CFord%2CFiat%2CBelarus%2CAtlas%2CZettelmeyer%2CO%26k%2CLiebherr%2CSchaeff%2CZeppelin%2CCaterpillar%2CMF%2CValtra%2CValmet%2CMercedes%2CSteyr%2CGebrauchtmaschinen%2CTraktoren%2CSchlepper%2CBaumaschinen+';
var metaContents  = 'An-+und+Verkauf+gebrauchter+Land-+und+Baumaschinen.+Immer+ca.+70+gebrauchte+Maschinen+auf+Lager.+Alle+Fabrikate.+Auch+Unfall%2FBrandsch%C3%A4den+und+Schlachtmaschinen.';
					                                                                    
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 */					                                                            

