/* [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','41095',jdecode('Willkommen'),jdecode(''),'/41095.html','true',[],''],
	['PAGE','40687',jdecode('Neue+B%C3%A4ren'),jdecode(''),'/40687.html','true',[],''],
	['PAGE','99201',jdecode('NEU%3A+Elfen'),jdecode(''),'/99201.html','true',[],''],
	['PAGE','109101',jdecode('NEU%3A+Hundepullover'),jdecode(''),'/109101.html','true',[],''],
	['PAGE','98801',jdecode('Dawanda-Shop'),jdecode(''),'/98801.html','true',[],''],
	['PAGE','40675',jdecode('Adoptiere+B%C3%A4ren'),jdecode(''),'/40675.html','true',[],''],
	['PAGE','41064',jdecode('Wie+war%C2%B4s+in+...'),jdecode(''),'/41064.html','true',[],''],
	['PAGE','105201',jdecode('Vermischtes'),jdecode(''),'/105201.html','true',[],''],
	['PAGE','39994',jdecode('Etwas+%C3%BCber+mich+'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40640',jdecode('meine+Tauschi%C2%B4s+'),jdecode(''),'/40640.html','true',[],''],
	['PAGE','75701',jdecode('Impressum'),jdecode(''),'/75701.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Roses02';
theSitetree.paletteFamily='657C21';
theSitetree.keyvisualId='11029';
theSitetree.keyvisualName='kv_11029.jpg';
theSitetree.fontsetId='32071';
theSitetree.graphicsetId='13762';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='657C21';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Roses02',
				paletteFamily: 	'657C21',
				keyvisualId: 	'11029',
				keyvisualName: 	'kv_11029.jpg',
				fontsetId: 		'32071',
				graphicsetId: 	'13762',
				contentColor: 	'FFFFFF',
				contentBGColor: '657C21',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '41095',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20110903-114142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40687',
internalId:  '',
customField: '20111114-105107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99201',
internalId:  '',
customField: '20110607-102004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105201',
internalId:  '',
customField: '20110823-094214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41095',
internalId:  '',
customField: '20111114-122932'
};
webappMappings['1007']=webappMappings['1007-117ad730596']={
webappId:    '1007',
documentId:  '40675',
internalId:  '117ad730596',
customField: 'g.12ummplhv.6b4tvsbq8j8.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40675',
internalId:  '',
customField: '20110325-101742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75701',
internalId:  '',
customField: '20080922-115436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41064',
internalId:  '',
customField: '20110607-105755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40640',
internalId:  '',
customField: '20110903-114029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98801',
internalId:  '',
customField: '20101013-181541'
};
webappMappings['1501']=webappMappings['1501-49792234']={
webappId:    '1501',
documentId:  '41095',
internalId:  '49792234',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109101',
internalId:  '',
customField: '20111114-124835'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IR1TL5';
var companyName   = 'Ein+Herzliches+Willkommen+bei+DerFlairB%C3%A4r%21';
var htmlTitle	  = 'DerFlairBaer+-+K%C3%BCnstlerb%C3%A4ren+von+Anke+B%C3%BCnger';
var metaKeywords  = '+Derflairbaer+-+Derflairb%C3%A4r+-+K%C3%BCnstlerteddy+-+K%C3%BCnstlerb%C3%A4r+-+Handgemachte+Teddys+-+Unikate+-+Unikat+-+OoaK+-+Sammlerteddys+-+B%C3%A4ren+-+B%C3%A4r+mit+Flair+';
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;                                                                     
	};                                                                               
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 */					                                                            

