/* [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','4436',jdecode('Home'),jdecode(''),'/4436/index.html','true',[ 
		['PAGE','13902',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/4436/13902.html','false',[],'']
	],''],
	['PAGE','11466',jdecode('What+is+new+%3F'),jdecode(''),'/11466.html','true',[],''],
	['PAGE','92361',jdecode('*+Alicia'),jdecode(''),'/92361/index.html','true',[ 
		['PAGE','94361',jdecode('Alicia'),jdecode(''),'/92361/94361.html','true',[],'']
	],''],
	['PAGE','22802',jdecode('Allure+Collection'),jdecode(''),'/22802.html','true',[],''],
	['PAGE','22833',jdecode('Antiquities+Collection'),jdecode(''),'/22833.html','true',[],''],
	['PAGE','20702',jdecode('Art+Deco+Collection'),jdecode(''),'/20702.html','true',[],''],
	['PAGE','78636',jdecode('Balance+Collection'),jdecode(''),'/78636.html','true',[],''],
	['PAGE','21602',jdecode('Basket+Weave+Collection'),jdecode(''),'/21602.html','true',[],''],
	['PAGE','99286',jdecode('Canyon+Collection'),jdecode(''),'/99286.html','true',[],''],
	['PAGE','99317',jdecode('Capri+Collection'),jdecode(''),'/99317.html','true',[],''],
	['PAGE','11493',jdecode('Charl.Coordinates+**8600**series'),jdecode(''),'/11493.html','true',[],''],
	['PAGE','45205',jdecode('Elan+Collection'),jdecode(''),'/45205.html','true',[],''],
	['PAGE','45105',jdecode('Enchantment+Collection'),jdecode(''),'/45105.html','true',[],''],
	['PAGE','56867',jdecode('Etchings+Collection'),jdecode(''),'/56867.html','true',[],''],
	['PAGE','22926',jdecode('Everest+Collection'),jdecode(''),'/22926.html','true',[],''],
	['PAGE','45305',jdecode('Flair+Collection'),jdecode(''),'/45305.html','true',[],''],
	['PAGE','22957',jdecode('Florabunda+Collection'),jdecode(''),'/22957.html','true',[],''],
	['PAGE','69636',jdecode('Galaxy+Collection'),jdecode(''),'/69636.html','true',[],''],
	['PAGE','45605',jdecode('Impulse+collection'),jdecode(''),'/45605.html','true',[],''],
	['PAGE','78605',jdecode('Journey+Collection'),jdecode(''),'/78605.html','true',[],''],
	['PAGE','78667',jdecode('Latitude+Collection'),jdecode(''),'/78667.html','true',[],''],
	['PAGE','22702',jdecode('Manchester+collection'),jdecode(''),'/22702.html','true',[],''],
	['PAGE','22864',jdecode('MER+Cubes+Collection'),jdecode(''),'/22864.html','true',[],''],
	['PAGE','100386',jdecode('Meridian+Legacy'),jdecode(''),'/100386.html','true',[],''],
	['PAGE','23112',jdecode('Milas+Collection'),jdecode(''),'/23112/index.html','true',[ 
		['PAGE','56805',jdecode('Milas+quarter+view'),jdecode(''),'/23112/56805.html','true',[],'']
	],''],
	['PAGE','23143',jdecode('Millennium+Collection'),jdecode(''),'/23143.html','true',[],''],
	['PAGE','91246',jdecode('*+New+Castle'),jdecode(''),'/91246.html','true',[],''],
	['PAGE','23233',jdecode('New+Meridian+Collection'),jdecode(''),'/23233.html','true',[],''],
	['PAGE','23264',jdecode('Nicholas+Collection'),jdecode(''),'/23264.html','true',[],''],
	['PAGE','97486',jdecode('*+Noor+Jahan+Collection'),jdecode(''),'/97486.html','true',[],''],
	['PAGE','45436',jdecode('Notions+Collection'),jdecode(''),'/45436.html','true',[],''],
	['PAGE','45498',jdecode('Overture+Collection'),jdecode(''),'/45498.html','true',[],''],
	['PAGE','23295',jdecode('Painted+Desert+Collection'),jdecode(''),'/23295.html','true',[],''],
	['PAGE','45529',jdecode('Remembrance+Collection'),jdecode(''),'/45529.html','true',[],''],
	['PAGE','68405',jdecode('Savannah+Petit+Point'),jdecode(''),'/68405.html','true',[],''],
	['PAGE','20973',jdecode('Silk+Road+Collection'),jdecode(''),'/20973.html','true',[],''],
	['PAGE','56836',jdecode('Spice+Collection'),jdecode(''),'/56836.html','true',[],''],
	['PAGE','85105',jdecode('Summit+Collection'),jdecode(''),'/85105.html','true',[],''],
	['PAGE','96386',jdecode('Super+Shaggy+Collection'),jdecode(''),'/96386.html','true',[],''],
	['PAGE','21302',jdecode('Traditions+Collection'),jdecode(''),'/21302.html','true',[],''],
	['PAGE','94461',jdecode('*+Tribecca'),jdecode(''),'/94461.html','true',[],''],
	['PAGE','45467',jdecode('Unity+collection'),jdecode(''),'/45467.html','true',[],''],
	['PAGE','19518',jdecode('Woven+Legend+Collection'),jdecode(''),'/19518.html','true',[],''],
	['PAGE','69605',jdecode('Yorkshire+Collection'),jdecode(''),'/69605.html','true',[],''],
	['PAGE','89805',jdecode('Rug+Care+Guidelines'),jdecode(''),'/89805.html','true',[],''],
	['PAGE','33705',jdecode('Archived+Pictures'),jdecode(''),'/33705/index.html','true',[ 
		['PAGE','14201',jdecode('Charlemagne+**9600**+series'),jdecode(''),'/33705/14201.html','true',[],''],
		['PAGE','45005',jdecode('Crossroads+Collection'),jdecode(''),'/33705/45005.html','true',[],''],
		['PAGE','22988',jdecode('Grapevine+Collection'),jdecode(''),'/33705/22988.html','true',[],''],
		['PAGE','23019',jdecode('Harmony+Collection'),jdecode(''),'/33705/23019.html','true',[],''],
		['PAGE','23050',jdecode('Jardin+Collection'),jdecode(''),'/33705/23050.html','true',[],''],
		['PAGE','45405',jdecode('Mystique+Collection'),jdecode(''),'/33705/45405.html','true',[],''],
		['PAGE','69667',jdecode('Quilt+Collection'),jdecode(''),'/33705/69667.html','true',[],''],
		['PAGE','23357',jdecode('Spiral+Garden+Collection'),jdecode(''),'/33705/23357.html','true',[],''],
		['PAGE','69698',jdecode('Timeless+Collection'),jdecode(''),'/33705/69698.html','true',[],''],
		['PAGE','23419',jdecode('Willow+Creek+Collection'),jdecode(''),'/33705/23419.html','true',[],'']
	],''],
	['PAGE','11601',jdecode('contact'),jdecode(''),'/11601.html','true',[],''],
	['PAGE','11628',jdecode('Who+is+who'),jdecode(''),'/11628.html','true',[],''],
	['PAGE','11682',jdecode('About+us+%22+MER+CORP+%22'),jdecode(''),'/11682.html','true',[],''],
	['PAGE','11655',jdecode('Company+Policy'),jdecode(''),'/11655.html','true',[],''],
	['PAGE','18703',jdecode('Under+contruction'),jdecode(''),'/18703/index.html','true',[ 
		['PAGE','23326',jdecode('Sahara+Collection'),jdecode(''),'/18703/23326.html','true',[],''],
		['PAGE','11574',jdecode('Product+lines+intro'),jdecode(''),'/18703/11574.html','true',[],''],
		['PAGE','11520',jdecode('Hand+Knotted+Rugs'),jdecode(''),'/18703/11520.html','true',[],''],
		['PAGE','11547',jdecode('Hand+Loomed+Rugs'),jdecode(''),'/18703/11547.html','true',[],''],
		['PAGE','12801',jdecode('Misc'),jdecode(''),'/18703/12801.html','true',[],''],
		['PAGE','56898',jdecode('Tradition+3X+Left+zoom'),jdecode(''),'/18703/56898.html','true',[],''],
		['PAGE','56929',jdecode('Tradition+3X+Center+Zoom'),jdecode(''),'/18703/56929.html','true',[],''],
		['PAGE','56960',jdecode('Tradtion+3X+Right+zoom'),jdecode(''),'/18703/56960.html','true',[],'']
	],''],
	['PAGE','92561',jdecode('LARGER+VIEW'),jdecode(''),'/92561/index.html','true',[ 
		['PAGE','78105',jdecode('Alicia--Larger+View'),jdecode(''),'/92561/78105.html','true',[],''],
		['PAGE','75605',jdecode('Allure--Larger+view'),jdecode(''),'/92561/75605.html','true',[],''],
		['PAGE','23081',jdecode('Antiquities--Larger+view'),jdecode(''),'/92561/23081.html','true',[],''],
		['PAGE','88105',jdecode('Art+Deco--Larger+View'),jdecode(''),'/92561/88105.html','true',[],''],
		['PAGE','23202',jdecode('Everest--Larger+view'),jdecode(''),'/92561/23202.html','true',[],''],
		['PAGE','83942',jdecode('Summit--Larger+view'),jdecode(''),'/92561/83942.html','true',[],''],
		['PAGE','23388',jdecode('Super+Shaggy+--Larger+View'),jdecode(''),'/92561/23388.html','true',[],''],
		['PAGE','77605',jdecode('Traditions--Larger+View'),jdecode(''),'/92561/77605.html','true',[],'']
	],''],
	['PAGE','31906',jdecode('Directions'),jdecode(''),'/31906.html','true',[],''],
	['PAGE','59905',jdecode('Ads+Page'),jdecode(''),'/59905.html','true',[],'']];
var siteelementCount=83;
theSitetree.topTemplateName='Card';
					                                                                    
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 */					                                                            

