/* [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','18561',jdecode('Home'),jdecode(''),'/18561.html','true',[],''],
	['PAGE','36581',jdecode('BOPA-Dogstyle'),jdecode(''),'/36581.html','true',[],''],
	['PAGE','35785',jdecode('News+'),jdecode(''),'/35785.html','true',[],''],
	['PAGE','40102',jdecode('Gurtfarben'),jdecode(''),'/40102.html','true',[],''],
	['PAGE','40081',jdecode('Neoprenfarben'),jdecode(''),'/40081.html','true',[],''],
	['PAGE','40123',jdecode('Stickmotive'),jdecode(''),'/40123.html','true',[],''],
	['PAGE','37481',jdecode('Bildergalerie++++++++++++++++++++++++++'),jdecode(''),'/37481.html','true',[],''],
	['PAGE','21002',jdecode('Links'),jdecode(''),'/21002/home.html','true',[ 
		['PAGE','21003',jdecode('Eintr%C3%A4ge'),jdecode(''),'/21002/21003.html','false',[],'']
	],''],
	['PAGE','42198',jdecode('Impressum'),jdecode(''),'/42198.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Canvas';
theSitetree.paletteFamily='FFB11A';
theSitetree.keyvisualId='3702';
theSitetree.keyvisualName='kv_3702.jpg';
theSitetree.fontsetId='10577';
theSitetree.graphicsetId='10936';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FCF6E5';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Canvas',
				paletteFamily: 	'FFB11A',
				keyvisualId: 	'3702',
				keyvisualName: 	'kv_3702.jpg',
				fontsetId: 		'10577',
				graphicsetId: 	'10936',
				contentColor: 	'A00000',
				contentBGColor: 'FCF6E5',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'AF7A13',
				e_color: 		'AF7A13',
				f_color: 		'AF7A13',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-21002atoix0in344x']={
webappId:    '1002',
documentId:  '21002',
internalId:  '21002atoix0in344x',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-21002atoix0in344x']={
webappId:    '1002',
documentId:  '21003',
internalId:  '21002atoix0in344x',
customField: 'action=list'
};
webappMappings['1501']=webappMappings['1501-18809880']={
webappId:    '1501',
documentId:  '18561',
internalId:  '18809880',
customField: '1501'
};
webappMappings['1007']=webappMappings['1007-105d69854b2']={
webappId:    '1007',
documentId:  '37481',
internalId:  '105d69854b2',
customField: 'g.10nb9basm.ct0sm2urf8.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18561',
internalId:  '',
customField: '20080107-232801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21002',
internalId:  '',
customField: '20110701-132529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21003',
internalId:  '',
customField: '20080105-220929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35785',
internalId:  '',
customField: '20110701-132240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36581',
internalId:  '',
customField: '20091216-185520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40081',
internalId:  '',
customField: '20080107-224705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40102',
internalId:  '',
customField: '20100309-205338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40123',
internalId:  '',
customField: '20100309-210753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37481',
internalId:  '',
customField: '20091216-190021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42198',
internalId:  '',
customField: '20080105-223850'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18561',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN344X';
var companyName   = 'BOPA+-+DOGSTYLE++by++Heike';
var htmlTitle	  = 'BOPA+-+DOGSTYLE';
var metaKeywords  = 'Hundegeschirre+%2C+Halsb%C3%A4nder+nach+Ma%C3%9F+%2C+Leinen+in+allen+Gr%C3%B6%C3%9Fen+%2C+Fleece+gepolstert+%2CHundefreunde+%2C+eigene+Entw%C3%BCrfe';
var metaContents  = 'Nach+Ma%C3%9F+angefertigte++Hundegeschirre+und+Halsb%C3%A4nder+.+Leinen+in+allen+Gr%C3%B6%C3%9Fen';
					                                                                    
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 */					                                                            

