/* [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','39994',jdecode('Home'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40350',jdecode('warum+Alpakas%3F'),jdecode(''),'/40350.html','true',[],''],
	['PAGE','40359',jdecode('Meine+Tiere'),jdecode(''),'/40359.html','true',[],''],
	['PAGE','42371',jdecode('Meine+Zuchttiere'),jdecode(''),'/42371.html','true',[],''],
	['PAGE','42408',jdecode('Nachwuchs'),jdecode(''),'/42408.html','true',[],''],
	['PAGE','43910',jdecode('Ausbildung'),jdecode(''),'/43910.html','true',[],''],
	['PAGE','40689',jdecode('Bildergalerie'),jdecode(''),'/40689.html','true',[],''],
	['PAGE','40368',jdecode('Verkauf'),jdecode(''),'/40368.html','true',[],''],
	['PAGE','40377',jdecode('Kontakt+%2F+Impressum'),jdecode(''),'/40377.html','true',[],''],
	['PAGE','40702',jdecode('G%C3%A4stebuch'),jdecode(''),'/40702/home.html','true',[ 
		['PAGE','40701',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40702/40701.html','true',[],'']
	],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Antique';
theSitetree.paletteFamily='E58F12';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11065';
theSitetree.graphicsetId='11833';
theSitetree.contentColor='D1C3A6';
theSitetree.contentBGColor='856A3B';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antique',
				paletteFamily: 	'E58F12',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11065',
				graphicsetId: 	'11833',
				contentColor: 	'D1C3A6',
				contentBGColor: '856A3B',
				a_color: 		'664F23',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20110703-141126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40350',
internalId:  '',
customField: '20090506-232928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40359',
internalId:  '',
customField: '20100913-140148'
};
webappMappings['1007']=webappMappings['1007-11bb335f675']={
webappId:    '1007',
documentId:  '40689',
internalId:  '11bb335f675',
customField: 'g.13epj9bha.8ih6aqv727k.3o'
};
webappMappings['1002']=webappMappings['1002-40702atoix0irws4c']={
webappId:    '1002',
documentId:  '40702',
internalId:  '40702atoix0irws4c',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-40702atoix0irws4c']={
webappId:    '1002',
documentId:  '40701',
internalId:  '40702atoix0irws4c',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40689',
internalId:  '',
customField: '20100131-155306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40368',
internalId:  '',
customField: '20101114-163617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40377',
internalId:  '',
customField: '20100726-213259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40702',
internalId:  '',
customField: '20080812-002354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40701',
internalId:  '',
customField: '20080811-212131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42408',
internalId:  '',
customField: '20110703-142932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43910',
internalId:  '',
customField: '20110904-154525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42371',
internalId:  '',
customField: '20110904-154248'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IRWS4C';
var companyName   = 'Areion+Alpakas';
var htmlTitle	  = 'Areion+Alpakas';
var metaKeywords  = 'Areion+Alpakas%2C+Alpacas%2C+Angelika%2C+Blum%2C+Zucht%2C+Huacaya%2C+Macho%2C+Fermale%2C+Cria%2C+Chalimar%2C+Westerwald%2C+Wahlrod%2C+Tier%2C+Alpaka%2C+Alpaca%2C+von+Areion%2C+decken%2C+Deckstation%2C+Aufzucht%2C+Verkauf%2C+Fohlen%2C+Hengst%2C+Stuten%2C+Cria%2C+Macho%2C+Chile%2C+Peru%2C+Anden%2C+Kamele%2C+Kameliden%2C+Neuweltkameliden%2C+Lamas%2C+Ausbildung%2C+Rasenm%C3%A4her%2C+';
var metaContents  = 'Areion+Alpakas%2C+Angelika+Blum%2C+kleine%2C+aber+hochwertige+und+liebevolle+Alpakazucht+von+Huacaya+-+Alpakas+im+Westerwald';
					                                                                    
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 */					                                                            

