/* [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','13701',jdecode('Unser+Zuhause%2F+our+home'),jdecode(''),'/13701.html','true',[],''],
	['PAGE','13712',jdecode('Kater%2F+Male'),jdecode(''),'/13712.html','true',[],''],
	['PAGE','47003',jdecode('K%C3%A4tzinnen%2F+Female'),jdecode(''),'/47003.html','true',[],''],
	['PAGE','15325',jdecode('Charakter+und+Standart'),jdecode(''),'/15325.html','true',[],''],
	['PAGE','15701',jdecode('Campari%60s+Galerie'),jdecode(''),'/15701.html','true',[],''],
	['PAGE','14601',jdecode('Babys+%21%21%21+Neues+Zuhause+gesucht+%21'),jdecode(''),'/14601.html','true',[],''],
	['PAGE','17602',jdecode('Kontakt%2FImpressum%2FAnfahrt'),jdecode(''),'/17602.html','true',[],''],
	['PAGE','13737',jdecode('Links'),jdecode(''),'/13737.html','true',[],''],
	['PAGE','18202',jdecode('G%C3%A4stebuch'),jdecode(''),'/18202/home.html','true',[ 
		['PAGE','18203',jdecode('Eintr%C3%A4ge'),jdecode(''),'/18202/18203.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='feiertag1';
theSitetree.paletteFamily='AAFFFF';
theSitetree.keyvisualId='9016';
theSitetree.keyvisualName='kv_9016.jpg';
theSitetree.fontsetId='17292';
theSitetree.graphicsetId='12700';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='94C2E9';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'feiertag1',
				paletteFamily: 	'AAFFFF',
				keyvisualId: 	'9016',
				keyvisualName: 	'kv_9016.jpg',
				fontsetId: 		'17292',
				graphicsetId: 	'12700',
				contentColor: 	'000000',
				contentBGColor: '94C2E9',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-11633128']={
webappId:    '1501',
documentId:  '13701',
internalId:  '11633128',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-18202atoix0inesqh']={
webappId:    '1002',
documentId:  '18202',
internalId:  '18202atoix0inesqh',
customField: 'action=form&icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '17602',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1002']=webappMappings['1002-18202atoix0inesqh']={
webappId:    '1002',
documentId:  '18203',
internalId:  '18202atoix0inesqh',
customField: 'action=list'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20110918-214822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13712',
internalId:  '',
customField: '20091113-212738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20110918-210530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15325',
internalId:  '',
customField: '20110228-213149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20110611-215644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17602',
internalId:  '',
customField: '20061003-202233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13737',
internalId:  '',
customField: '20100117-212917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18202',
internalId:  '',
customField: '20050420-200359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18203',
internalId:  '',
customField: '20060107-125919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47003',
internalId:  '',
customField: '20110918-215854'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INESQH';
var companyName   = 'Campari%60s+Devon+Rexe';
var htmlTitle	  = 'Devon+Rex+Zucht';
var metaKeywords  = 'Devon%2CDevon+Rex%2CKatzen%2CZucht%2CZ%C3%BCchter';
var metaContents  = 'Eine+kleine+Devon+Rex+Zucht+stellt+sich+vor.';
					                                                                    
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 */					                                                            

