/* [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','4559',jdecode('Home'),jdecode(''),'/4559.html','true',[],''],
	['PAGE','64954',jdecode('What%26%23x27%3Bs+New'),jdecode(''),'/64954.html','true',[],''],
	['PAGE','89736',jdecode('FAQs'),jdecode(''),'/89736/index.html','true',[ 
		['PAGE','64981',jdecode('How+to+Order'),jdecode(''),'/89736/64981.html','true',[],''],
		['PAGE','89763',jdecode('Postage+%26+Packing'),jdecode(''),'/89736/89763.html','true',[],''],
		['PAGE','89790',jdecode('Back%2FSpecial+Orders'),jdecode(''),'/89736/89790.html','true',[],''],
		['PAGE','89817',jdecode('Our+Policies'),jdecode(''),'/89736/89817.html','true',[],'']
	],''],
	['PAGE','38701',jdecode('Noro+Yarns'),jdecode(''),'/38701/index.html','true',[ 
		['PAGE','39203',jdecode('Kureyon'),jdecode(''),'/38701/39203.html','true',[],''],
		['PAGE','39257',jdecode('Silk+Garden'),jdecode(''),'/38701/39257.html','true',[],''],
		['PAGE','115884',jdecode('Silk+Mountain'),jdecode(''),'/38701/115884.html','true',[],''],
		['PAGE','39284',jdecode('Iro'),jdecode(''),'/38701/39284.html','true',[],''],
		['PAGE','39230',jdecode('Kochoran'),jdecode(''),'/38701/39230.html','true',[],''],
		['PAGE','54735',jdecode('Blossom'),jdecode(''),'/38701/54735.html','true',[],''],
		['PAGE','54762',jdecode('Aurora'),jdecode(''),'/38701/54762.html','true',[],'']
	],''],
	['PAGE','38728',jdecode('Debbie+Bliss+Yarns'),jdecode(''),'/38728/index.html','true',[ 
		['PAGE','60154',jdecode('Baby+Cashmerino'),jdecode(''),'/38728/60154.html','true',[],''],
		['PAGE','60181',jdecode('Cashmerino+DK'),jdecode(''),'/38728/60181.html','true',[],''],
		['PAGE','60208',jdecode('Cashmerino+Aran'),jdecode(''),'/38728/60208.html','true',[],''],
		['PAGE','60235',jdecode('Cashmerino+Chunky'),jdecode(''),'/38728/60235.html','true',[],''],
		['PAGE','60262',jdecode('Cashmerino+Superchunky'),jdecode(''),'/38728/60262.html','true',[],''],
		['PAGE','60289',jdecode('Cashmerino+Astrakhan'),jdecode(''),'/38728/60289.html','true',[],''],
		['PAGE','60316',jdecode('Pure+Silk'),jdecode(''),'/38728/60316.html','true',[],'']
	],''],
	['PAGE','38755',jdecode('Louisa+Harding+Yarns'),jdecode(''),'/38755/index.html','true',[ 
		['PAGE','65354',jdecode('Sari+Ribbon'),jdecode(''),'/38755/65354.html','true',[],''],
		['PAGE','103378',jdecode('Impression'),jdecode(''),'/38755/103378.html','true',[],''],
		['PAGE','103405',jdecode('Fauve'),jdecode(''),'/38755/103405.html','true',[],''],
		['PAGE','103432',jdecode('Kimono+Ribbon'),jdecode(''),'/38755/103432.html','true',[],'']
	],''],
	['PAGE','40414',jdecode('Eki+Riva+Yarns'),jdecode(''),'/40414/index.html','true',[ 
		['PAGE','65381',jdecode('Supreme'),jdecode(''),'/40414/65381.html','true',[],''],
		['PAGE','65408',jdecode('Natal'),jdecode(''),'/40414/65408.html','true',[],''],
		['PAGE','80836',jdecode('Mohair'),jdecode(''),'/40414/80836.html','true',[],'']
	],''],
	['PAGE','40441',jdecode('Lana+Gatto+Yarns'),jdecode(''),'/40441/index.html','true',[ 
		['PAGE','117182',jdecode('Feeling'),jdecode(''),'/40441/117182.html','true',[],''],
		['PAGE','65462',jdecode('Mohair+Royale'),jdecode(''),'/40441/65462.html','true',[],''],
		['PAGE','65489',jdecode('Siviglia'),jdecode(''),'/40441/65489.html','true',[],''],
		['PAGE','65516',jdecode('Saragoza'),jdecode(''),'/40441/65516.html','true',[],''],
		['PAGE','65543',jdecode('Madrid'),jdecode(''),'/40441/65543.html','true',[],''],
		['PAGE','65570',jdecode('Cleopatra'),jdecode(''),'/40441/65570.html','true',[],''],
		['PAGE','65597',jdecode('Egitto'),jdecode(''),'/40441/65597.html','true',[],''],
		['PAGE','65624',jdecode('Mombasa'),jdecode(''),'/40441/65624.html','true',[],''],
		['PAGE','65651',jdecode('Safari'),jdecode(''),'/40441/65651.html','true',[],'']
	],''],
	['PAGE','117342',jdecode('Needles'),jdecode(''),'/117342/index.html','true',[ 
		['PAGE','118336',jdecode('Sets'),jdecode(''),'/117342/118336.html','true',[],''],
		['PAGE','118170',jdecode('Interchangeable+circulars+'),jdecode(''),'/117342/118170.html','true',[],''],
		['PAGE','118425',jdecode('Classic+circulars'),jdecode(''),'/117342/118425.html','true',[],''],
		['PAGE','118179',jdecode('Double+pointed+needles'),jdecode(''),'/117342/118179.html','true',[],''],
		['PAGE','97742',jdecode('Accessories'),jdecode(''),'/117342/97742.html','true',[],'']
	],''],
	['PAGE','4805',jdecode('Books+%26+patterns'),jdecode(''),'/4805/index.html','true',[ 
		['PAGE','55240',jdecode('Noro+patterns'),jdecode(''),'/4805/55240.html','true',[],''],
		['PAGE','55267',jdecode('Debbie+Bliss+patterns'),jdecode(''),'/4805/55267.html','true',[],''],
		['PAGE','65678',jdecode('Louisa+Harding+patterns'),jdecode(''),'/4805/65678.html','true',[],''],
		['PAGE','101642',jdecode('Other+great+books'),jdecode(''),'/4805/101642.html','true',[],'']
	],''],
	['PAGE','4994',jdecode('Tips+%26+Techniques'),jdecode(''),'/4994/index.html','true',[ 
		['PAGE','15501',jdecode('Needle+%26+Hook+Sizes'),jdecode(''),'/4994/15501.html','true',[],''],
		['PAGE','95542',jdecode('Yarn+Weights'),jdecode(''),'/4994/95542.html','true',[],''],
		['PAGE','15528',jdecode('Abbreviations'),jdecode(''),'/4994/15528.html','true',[],''],
		['PAGE','15555',jdecode('Knitting+basics'),jdecode(''),'/4994/15555.html','true',[],''],
		['PAGE','15582',jdecode('Finishing'),jdecode(''),'/4994/15582.html','true',[],'']
	],''],
	['PAGE','107596',jdecode('Retail+Outlets'),jdecode(''),'/107596.html','true',[],''],
	['PAGE','102291',jdecode('Knitting+Groups'),jdecode(''),'/102291.html','true',[],''],
	['PAGE','4616',jdecode('About+us'),jdecode(''),'/4616.html','true',[],'']];
var siteelementCount=62;
theSitetree.topTemplateName='Borders';
theSitetree.paletteFamily='C9DFEE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10432';
theSitetree.graphicsetId='10771';
theSitetree.contentColor='692643';
theSitetree.contentBGColor='F0F2F4';
var theTemplate={
				name: 			'Borders',
				paletteFamily: 	'C9DFEE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10432',
				graphicsetId: 	'10771',
				contentColor: 	'692643',
				contentBGColor: 'F0F2F4',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4559',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2GVD';
var companyName   = 'the+yarn+studio';
var htmlTitle	  = 'the+yarn+studio';
var metaKeywords  = 'knitting++knit++yarn++wool++knitting++wool++hand+knitting++knitting+needles++new+zealand+knitting+shop';
var metaContents  = 'on-line+knitting+shop';
					                                                                    
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 */					                                                            
