/* [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','6301',jdecode('Centro+Espiral+Mana'),jdecode(''),'/6301.html','true',[],''],
	['PAGE','6352',jdecode('SIT+TESOL+Cert+Course'),jdecode(''),'/6352/index.html','true',[ 
		['PAGE','12301',jdecode('more+about+the+course'),jdecode(''),'/6352/12301.html','true',[],''],
		['PAGE','6373',jdecode('FAQ'),jdecode(''),'/6352/6373.html','true',[],''],
		['PAGE','11001',jdecode('Living+in+our+town'),jdecode(''),'/6352/11001.html','true',[],''],
		['PAGE','6394',jdecode('Tuition+and+fees'),jdecode(''),'/6352/6394.html','true',[],''],
		['PAGE','6415',jdecode('Trainers'),jdecode(''),'/6352/6415.html','true',[],''],
		['PAGE','11022',jdecode('Graduates+Voices'),jdecode(''),'/6352/11022.html','true',[],''],
		['PAGE','6436',jdecode('Learning+Statements'),jdecode(''),'/6352/6436.html','true',[],''],
		['PAGE','6457',jdecode('Application+Form'),jdecode(''),'/6352/6457.html','true',[],''],
		['PAGE','6478',jdecode('Jobs'),jdecode(''),'/6352/6478.html','true',[],''],
		['PAGE','11043',jdecode('CEUs+%2F+Graduate+Credit'),jdecode(''),'/6352/11043.html','true',[],''],
		['PAGE','13801',jdecode('Would+love+to+but...'),jdecode(''),'/6352/13801.html','true',[],'']
	],''],
	['PAGE','11064',jdecode('Volunteer+Teachers'),jdecode(''),'/11064.html','true',[],''],
	['PAGE','6499',jdecode('Study+Spanish'),jdecode(''),'/6499.html','true',[],''],
	['PAGE','10701',jdecode('Links'),jdecode(''),'/10701.html','true',[],''],
	['PAGE','11085',jdecode('Photos'),jdecode(''),'/11085.html','true',[],''],
	['PAGE','11106',jdecode('Volcano+Adventures'),jdecode(''),'/11106.html','true',[],''],
	['PAGE','11127',jdecode('Mary%26%23x27%3Bs+journal'),jdecode(''),'/11127.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Grace';
theSitetree.paletteFamily='FBB044';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32049';
theSitetree.graphicsetId='13869';
theSitetree.contentColor='484848';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Grace',
				paletteFamily: 	'FBB044',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32049',
				graphicsetId: 	'13869',
				contentColor: 	'484848',
				contentBGColor: 'FFFFFF',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20080924-182243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6352',
internalId:  '',
customField: '20080924-031505'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6373',
internalId:  '',
customField: '20080923-212410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6394',
internalId:  '',
customField: '20080923-213440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6415',
internalId:  '',
customField: '20080923-213542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6436',
internalId:  '',
customField: '20080923-214011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6457',
internalId:  '',
customField: '20080923-214518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6478',
internalId:  '',
customField: '20080923-215742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6499',
internalId:  '',
customField: '20080924-015737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20080923-101701'
};
webappMappings['7060']=webappMappings['7060-41e4fa5d1860e637a1bef4a389b630a1']={
webappId:    '7060',
documentId:  '11085',
internalId:  '41e4fa5d1860e637a1bef4a389b630a1',
customField: 'language:en;country:US;'
};
webappMappings['7050']=webappMappings['7050-5302']={
webappId:    '7050',
documentId:  '11127',
internalId:  '5302',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11127',
internalId:  '',
customField: '20080923-103323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11106',
internalId:  '',
customField: '20080924-015618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20080923-213142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11022',
internalId:  '',
customField: '20080923-213813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11043',
internalId:  '',
customField: '20080923-220425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11064',
internalId:  '',
customField: '20080923-103208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11085',
internalId:  '',
customField: '20080923-103208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20080923-210029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20080924-212048'
};
webappMappings['1501']=webappMappings['1501-12232790']={
webappId:    '1501',
documentId:  '6301',
internalId:  '12232790',
customField: '1501'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INE4PX';
var companyName   = 'TESOL+Training+Costa+Rica';
var htmlTitle	  = 'TESOL+and+TEFL+Training+in+the+heart+of+Costa+Rica%21';
var metaKeywords  = 'Costa+Rica%2C+TESOL%2C+TEFL%2C+teaching+English+to+speakers+of+other+languages%2C+EFL%2C+ESL%2C+English+as+a+foreign+language%2C+rural%2C+English%2C+teacher+training%2C+school%2C+';
var metaContents  = 'We+are+a+small+teacher+training+center+and+community+English+program+located+in+a+small+town+in+rural+Costa+Rica.+We+offer+the+SIT+TESOL+Certificate+Course+and+design+other+trainings+to+suit+local+and+institutional+needs.+Our+English+program+serves+teens+and+adults+from+our+local+communities.+';
					                                                                    
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 */					                                                            

