/* [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','18101',jdecode('Home'),jdecode(''),'/18101.html','true',[],''],
	['PAGE','56469',jdecode('Ceramics+and+Porcelain'),jdecode(''),'/56469.html','true',[],''],
	['PAGE','26006',jdecode('Helmets+and+Masks'),jdecode(''),'/26006.html','true',[],''],
	['PAGE','26016',jdecode('Swords'),jdecode(''),'/26016.html','true',[],''],
	['PAGE','26011',jdecode('Sword+mounts+-+Tsubas'),jdecode(''),'/26011.html','true',[],''],
	['PAGE','67569',jdecode('Kozuka-Fuchi+Kashira%2C+etc.'),jdecode(''),'/67569.html','true',[],''],
	['PAGE','83769',jdecode('Paintings%2C+scrolls+and+prints'),jdecode(''),'/83769.html','true',[],''],
	['PAGE','24006',jdecode('Sagemono'),jdecode(''),'/24006.html','true',[],''],
	['PAGE','64369',jdecode('+Miscellaneous'),jdecode(''),'/64369.html','true',[],''],
	['PAGE','66474',jdecode('+Guest+Book'),jdecode(''),'/66474/home.html','true',[ 
		['PAGE','66469',jdecode('++++Entries'),jdecode(''),'/66474/66469.html','true',[],'']
	],''],
	['PAGE','87769',jdecode('X'),jdecode(''),'/87769.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='747474';
theSitetree.keyvisualId='2026';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='338';
theSitetree.graphicsetId='395';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='747474';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'747474',
				keyvisualId: 	'2026',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'338',
				graphicsetId: 	'395',
				contentColor: 	'FFFFFF',
				contentBGColor: '747474',
				a_color: 		'747474',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56469',
internalId:  '',
customField: '20100305-155009'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '18101',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20080312-101211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26011',
internalId:  '',
customField: '20100629-123257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26006',
internalId:  '',
customField: '20100428-095108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26016',
internalId:  '',
customField: '20100310-080113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83769',
internalId:  '',
customField: '20100308-122335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24006',
internalId:  '',
customField: '20100305-155624'
};
webappMappings['1002']=webappMappings['1002-66474atoix0in3w7r']={
webappId:    '1002',
documentId:  '66474',
internalId:  '66474atoix0in3w7r',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64369',
internalId:  '',
customField: '20100308-075816'
};
webappMappings['1002']=webappMappings['1002-66474atoix0in3w7r']={
webappId:    '1002',
documentId:  '66469',
internalId:  '66474atoix0in3w7r',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66474',
internalId:  '',
customField: '20061222-210549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66469',
internalId:  '',
customField: '20061222-210549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67569',
internalId:  '',
customField: '20100615-074400'
};
webappMappings['7060']=webappMappings['7060-f3027fd13e997f76e5908f2baa8f1da4']={
webappId:    '7060',
documentId:  '87769',
internalId:  'f3027fd13e997f76e5908f2baa8f1da4',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87769',
internalId:  '',
customField: '20100301-155615'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN3W7R';
var companyName   = 'N+i+k+a+y+a+';
var htmlTitle	  = 'Asian+Art';
var metaKeywords  = 'Samurai-equipment%2C+Helmets%2C+Masks+%2C++Swords%2C+Tsubas%2C+Japanese+pottery+and+porcelain%2C+Noh-Masks%2C+++Netsukes%2C+Sagemono%2C++Scrolls%2C+Zen-Painting%2C+Lacquer+wares...Chinese+Porcelains+and+Ceramics';
var metaContents  = 'Japanese++and+Chinese++Works+of+Art+';
					                                                                    
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 */					                                                            
