/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','6501',jdecode('Home+page+'),jdecode(''),'/6501.html','true',[],''],
	['PAGE','401',jdecode('Mini+Marvels+World'),jdecode(''),'/401.html','true',[],''],
	['PAGE','19301',jdecode('MM+Club+information'),jdecode(''),'/19301.html','true',[],''],
	['PAGE','452',jdecode('Meet+the+M.+M.+Team'),jdecode(''),'/452.html','true',[],''],
	['PAGE','473',jdecode('Mini+Marvel+toy+sales'),jdecode(''),'/473.html','true',[],''],
	['PAGE','12001',jdecode('Who+is+Tanya+Larrigan'),jdecode(''),'/12001.html','true',[],''],
	['PAGE','662',jdecode('Tribute+for+Hercules'),jdecode(''),'/662.html','true',[],''],
	['PAGE','515',jdecode('Real+Team++travels'),jdecode(''),'/515.html','true',[],''],
	['PAGE','63001',jdecode('M.M.+Toys++travels'),jdecode(''),'/63001.html','true',[],''],
	['PAGE','59701',jdecode('Did+you+know%3F'),jdecode(''),'/59701.html','true',[],''],
	['PAGE','557',jdecode('The+Teams+diary'),jdecode(''),'/557.html','true',[],''],
	['PAGE','578',jdecode('M.M.s+Open+Day'),jdecode(''),'/578.html','true',[],''],
	['PAGE','494',jdecode('A+Learning+Curve+4+u'),jdecode(''),'/494.html','true',[],''],
	['PAGE','536',jdecode('Links'),jdecode(''),'/536.html','true',[],''],
	['PAGE','599',jdecode('A+Learning+Curve+day'),jdecode(''),'/599.html','true',[],''],
	['PAGE','641',jdecode('Competiton+time'),jdecode(''),'/641.html','true',[],''],
	['PAGE','683',jdecode('Contact+Tanya'),jdecode(''),'/683.html','true',[],''],
	['PAGE','2006',jdecode('please+sign+Guestbook'),jdecode(''),'/2006.html','true',[],''],
	['PAGE','2201',jdecode('Your+photos+%26+the+M.M.s'),jdecode(''),'/2201.html','true',[],''],
	['PAGE','6552',jdecode('Information+for+schools'),jdecode(''),'/6552.html','true',[],''],
	['PAGE','35701',jdecode('My+dream+the+toys'),jdecode(''),'/35701.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Herzchen';
theSitetree.paletteFamily='FFC0E1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='17117';
theSitetree.graphicsetId='12487';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Herzchen',
				paletteFamily: 	'FFC0E1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'17117',
				graphicsetId: 	'12487',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'E64446',
				e_color: 		'FFC0E1',
				f_color: 		'F5B4B5',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20080528-165532'
};
webappMappings['1002']=webappMappings['1002-2006anbt10in2doe']={
webappId:    '1002',
documentId:  '2006',
internalId:  '2006anbt10in2doe',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-45c9639ed0b3becdbc2b5df31ec76983']={
webappId:    '7060',
documentId:  '2201',
internalId:  '45c9639ed0b3becdbc2b5df31ec76983',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20080315-070659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2006',
internalId:  '',
customField: '20071105-134125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20080427-050936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080427-050325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20080528-165846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20080528-165140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20080427-050116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35701',
internalId:  '',
customField: '20080427-045230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20080528-170012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20080726-065230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080315-071755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6552',
internalId:  '',
customField: '20080427-045600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20080427-045044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20080315-073039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20080427-051640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20080427-051246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599',
internalId:  '',
customField: '20080315-072143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20071119-091246'
};
webappMappings['1501']=webappMappings['1501-3717637']={
webappId:    '1501',
documentId:  '6501',
internalId:  '3717637',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59701',
internalId:  '',
customField: '20071206-075815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63001',
internalId:  '',
customField: '20080427-051146'
};
var canonHostname = 'coucm4all02.netbenefit.co.uk';
var accountId     = 'ANBT10IN2DOE';
var companyName   = 'The+Mini+Marvels%C2%AE+Tanya+Larrigans+mini+horses';
var htmlTitle	  = 'Meet+The+Mini+Marvels%C2%AE+Tanya+Larrigans+miniature+horse+team+++childrens+toys.';
var metaKeywords  = 'mini+marvels+tanya+larrigan+childrens+toys+collectibles+fun+educational+plush+toy+horses++display+team+international+rider+and+trainer+the+magic+of+the+horse+lessons+course+learning+curve';
var metaContents  = 'this+is+the+home+of+tanya+larrigans+famous+miniature+horse+team+the+mini+marvels+-+it+also+has+the+childrens+mini+marvels+plush+toys+designed+by+tanya+herself%2C+an+educational+site+to+learn+about+miniature+horses+and+see+the+magic+of+the+horse';
					                                                                    
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            
