/* [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','43',jdecode('Home'),jdecode(''),'/43.html','true',[],''],
	['PAGE','64',jdecode('PC+Based+DVR%26%23x27%3BS'),jdecode(''),'/64/index.html','true',[ 
		['PAGE','1513',jdecode('Vr-400'),jdecode(''),'/64/1513.html','true',[],''],
		['PAGE','1522',jdecode('VR-800'),jdecode(''),'/64/1522.html','true',[],''],
		['PAGE','1703',jdecode('VR-1200'),jdecode(''),'/64/1703.html','true',[],''],
		['PAGE','1531',jdecode('VR-1600'),jdecode(''),'/64/1531.html','true',[],''],
		['PAGE','1540',jdecode('VR-2400'),jdecode(''),'/64/1540.html','true',[],''],
		['PAGE','1549',jdecode('VR-3200'),jdecode(''),'/64/1549.html','true',[],''],
		['PAGE','1558',jdecode('VR-4800'),jdecode(''),'/64/1558.html','true',[],'']
	],''],
	['PAGE','1887',jdecode('Embedded+DVR%26%23x27%3BS'),jdecode(''),'/1887/index.html','true',[ 
		['PAGE','1942',jdecode('DVR-M4'),jdecode(''),'/1887/1942.html','true',[],''],
		['PAGE','1951',jdecode('DVR-M8'),jdecode(''),'/1887/1951.html','true',[],''],
		['PAGE','1960',jdecode('DVR-M16'),jdecode(''),'/1887/1960.html','true',[],''],
		['PAGE','1969',jdecode('DVR-4R'),jdecode(''),'/1887/1969.html','true',[],''],
		['PAGE','1978',jdecode('DVR-8R'),jdecode(''),'/1887/1978.html','true',[],''],
		['PAGE','1987',jdecode('DVR-16R'),jdecode(''),'/1887/1987.html','true',[],'']
	],''],
	['PAGE','73',jdecode('Offers'),jdecode(''),'/73.html','true',[],''],
	['PAGE','82',jdecode('Contact'),jdecode(''),'/82/index.html','true',[ 
		['PAGE','91',jdecode('Adresses'),jdecode(''),'/82/91.html','true',[],''],
		['PAGE','100',jdecode('How+to+find+us'),jdecode(''),'/82/100.html','true',[],'']
	],''],
	['PAGE','109',jdecode('About+us'),jdecode(''),'/109/index.html','true',[ 
		['PAGE','118',jdecode('The+team'),jdecode(''),'/109/118.html','true',[],'']
	],'']];
var siteelementCount=22;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='080245';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10615';
theSitetree.graphicsetId='10811';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='080245';
var theTemplate={
				name: 			'Delta'
,				paletteFamily: 	'080245'
,				keyvisualId: 	'-1'
,				keyvisualName: 	'keyv.jpg'
,				fontsetId: 		'10615'
,				graphicsetId: 	'10811'
,				contentColor: 	'FFFFFF'
,				contentBGColor: '080245'
,				a_color: 		'221785'
,				b_color: 		'000000'
,				c_color: 		'000000'
,				d_color: 		'000000'
,				e_color: 		'000000'
,				f_color: 		'000000'
 			  };					                                                                    
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 */					                                                            

