/* [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','4579',jdecode('Startseite-Kontakt'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','14628',jdecode('Der+Deutsche+Pinscher'),jdecode(''),'/14628.html','true',[],''],
	['PAGE','13701',jdecode('Unsere+Hunde'),jdecode(''),'/13701.html','true',[],''],
	['PAGE','13728',jdecode('Zucht'),jdecode(''),'/13728.html','true',[],''],
	['PAGE','84670',jdecode('Welpen'),jdecode(''),'/84670.html','true',[],''],
	['PAGE','39201',jdecode('Texte+u+Anderes'),jdecode(''),'/39201.html','true',[],''],
	['PAGE','67901',jdecode('Fotos'),jdecode(''),'/67901.html','true',[],''],
	['PAGE','15002',jdecode('G%C3%A4stebuch'),jdecode(''),'/15002/home.html','false',[ 
		['PAGE','15003',jdecode('Entries'),jdecode(''),'/15002/15003.html','false',[],'']
	],''],
	['PAGE','90163',jdecode('Nachzucht'),jdecode(''),'/90163.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='TOI_Smoothsurface';
theSitetree.paletteFamily='D85959';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33402';
theSitetree.graphicsetId='14267';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Smoothsurface',
				paletteFamily: 	'D85959',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33402',
				graphicsetId: 	'14267',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				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:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-15002ATOIX0IN3FXB']={
webappId:    '1002',
documentId:  '15002',
internalId:  '15002ATOIX0IN3FXB',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-15002ATOIX0IN3FXB']={
webappId:    '1002',
documentId:  '15003',
internalId:  '15002ATOIX0IN3FXB',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20100616-150315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90163',
internalId:  '',
customField: '20100607-225153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14628',
internalId:  '',
customField: '20090308-101339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20100629-233632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13728',
internalId:  '',
customField: '20100328-220918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84670',
internalId:  '',
customField: '20100718-224217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39201',
internalId:  '',
customField: '20100307-223116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67901',
internalId:  '',
customField: '20100307-221306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15002',
internalId:  '',
customField: '20040108-170132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15003',
internalId:  '',
customField: '20040108-170132'
};
webappMappings['1501']=webappMappings['1501-498404']={
webappId:    '1501',
documentId:  '4579',
internalId:  '498404',
customField: '1501'
};
var canonHostname = 'c4awrk06.aul.t-online.de';
var accountId     = 'ATOIX0IN3FXB';
var companyName   = 'Der+Rassehund+Deutscher+Pinscher';
var htmlTitle	  = 'Deutsche+Pinscher++Zwinger%3A+VonderWinkelgasse';
var metaKeywords  = 'Pinscher%2C+Kuschinski%2C+VonderWinkelgasse%2C+Hunde%2C+Hunderasse%2C+Z%C3%BCchter%2C+Rassebetreuer%2C+PSK%2C+VDH%2C+DeutschePinscher%2C+Kalender';
var metaContents  = 'Deutsche+Pinscher%2C+Hundez%C3%BCchter%2C+Niedersachsen%2C+Kuschinski%2C+Deutsche+Hunderasse%2C+Rassebetreuer%2C+Hundefutter%2C+Hundeern%C3%A4hrung%2C+Welpen%2C+Job%2C+Gesundheit';
					                                                                    
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 */					                                                            
