/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','301',jdecode('Home'),jdecode(''),'/301.html','true',[],''],
	['PAGE','1401',jdecode('Private+Sexkontakte'),jdecode(''),'/1401.html','true',[],''],
	['PAGE','1422',jdecode('Live+Sex+Cams'),jdecode(''),'/1422.html','true',[],''],
	['PAGE','1443',jdecode('Hardcore+Pornos'),jdecode(''),'/1443.html','true',[],''],
	['PAGE','1464',jdecode('SMS+Dates'),jdecode(''),'/1464.html','true',[],''],
	['PAGE','1485',jdecode('Telefon+Kontakte'),jdecode(''),'/1485.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31959';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='D8D8D5';
theSitetree.contentBGColor='2E2E2E';
var theTemplate={
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31959',
				graphicsetId: 	'13798',
				contentColor: 	'D8D8D5',
				contentBGColor: '2E2E2E',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				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'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20090312-182005'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1464',
internalId:  '',
customField: '20090312-180136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20090312-201103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1485',
internalId:  '',
customField: '20090312-165634'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1422',
internalId:  '',
customField: '20090312-200449'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1443',
internalId:  '',
customField: '20090312-182125'
};
var canonHostname = 'localhost.localdomain';
var accountId     = 'AGT010IN2NQS';
var companyName   = 'Sexweb24.ch';
var htmlTitle	  = 'Sexweb24.ch+-+Geballte+Ladung+Sex+und+Erotik%21';
var metaKeywords  = 'private+sexkontakte%2C+amateure%2C+dating%2C+sexkontakte%2C+kontakte%2C+chat%2C+pornos%2C+sexdates%2C+telefonsex%2C+smschat%2C+sms+kontakte%2C+flirten%2C+hardcore%2C+sexfilme%2C+sexcams%2C+sex+cam%2C+dates%2C+date%2C+flirt%2C+sexweb24%2C+singles%2C+singletreff%2C';
var metaContents  = 'Die+geballte+Ladung+Sex+-+Sofortkontakte+zu+Singles+aus+der+Schweiz%2C+Deutschland+und+%C3%96sterreich%2C+SMS+Chat%2C+Telefonkontakte%2C+Sex+Cams+aus+der+Wohnstube+von+geilen+Amateuren+und+Hardcore+Pornos.';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
