/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','156601',jdecode('Unternehmen+Anifit'),jdecode(''),'/156601.html','true',[],''],
	['PAGE','157801',jdecode('Anifit+Qualit%C3%A4t'),jdecode(''),'/157801.html','true',[],''],
	['PAGE','157701',jdecode('Katzennahrung'),jdecode(''),'/157701.html','true',[],''],
	['PAGE','157722',jdecode('Hundenahrung'),jdecode(''),'/157722.html','true',[],''],
	['PAGE','41709',jdecode('Testessen'),jdecode(''),'/41709.html','true',[],''],
	['PAGE','155501',jdecode('Boris+Erfahrung'),jdecode(''),'/155501.html','true',[],''],
	['PAGE','154301',jdecode('Wissenswertes'),jdecode(''),'/154301.html','true',[],''],
	['PAGE','129801',jdecode('Branchenbuch'),jdecode(''),'/129801.html','true',[],''],
	['PAGE','41718',jdecode('Impressum'),jdecode(''),'/41718.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Bombay';
theSitetree.paletteFamily='8B0B22';
theSitetree.keyvisualId='7533';
theSitetree.keyvisualName='kv_7533.jpg';
theSitetree.fontsetId='16582';
theSitetree.graphicsetId='12199';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='AEC6B8';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bombay',
				paletteFamily: 	'8B0B22',
				keyvisualId: 	'7533',
				keyvisualName: 	'kv_7533.jpg',
				fontsetId: 		'16582',
				graphicsetId: 	'12199',
				contentColor: 	'000000',
				contentBGColor: 'AEC6B8',
				a_color: 		'8B0B22',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157801',
internalId:  '',
customField: '20110321-193552'
};
webappMappings['1008']=webappMappings['1008-18337083']={
webappId:    '1008',
documentId:  '41709',
internalId:  '18337083',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154301',
internalId:  '',
customField: '20111207-095202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20111207-111148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157722',
internalId:  '',
customField: '20110321-193413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157701',
internalId:  '',
customField: '20110321-192821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129801',
internalId:  '',
customField: '20111207-111249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155501',
internalId:  '',
customField: '20110429-165105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41709',
internalId:  '',
customField: '20110909-201652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41718',
internalId:  '',
customField: '20081221-163035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156601',
internalId:  '',
customField: '20100525-005931'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7NEVX';
var companyName   = 'Pfotenk%C3%BCche+-+die+andere+Tiernahrung+';
var htmlTitle	  = 'Herzlich+Willkommen+in+der+Pfotenk%C3%BCche';
var metaKeywords  = '++Dosenfutter%2C+Nassfutter%2C+Na%C3%9Ffutter%2C+Artgerecht%2C+anifit%2C+heimlieferservice%2C+trockenfutter%2C+nierendi%C3%A4t%2C+Di%C3%A4tfutter%2C+Welpenfutter%2C+Seniorfutter%2C+Konservierungsstoffrei%2C+ohne+Farbstoffe%2C+Hundefutter%2C+Katzenfutter%2C+Fleisch%2C+Gem%C3%BCse%2C+Hannover%2C+hildesheim%2C+Hameln%2C+Lehrte%2C+Garbsen%2C+Laatzen%2C+Neustadt%2C+Burgwedel%2C+burgdorf%2C+Tollwut%2C+Staupe%2C+Zwingerhusten%2C+Leptospirose%2C+Borreliose%2C+Hund%2C+Katze%2C+Welpen%2C+Durchfall%2C+Erbrechen%2C+stumpfes+Fell%2C+%C3%9Cbergewicht%2C+heimtiere%2C+hundesalon%2C+ern%C3%A4hrungsberatung%2C+tierbedarf%2C+holzzaun%2C+hundebox%2C+katzenbaum%2C+huk%2C+therapie%2C+apporte%2C+assitenzhunde%2C+canisterra%2C+fressnapf%2C+zoo%2C+halsband%2C+hundeleine';
var metaContents  = '++Artgerechte+Tiernahrung+f%C3%BCr+Hunde+und+Katzen';
					                                                                    
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 */					                                                            

