/* [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','40966',jdecode('Home'),jdecode(''),'/40966.html','true',[],''],
	['PAGE','53701',jdecode('Aktuelles'),jdecode(''),'/53701.html','true',[],''],
	['PAGE','40975',jdecode('%C3%9Cber+uns'),jdecode(''),'/40975.html','true',[],''],
	['PAGE','42334',jdecode('Der+Do+Khyi'),jdecode(''),'/42334.html','true',[],''],
	['PAGE','55601',jdecode('A-litter'),jdecode(''),'/55601.html','true',[],''],
	['PAGE','46901',jdecode('Welpen'),jdecode(''),'/46901.html','true',[],''],
	['PAGE','40984',jdecode('Ciara'),jdecode(''),'/40984.html','true',[],''],
	['PAGE','42584',jdecode('Jaya'),jdecode(''),'/42584.html','true',[],''],
	['PAGE','43013',jdecode('Hayana'),jdecode(''),'/43013.html','true',[],''],
	['PAGE','42953',jdecode('Unser+Rudel'),jdecode(''),'/42953.html','true',[],''],
	['PAGE','42968',jdecode('Zangao+Meetings'),jdecode(''),'/42968.html','true',[],''],
	['PAGE','42815',jdecode('Ausstellungen'),jdecode(''),'/42815.html','true',[],''],
	['PAGE','41029',jdecode('Links'),jdecode(''),'/41029.html','true',[],''],
	['PAGE','41047',jdecode('Kontakt'),jdecode(''),'/41047.html','true',[],''],
	['PAGE','45075',jdecode('Impressum'),jdecode(''),'/45075.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='TOI_Freizeit_1';
theSitetree.paletteFamily='BEBDBD';
theSitetree.keyvisualId='10785';
theSitetree.keyvisualName='kv_10785.jpg';
theSitetree.fontsetId='31831';
theSitetree.graphicsetId='13624';
theSitetree.contentColor='DEDBDB';
theSitetree.contentBGColor='2A2A2A';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Freizeit_1',
				paletteFamily: 	'BEBDBD',
				keyvisualId: 	'10785',
				keyvisualName: 	'kv_10785.jpg',
				fontsetId: 		'31831',
				graphicsetId: 	'13624',
				contentColor: 	'DEDBDB',
				contentBGColor: '2A2A2A',
				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:  '40966',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40966',
internalId:  '',
customField: '20120112-131135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40984',
internalId:  '',
customField: '20081201-224954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40975',
internalId:  '',
customField: '20110223-123926'
};
webappMappings['7060']=webappMappings['7060-e865c7034a2cf90288b28cf27d9af5d6']={
webappId:    '7060',
documentId:  '55601',
internalId:  'e865c7034a2cf90288b28cf27d9af5d6',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20120129-214158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45075',
internalId:  '',
customField: '20081117-201238'
};
webappMappings['7060']=webappMappings['7060-32675d3bf5b56a30357cf651dfdb46a3']={
webappId:    '7060',
documentId:  '42968',
internalId:  '32675d3bf5b56a30357cf651dfdb46a3',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41029',
internalId:  '',
customField: '20120112-122633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41047',
internalId:  '',
customField: '20110205-135442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46901',
internalId:  '',
customField: '20120112-131258'
};
webappMappings['1008']=webappMappings['1008-28965694']={
webappId:    '1008',
documentId:  '41047',
internalId:  '28965694',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43013',
internalId:  '',
customField: '20100216-090511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55601',
internalId:  '',
customField: '20120112-131645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42334',
internalId:  '',
customField: '20071125-101252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42584',
internalId:  '',
customField: '20100825-105345'
};
webappMappings['7060']=webappMappings['7060-6aabca6ed0314ab913c1f7fad3f3f650']={
webappId:    '7060',
documentId:  '42953',
internalId:  '6aabca6ed0314ab913c1f7fad3f3f650',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42815',
internalId:  '',
customField: '20120129-214357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42953',
internalId:  '',
customField: '20070926-232225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42968',
internalId:  '',
customField: '20071104-210814'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7BKOX';
var companyName   = 'Do+Khyi+Kennel+Namtso';
var htmlTitle	  = 'Do+Khyi+Namtso';
var metaKeywords  = 'Do+Khyi%2C+Tibet+Mastiff%2C+Tibet+Dogge';
var metaContents  = 'Do+Khyi+WelpenAlles+%C3%BCber+unsere+Do+Khyi+Wir+sind+Z%C3%BCchter+im+KTR';
					                                                                    
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 */					                                                            

