/* [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','40564',jdecode('News'),jdecode(''),'/40564.html','true',[],''],
	['PAGE','40913',jdecode('Wissenswertes'),jdecode(''),'/40913.html','true',[],''],
	['PAGE','40676',jdecode('BildergalerieTattoo'),jdecode(''),'/40676.html','true',[],''],
	['PAGE','40922',jdecode('Piercingbereich'),jdecode(''),'/40922.html','true',[],''],
	['PAGE','40628',jdecode('G%C3%A4stebuch'),jdecode(''),'/40628/home.html','true',[ 
		['PAGE','40627',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40628/40627.html','true',[],'']
	],''],
	['PAGE','40582',jdecode('Impressum'),jdecode(''),'/40582.html','true',[],''],
	['PAGE','41376',jdecode('Best+Of+Tattoo+2006'),jdecode(''),'/41376.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Litfass';
theSitetree.paletteFamily='CE636A';
theSitetree.keyvisualId='11045';
theSitetree.keyvisualName='kv_11045.jpg';
theSitetree.fontsetId='32077';
theSitetree.graphicsetId='13771';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='CE636A';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Litfass',
				paletteFamily: 	'CE636A',
				keyvisualId: 	'11045',
				keyvisualName: 	'kv_11045.jpg',
				fontsetId: 		'32077',
				graphicsetId: 	'13771',
				contentColor: 	'FFFFFF',
				contentBGColor: 'CE636A',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'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: '20110430-143757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40582',
internalId:  '',
customField: '20080923-230557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40564',
internalId:  '',
customField: '20080923-225825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40913',
internalId:  '',
customField: '20081005-021023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40627',
internalId:  '',
customField: '20071114-215720'
};
webappMappings['1002']=webappMappings['1002-40628atoix0i7hs80']={
webappId:    '1002',
documentId:  '40628',
internalId:  '40628atoix0i7hs80',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-40628atoix0i7hs80']={
webappId:    '1002',
documentId:  '40627',
internalId:  '40628atoix0i7hs80',
customField: 'action=list'
};
webappMappings['1007']=webappMappings['1007-11640191833']={
webappId:    '1007',
documentId:  '40676',
internalId:  '11640191833',
customField: 'g.12p0050ou.3r197vcl94i.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40628',
internalId:  '',
customField: '20071114-220734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40676',
internalId:  '',
customField: '20080923-230122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40922',
internalId:  '',
customField: '20080304-223344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41376',
internalId:  '',
customField: '20080927-135149'
};
webappMappings['7060']=webappMappings['7060-3973d12da73bb5659ed3ef57766e0016']={
webappId:    '7060',
documentId:  '41376',
internalId:  '3973d12da73bb5659ed3ef57766e0016',
customField: 'language:de;country:DE;'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7HS80';
var companyName   = '*+Tattoo+*+Piercing+*';
var htmlTitle	  = 'Pain+Is+Beautiful+-+Tattoos%2C+Piercings%2C+Airbrush+and+more...';
var metaKeywords  = 'Nadine+Sauerwein%2C+Tattoo%2C+Piercing%2C+Micro+Dermals%2C+Herten%2C+Datteln%2C+Marl%2C+Events%2C+Qualit%C3%A4t%2C+Airbrush%2C+Bodycult%2C+K%C3%B6rper%2C+Crank+Ink%2C+Bullterrier+Tattoo%2C+Marl%2C+Pain+Is+Beautiful%2C+pain%2C+beautiful%2C+Schmerz%2C+Farben%2C+T%C3%A4towierungen%2C+tatoo%2C+tattoo%2C+crank%2C+ink%2C+bullterrier%2C+airbrush%2C+nadine%2C+sauerwein%2C+inken%2C+t%C3%A4towieren%2C+t%C3%A4towierungen%2C+herten%2C+nrw%2C+recklinghausen%2C+farbe%2C+farben%2C+onkel%2C+sick%2C+siggi%2C+ge-ink%2C+GE-INK%2C+Gelsenkirchen%2C+buer%2C+horsterstr.%2C+horster+strasse%2C+216%2C+';
var metaContents  = 'Pain+Is+Beautiful+-+Homepage+von+Nadine+Sauerwein.+Ich+arbeite+als+T%C3%A4towiererin+und+Piercerin+und+helfe+Onkel+Sick+in+seinem+Studio+GE-Ink+in+Gelsenkirchen-Buer.+Die+Homepage+soll+euch+informieren+%C3%BCber+Events%2C+Wissenswertes%2C+euch+Frage+und+Antwort+stehen+und+eine+zus%C3%A4tzliche+Kontaktm%C3%B6glichkeit+bieten.';
					                                                                    
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 */					                                                            

