/* [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('AIMS+International'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41522',jdecode('Livestock+Database++'),jdecode(''),'/41522/home.html','true',[ 
		['PAGE','43088',jdecode('InterTrace+Applications'),jdecode(''),'/41522/43088.html','true',[],''],
		['PAGE','43212',jdecode('Livestock+traceability'),jdecode(''),'/41522/43212.html','true',[],''],
		['PAGE','43290',jdecode('Beef+traceability+'),jdecode(''),'/41522/43290.html','true',[],''],
		['PAGE','43299',jdecode('HerdCompanion'),jdecode(''),'/41522/43299.html','true',[],''],
		['PAGE','43308',jdecode('Farm+assurance+sheep'),jdecode(''),'/41522/43308.html','true',[],''],
		['PAGE','43317',jdecode('Price+monitoring+'),jdecode(''),'/41522/43317.html','true',[],''],
		['PAGE','43326',jdecode('Para+TB+'),jdecode(''),'/41522/43326.html','true',[],''],
		['PAGE','43335',jdecode('Farm+assurance+dairy'),jdecode(''),'/41522/43335.html','true',[],''],
		['PAGE','43344',jdecode('Herdbook'),jdecode(''),'/41522/43344.html','true',[],''],
		['PAGE','43353',jdecode('Equine+charity'),jdecode(''),'/41522/43353.html','true',[],'']
	],''],
	['PAGE','41291',jdecode('Herd+Management+'),jdecode(''),'/41291/home.html','true',[ 
		['PAGE','42578',jdecode('InterHerd'),jdecode(''),'/41291/42578.html','true',[],'']
	],''],
	['PAGE','41862',jdecode('Pocket+Cow+Manager'),jdecode(''),'/41862.html','true',[],''],
	['PAGE','43620',jdecode('InterLab'),jdecode(''),'/43620/home.html','true',[ 
		['PAGE','43629',jdecode('Features'),jdecode(''),'/43620/43629.html','true',[],''],
		['PAGE','43638',jdecode('Screenshots'),jdecode(''),'/43620/43638.html','true',[],'']
	],''],
	['PAGE','41300',jdecode('InterHerd+update'),jdecode(''),'/41300.html','true',[],''],
	['PAGE','43833',jdecode('IH%2B'),jdecode(''),'/43833.html','true',[],''],
	['PAGE','41314',jdecode('Contact'),jdecode(''),'/41314.html','true',[],''],
	['PAGE','41554',jdecode('Company'),jdecode(''),'/41554/home.html','true',[ 
		['PAGE','41563',jdecode('About+Us'),jdecode(''),'/41554/41563.html','true',[],''],
		['PAGE','41572',jdecode('Partner'),jdecode(''),'/41554/41572.html','true',[],''],
		['PAGE','42155',jdecode('Distributor'),jdecode(''),'/41554/42155.html','true',[],'']
	],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='003399';
theSitetree.keyvisualId='1282';
theSitetree.keyvisualName='pflanzen.jpg';
theSitetree.fontsetId='192';
theSitetree.graphicsetId='228';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Profile',
				paletteFamily: 	'003399',
				keyvisualId: 	'1282',
				keyvisualName: 	'pflanzen.jpg',
				fontsetId: 		'192',
				graphicsetId: 	'228',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003399',
				b_color: 		'000066',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				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:  '44',
internalId:  '',
customField: '20100524-093850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41522',
internalId:  '',
customField: '20100524-105839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41554',
internalId:  '',
customField: '20100428-151222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41563',
internalId:  '',
customField: '20090601-162156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41314',
internalId:  '',
customField: '20100428-151147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41300',
internalId:  '',
customField: '20100303-154554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41862',
internalId:  '',
customField: '20100520-155806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41291',
internalId:  '',
customField: '20100524-104042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41572',
internalId:  '',
customField: '20100520-160428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42155',
internalId:  '',
customField: '20100428-151540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42578',
internalId:  '',
customField: '20100524-101134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43212',
internalId:  '',
customField: '20100524-102442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43088',
internalId:  '',
customField: '20100524-105740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43308',
internalId:  '',
customField: '20100524-095627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43299',
internalId:  '',
customField: '20100520-140303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43290',
internalId:  '',
customField: '20100524-095112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43317',
internalId:  '',
customField: '20100520-140832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43326',
internalId:  '',
customField: '20100524-100019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43335',
internalId:  '',
customField: '20100524-100149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43344',
internalId:  '',
customField: '20100524-100243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43353',
internalId:  '',
customField: '20100524-100326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43620',
internalId:  '',
customField: '20100429-164156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43629',
internalId:  '',
customField: '20100429-165957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43638',
internalId:  '',
customField: '20100520-160159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43833',
internalId:  '',
customField: '20100912-095937'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7DOXF';
var companyName   = 'A+I+M+S+-+International';
var htmlTitle	  = 'Animal+IdentificationRegistration+Systems';
var metaKeywords  = 'AIMS%2C+Livestock+Data+Management+and+Information+Systems%2C+Project+Management+of+Veterinary+and+Livestock+Projects%2C+Consultancies+in+a+wide+rage+of+veterinary+areas%2C+appropriate+training';
var metaContents  = 'National+Databases+for+Livestock%2C++Herd+Health+Management';
					                                                                    
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 */					                                                            

