/* [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','4584',jdecode('HOME'),jdecode(''),'/4584.html','true',[],''],
	['PAGE','77103',jdecode('EBAY+SHOP'),jdecode(''),'/77103.html','true',[],''],
	['PAGE','6430',jdecode('DIGITAL+CAMERA+EXCHANGE'),jdecode(''),'/6430.html','true',[],''],
	['PAGE','107991',jdecode('HIFI+AUDIO-VISUAL'),jdecode(''),'/107991.html','true',[],''],
	['PAGE','48785',jdecode('CANON'),jdecode(''),'/48785.html','true',[],''],
	['PAGE','48758',jdecode('CONTAX'),jdecode(''),'/48758/index.html','true',[ 
		['PAGE','102201',jdecode('CARL+ZEISS+OPTICS'),jdecode(''),'/48758/102201.html','true',[],''],
		['PAGE','72603',jdecode('CONTAX+ACCESSORIES'),jdecode(''),'/48758/72603.html','true',[],''],
		['PAGE','101663',jdecode('CONTAX+BROCHURES'),jdecode(''),'/48758/101663.html','true',[],''],
		['PAGE','101725',jdecode('CONTAX+CLASSIC+CAMERAS'),jdecode(''),'/48758/101725.html','true',[],''],
		['PAGE','101332',jdecode('CONTAX+CLUB'),jdecode(''),'/48758/101332.html','true',[],''],
		['PAGE','101801',jdecode('CONTAX+DIGITAL'),jdecode(''),'/48758/101801.html','true',[],''],
		['PAGE','48974',jdecode('CONTAX+GALLERY'),jdecode(''),'/48758/48974.html','true',[],''],
		['PAGE','101301',jdecode('CONTAX+HISTORY'),jdecode(''),'/48758/101301.html','true',[],''],
		['PAGE','101363',jdecode('CONTAX+INFO'),jdecode(''),'/48758/101363.html','true',[],''],
		['PAGE','101863',jdecode('CONTAX+LINKS'),jdecode(''),'/48758/101863.html','true',[],''],
		['PAGE','101694',jdecode('CONTAX+REPAIRS'),jdecode(''),'/48758/101694.html','true',[],''],
		['PAGE','101756',jdecode('CONTAX+REPAIRS+%26+SERVICING'),jdecode(''),'/48758/101756.html','true',[],''],
		['PAGE','101832',jdecode('CONTAX+%22G%22+SYSTEM'),jdecode(''),'/48758/101832.html','true',[],''],
		['PAGE','101925',jdecode('CONTAX+%22N%22+AF+SYSTEM'),jdecode(''),'/48758/101925.html','true',[],''],
		['PAGE','101956',jdecode('CONTAX+%22T%22+COMPACT+CAMERAS'),jdecode(''),'/48758/101956.html','true',[],''],
		['PAGE','102001',jdecode('CONTAX+%26+YASHICA+SLR+SYSTEM'),jdecode(''),'/48758/102001.html','true',[],''],
		['PAGE','101894',jdecode('CONTAX+645++AF+SYSTEM'),jdecode(''),'/48758/101894.html','true',[],''],
		['PAGE','102094',jdecode('CONTAX+%22TLA%22+FLASH+SYSTEM'),jdecode(''),'/48758/102094.html','true',[],''],
		['PAGE','102032',jdecode('CONTAREX+%26+CONTAFLEX'),jdecode(''),'/48758/102032.html','true',[],'']
	],''],
	['PAGE','70530',jdecode('KONICA-MINOLTA'),jdecode(''),'/70530/index.html','true',[ 
		['PAGE','73803',jdecode('KONICA'),jdecode(''),'/70530/73803.html','true',[],'']
	],''],
	['PAGE','73830',jdecode('LEICA+%26+MINOX'),jdecode(''),'/73830.html','true',[],''],
	['PAGE','70503',jdecode('NIKON'),jdecode(''),'/70503.html','true',[],''],
	['PAGE','73857',jdecode('OLYMPUS'),jdecode(''),'/73857.html','true',[],''],
	['PAGE','73884',jdecode('PENTAX'),jdecode(''),'/73884.html','true',[],''],
	['PAGE','101201',jdecode('ROLLEI'),jdecode(''),'/101201.html','true',[],''],
	['PAGE','59703',jdecode('SIGMA'),jdecode(''),'/59703.html','true',[],''],
	['PAGE','85603',jdecode('TAMRON'),jdecode(''),'/85603.html','true',[],''],
	['PAGE','106294',jdecode('VOIGTLANDER'),jdecode(''),'/106294.html','true',[],''],
	['PAGE','102063',jdecode('ZEISS+IKON'),jdecode(''),'/102063.html','true',[],''],
	['PAGE','113606',jdecode('ZEISS+ZE+ZF+ZK+ZM'),jdecode(''),'/113606.html','true',[],''],
	['PAGE','56703',jdecode('MEDIUM+%26+LARGE+FORMAT'),jdecode(''),'/56703/index.html','true',[ 
		['PAGE','78303',jdecode('BRONICA'),jdecode(''),'/56703/78303.html','true',[],''],
		['PAGE','78330',jdecode('FUJI'),jdecode(''),'/56703/78330.html','true',[],''],
		['PAGE','78357',jdecode('HASSELBLAD'),jdecode(''),'/56703/78357.html','true',[],''],
		['PAGE','78384',jdecode('MAMIYA'),jdecode(''),'/56703/78384.html','true',[],'']
	],''],
	['PAGE','56730',jdecode('CLASSIC+CAMERAS'),jdecode(''),'/56730.html','true',[],''],
	['PAGE','56784',jdecode('GENERAL'),jdecode(''),'/56784.html','true',[],''],
	['PAGE','101001',jdecode(''),jdecode(''),'/101001.html','true',[],''],
	['PAGE','48920',jdecode('ZEISS+BINOCULARS'),jdecode(''),'/48920.html','true',[],''],
	['PAGE','101632',jdecode('BOOKS+%26+BROCHURES'),jdecode(''),'/101632.html','true',[],''],
	['PAGE','56757',jdecode('CAMERA+BAGS+%26+CASES'),jdecode(''),'/56757.html','true',[],''],
	['PAGE','56811',jdecode('CLEANING+EQUIPMENT'),jdecode(''),'/56811.html','true',[],''],
	['PAGE','86703',jdecode('FILTERS'),jdecode(''),'/86703/index.html','true',[ 
		['PAGE','48839',jdecode('B%26W+FILTERS'),jdecode(''),'/86703/48839.html','true',[],'']
	],''],
	['PAGE','102301',jdecode('FLASH+%26+LIGHTING'),jdecode(''),'/102301.html','true',[],''],
	['PAGE','101601',jdecode('LIGHTMETERS'),jdecode(''),'/101601.html','true',[],''],
	['PAGE','48893',jdecode('SCHNEIDER+MAGNIFIERS'),jdecode(''),'/48893.html','true',[],''],
	['PAGE','86730',jdecode('TRIPODS+%26+SUPPORTS'),jdecode(''),'/86730/index.html','true',[ 
		['PAGE','48866',jdecode('MANFROTTO+TRIPODS'),jdecode(''),'/86730/48866.html','true',[],'']
	],''],
	['PAGE','101032',jdecode(''),jdecode(''),'/101032.html','true',[],''],
	['PAGE','6565',jdecode('REPAIRS+%26+SERVICING'),jdecode(''),'/6565.html','true',[],''],
	['PAGE','6457',jdecode('PART+EXCHANGES'),jdecode(''),'/6457.html','true',[],''],
	['PAGE','6484',jdecode('COMMISSION+SALES'),jdecode(''),'/6484.html','true',[],''],
	['PAGE','6592',jdecode('EXPORTS'),jdecode(''),'/6592.html','true',[],''],
	['PAGE','6538',jdecode('MAIL+ORDER'),jdecode(''),'/6538.html','true',[],''],
	['PAGE','6511',jdecode('WANTED'),jdecode(''),'/6511.html','true',[],''],
	['PAGE','101063',jdecode(''),jdecode(''),'/101063.html','true',[],''],
	['PAGE','6646',jdecode('ABOUT+US'),jdecode(''),'/6646/index.html','true',[ 
		['PAGE','102501',jdecode('PAYMENT+METHODS'),jdecode(''),'/6646/102501.html','true',[],'']
	],''],
	['PAGE','6619',jdecode('GRADING'),jdecode(''),'/6619.html','true',[],''],
	['PAGE','56865',jdecode('TERMS+%26+CONDITIONS'),jdecode(''),'/56865.html','true',[],''],
	['PAGE','101094',jdecode(''),jdecode(''),'/101094.html','true',[],''],
	['PAGE','102401',jdecode('SUPER+DEALS'),jdecode(''),'/102401.html','true',[],''],
	['PAGE','53902',jdecode('MAGAZINE+ADVERT'),jdecode(''),'/53902/index.html','true',[ 
		['PAGE','95103',jdecode('ADVERTS'),jdecode(''),'/53902/95103.html','true',[],'']
	],''],
	['PAGE','57002',jdecode('GUEST+BOOK'),jdecode(''),'/57002/index.html','true',[ 
		['PAGE','57003',jdecode('READ+GUEST+BOOK'),jdecode(''),'/57002/57003.html','true',[],'']
	],''],
	['PAGE','48947',jdecode('LINKS'),jdecode(''),'/48947.html','true',[],''],
	['PAGE','97501',jdecode('NEWS'),jdecode(''),'/97501.html','true',[],''],
	['PAGE','97701',jdecode('DIRECTIONS+%26+MAP'),jdecode(''),'/97701.html','true',[],''],
	['PAGE','108591',jdecode('35mm+SLIDE+SCANNING+'),jdecode(''),'/108591/index.html','true',[ 
		['PAGE','109209',jdecode('WHAT+RESOLUTION%3F'),jdecode(''),'/108591/109209.html','true',[],''],
		['PAGE','109240',jdecode('SENDING+YOUR+SLIDES'),jdecode(''),'/108591/109240.html','true',[],''],
		['PAGE','109954',jdecode('SERVICES+%26+PRICES'),jdecode(''),'/108591/109954.html','true',[],''],
		['PAGE','110655',jdecode('ORDERING'),jdecode(''),'/108591/110655.html','true',[],'']
	],'']];
var siteelementCount=82;
theSitetree.topTemplateName='Business';
					                                                                    
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 */					                                                            
