/* [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','42423',jdecode('Startseite'),jdecode(''),'/42423.html','true',[],''],
	['PAGE','42643',jdecode('Technische+Daten'),jdecode(''),'/42643.html','true',[],''],
	['PAGE','42432',jdecode('Mietpreise%2F+-bedingungen'),jdecode(''),'/42432/home.html','true',[ 
		['PAGE','42441',jdecode('Segway+for+fun'),jdecode(''),'/42432/42441.html','true',[],''],
		['PAGE','42450',jdecode('Segway+for+business'),jdecode(''),'/42432/42450.html','true',[],''],
		['PAGE','42459',jdecode('Segway+for+advertising'),jdecode(''),'/42432/42459.html','true',[],'']
	],''],
	['PAGE','42526',jdecode('Kontakt'),jdecode(''),'/42526.html','true',[],''],
	['PAGE','42766',jdecode('G%C3%A4stebuch'),jdecode(''),'/42766/home.html','true',[ 
		['PAGE','42765',jdecode('Eintr%C3%A4ge'),jdecode(''),'/42766/42765.html','true',[],'']
	],''],
	['PAGE','42486',jdecode('Impressum%2F+AGB'),jdecode(''),'/42486.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='006633';
theSitetree.keyvisualId='1362';
theSitetree.keyvisualName='motorrad.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='280';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'006633',
				keyvisualId: 	'1362',
				keyvisualName: 	'motorrad.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'280',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'006633',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-42766atoix0i7z8aq']={
webappId:    '1002',
documentId:  '42765',
internalId:  '42766atoix0i7z8aq',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42766',
internalId:  '',
customField: '20070830-234234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42423',
internalId:  '',
customField: '20090303-123438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42432',
internalId:  '',
customField: '20071217-214714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42441',
internalId:  '',
customField: '20070914-223005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42450',
internalId:  '',
customField: '20071217-212921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42459',
internalId:  '',
customField: '20070914-222813'
};
webappMappings['1002']=webappMappings['1002-42766atoix0i7z8aq']={
webappId:    '1002',
documentId:  '42766',
internalId:  '42766atoix0i7z8aq',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42486',
internalId:  '',
customField: '20071217-215451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42526',
internalId:  '',
customField: '20070830-014922'
};
webappMappings['1008']=webappMappings['1008-37962102']={
webappId:    '1008',
documentId:  '42526',
internalId:  '37962102',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42643',
internalId:  '',
customField: '20071217-213310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42765',
internalId:  '',
customField: '20070830-234234'
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '42459',
internalId:  '',
customField: ''
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '42450',
internalId:  '',
customField: ''
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '42441',
internalId:  '',
customField: ''
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7Z8AQ';
var companyName   = 'WWW.SEGRENT.DE+++bewegt...';
var htmlTitle	  = 'www.segrent.de+bewegt...';
var metaKeywords  = 'SEGRENT%2C+mieten%2C+leihen%2C+Sport%2C+Segway%2C+i2%2C+Fortbewegung%2C+Photovoltaik%2C+Event%2C+Parcour%2C+Messe%2C+Bielefeld%2C+Party%2C+lustig%2C+fun%2C+Feier%2C+Betriebsfeier%2C+Veranstaltung%2C+Werbung%2C+Werbefl%C3%A4che%2C+innovativ%2C+Sierksdorfer+Stra%C3%9Fe%2C+Heepen%2C+Geschenkgutschein%2C+Geschenk';
var metaContents  = 'Willkommen+bei+Ihrem+Vermietungsportal+fuer+Elektro-Fahrzeuge.+Derzeit+vermieten+wir+ausschliesslich+die+Segway+Personen-Transporter+%28PT%29+i2.';
					                                                                    
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 */					                                                            

