/* [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+%26+News'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40625',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/40625.html','true',[],''],
	['PAGE','40607',jdecode('Leistungsspektrum'),jdecode(''),'/40607.html','true',[],''],
	['PAGE','41863',jdecode('Anfahrt'),jdecode(''),'/41863.html','true',[],''],
	['PAGE','40634',jdecode('Kontakt+%2F+Notfall'),jdecode(''),'/40634.html','true',[],''],
	['PAGE','41657',jdecode('Team'),jdecode(''),'/41657.html','true',[],''],
	['PAGE','40616',jdecode('Praxisrundgang'),jdecode(''),'/40616.html','true',[],''],
	['PAGE','41421',jdecode('Gesundheit'),jdecode(''),'/41421/home.html','true',[ 
		['PAGE','41439',jdecode('Kastration'),jdecode(''),'/41421/41439.html','true',[],''],
		['PAGE','41475',jdecode('Impfungen'),jdecode(''),'/41421/41475.html','true',[],''],
		['PAGE','41484',jdecode('Zahnstein'),jdecode(''),'/41421/41484.html','true',[],''],
		['PAGE','41448',jdecode('Altersvorsorge'),jdecode(''),'/41421/41448.html','true',[],''],
		['PAGE','41493',jdecode('W%C3%BCrmer'),jdecode(''),'/41421/41493.html','true',[],''],
		['PAGE','41466',jdecode('Fl%C3%B6he'),jdecode(''),'/41421/41466.html','true',[],''],
		['PAGE','41457',jdecode('Zecken'),jdecode(''),'/41421/41457.html','true',[],'']
	],''],
	['PAGE','41700',jdecode('Forever+Young'),jdecode(''),'/41700.html','true',[],''],
	['PAGE','41984',jdecode('Unsere+TOPModels'),jdecode(''),'/41984.html','true',[],''],
	['PAGE','41709',jdecode('Schulen+%2F+Seminare'),jdecode(''),'/41709.html','true',[],''],
	['PAGE','42274',jdecode('Archiv'),jdecode(''),'/42274.html','true',[],''],
	['PAGE','40652',jdecode('Links+%26+Impressum'),jdecode(''),'/40652.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='TOI_Tiere_1';
theSitetree.paletteFamily='D4E4F2';
theSitetree.keyvisualId='10644';
theSitetree.keyvisualName='kv_10644.jpg';
theSitetree.fontsetId='31768';
theSitetree.graphicsetId='13542';
theSitetree.contentColor='3C3C3C';
theSitetree.contentBGColor='D4E4F1';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Tiere_1',
				paletteFamily: 	'D4E4F2',
				keyvisualId: 	'10644',
				keyvisualName: 	'kv_10644.jpg',
				fontsetId: 		'31768',
				graphicsetId: 	'13542',
				contentColor: 	'3C3C3C',
				contentBGColor: 'D4E4F1',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
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: '20120103-172906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40607',
internalId:  '',
customField: '20120103-094935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40616',
internalId:  '',
customField: '20090227-224552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40625',
internalId:  '',
customField: '20120103-095720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40634',
internalId:  '',
customField: '20100722-215508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40652',
internalId:  '',
customField: '20111014-112638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41984',
internalId:  '',
customField: '20111206-104453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41439',
internalId:  '',
customField: '20110910-114743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41863',
internalId:  '',
customField: '20110116-140902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41421',
internalId:  '',
customField: '20111005-093823'
};
webappMappings['1501']=webappMappings['1501-56736556']={
webappId:    '1501',
documentId:  '39994',
internalId:  '56736556',
customField: '1501'
};
webappMappings['1008']=webappMappings['1008-56719880']={
webappId:    '1008',
documentId:  '40634',
internalId:  '56719880',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41448',
internalId:  '',
customField: '20100117-194538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41457',
internalId:  '',
customField: '20100117-133647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41466',
internalId:  '',
customField: '20100117-194811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41475',
internalId:  '',
customField: '20100117-195826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41484',
internalId:  '',
customField: '20100122-163514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41493',
internalId:  '',
customField: '20100117-194654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42274',
internalId:  '',
customField: '20120103-164340'
};
webappMappings['7091']=webappMappings['7091-57185']={
webappId:    '7091',
documentId:  '41863',
internalId:  '57185',
customField: 'align:left;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41657',
internalId:  '',
customField: '20111206-105152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41700',
internalId:  '',
customField: '20100507-103445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41709',
internalId:  '',
customField: '20110204-181039'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IRNEIE';
var companyName   = 'Kleintierpraxis+Dr.+Thomas+M%C3%A4rtins+Rheinfelden';
var htmlTitle	  = 'Kleintierpraxis+Dr.+Thomas+M%C3%A4rtins+Rheinfelden';
var metaKeywords  = 'Kleintierpraxis+Dr.+Thomas+M%C3%A4rtins+Rheinfelden+Tierarzt+Tier%C3%A4rzte+Tierarztpraxis+Hunde+Katzen+HD-R%C3%B6ntgen+R%C3%B6ntgen+EKG+Ultraschall+Innere+Medizin+Diagnostik+F%C3%BCtterung+Beratung+Di%C3%A4tberatung+Labor+Augendruckmessung+Patellaluxation+Geriatrie+Chirurgie+Radiochirurgie+Tierklinik+Notfall+Notdienst+Tier%C3%A4rztin';
var metaContents  = 'Willkommen+auf+der+Website+der+Kleintierpraxis+Dr.+med.+vet.+Thomas+M%C3%A4rtins+in+Rheinfelden+%28Baden%29.+Hier+erfahren+Sie+alles+%C3%BCber+Leistungen+und+%C3%96ffnungszeiten+der+Praxis+sowie+wichtige+Kontaktinformationen+und+eine+Anfahrtsbeschreibung.';
					                                                                    
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 */					                                                            

