/* [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'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41349',jdecode('Diamantfarben'),jdecode(''),'/41349/home.html','true',[ 
		['PAGE','41377',jdecode('Fancy+Braun'),jdecode(''),'/41349/41377.html','true',[],''],
		['PAGE','41621',jdecode('Fancy+Rosa'),jdecode(''),'/41349/41621.html','true',[],''],
		['PAGE','41386',jdecode('Fancy+Gelb'),jdecode(''),'/41349/41386.html','true',[],''],
		['PAGE','42457',jdecode('Fancy+Orange'),jdecode(''),'/41349/42457.html','true',[],''],
		['PAGE','41395',jdecode('Fancy+Blau'),jdecode(''),'/41349/41395.html','true',[],''],
		['PAGE','41630',jdecode('Fancy+Grau'),jdecode(''),'/41349/41630.html','true',[],''],
		['PAGE','42534',jdecode('Fancy+Schwarz'),jdecode(''),'/41349/42534.html','true',[],'']
	],''],
	['PAGE','41815',jdecode('Wissen'),jdecode(''),'/41815/home.html','true',[ 
		['PAGE','42275',jdecode('Diamanten'),jdecode(''),'/41815/42275.html','true',[],''],
		['PAGE','41833',jdecode('Diamantf%C3%B6rderung'),jdecode(''),'/41815/41833.html','true',[],''],
		['PAGE','41842',jdecode('Farblehre'),jdecode(''),'/41815/41842.html','true',[],''],
		['PAGE','41851',jdecode('Newsletter-Archiv'),jdecode(''),'/41815/41851.html','true',[],'']
	],''],
	['PAGE','41824',jdecode('Medien'),jdecode(''),'/41824/home.html','true',[ 
		['PAGE','46343',jdecode('U.J.S.'),jdecode(''),'/41824/46343.html','true',[],''],
		['PAGE','46406',jdecode('Gold%26%23x27%3BOr'),jdecode(''),'/41824/46406.html','true',[],''],
		['PAGE','46301',jdecode('Goldschmiede+Zeitung'),jdecode(''),'/41824/46301.html','true',[],''],
		['PAGE','46322',jdecode('Das+Schmuckmagazin'),jdecode(''),'/41824/46322.html','true',[],''],
		['PAGE','46364',jdecode('De+Juwelier'),jdecode(''),'/41824/46364.html','true',[],'']
	],''],
	['PAGE','41358',jdecode('News'),jdecode(''),'/41358.html','true',[],''],
	['PAGE','41367',jdecode('Kontakt'),jdecode(''),'/41367.html','true',[],''],
	['PAGE','41498',jdecode('Impressum'),jdecode(''),'/41498.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Cuy';
theSitetree.paletteFamily='F7FDFD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='385';
theSitetree.graphicsetId='438';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='F7FDFD';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cuy',
				paletteFamily: 	'F7FDFD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'385',
				graphicsetId: 	'438',
				contentColor: 	'666666',
				contentBGColor: 'F7FDFD',
				a_color: 		'F7FDFD',
				b_color: 		'E4E5C0',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
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: '20111014-161615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41367',
internalId:  '',
customField: '20111111-124116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41349',
internalId:  '',
customField: '20111014-164125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41386',
internalId:  '',
customField: '20111006-152223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41377',
internalId:  '',
customField: '20110923-154309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41395',
internalId:  '',
customField: '20111020-134325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42534',
internalId:  '',
customField: '20110923-154819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41358',
internalId:  '',
customField: '20120203-161807'
};
webappMappings['1008']=webappMappings['1008-54614735']={
webappId:    '1008',
documentId:  '41367',
internalId:  '54614735',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41498',
internalId:  '',
customField: '20111014-151832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42457',
internalId:  '',
customField: '20110923-143942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41630',
internalId:  '',
customField: '20110923-154604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41621',
internalId:  '',
customField: '20111006-152058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41815',
internalId:  '',
customField: '20111018-170554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41833',
internalId:  '',
customField: '20111014-162202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41842',
internalId:  '',
customField: '20110923-151940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41851',
internalId:  '',
customField: '20120203-162805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41824',
internalId:  '',
customField: '20111021-172024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42275',
internalId:  '',
customField: '20111014-164231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20111101-160359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46322',
internalId:  '',
customField: '20111006-164814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46343',
internalId:  '',
customField: '20111102-111215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46364',
internalId:  '',
customField: '20111020-155252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46406',
internalId:  '',
customField: '20111027-171430'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IRD9E3';
var companyName   = 'KULSEN+%26+HENNIG+-+Brillante+Farben+der+Natur';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

