/* [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','4599',jdecode('Home'),jdecode(''),'/4599.html','true',[],''],
	['PAGE','4903',jdecode('about+us'),jdecode(''),'/4903.html','true',[],''],
	['PAGE','4930',jdecode('demos'),jdecode(''),'/4930.html','true',[],''],
	['PAGE','4957',jdecode('products'),jdecode(''),'/4957.html','true',[],''],
	['PAGE','4984',jdecode('services'),jdecode(''),'/4984.html','true',[],''],
	['PAGE','5011',jdecode('budget'),jdecode(''),'/5011/index.html','true',[ 
		['PAGE','6902',jdecode('budget+%28follow+up+page%29'),jdecode(''),'/5011/6902.html','false',[],'']
	],''],
	['PAGE','5038',jdecode('contact'),jdecode(''),'/5038/index.html','true',[ 
		['PAGE','9602',jdecode('contact+%28follow+up+page%29'),jdecode(''),'/5038/9602.html','false',[],'']
	],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='0A2447';
theSitetree.keyvisualId='2425';
theSitetree.keyvisualName='mp3.jpg';
theSitetree.fontsetId='395';
theSitetree.graphicsetId='444';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0A2447';
var theTemplate={
				name: 			'Amaze',
				paletteFamily: 	'0A2447',
				keyvisualId: 	'2425',
				keyvisualName: 	'mp3.jpg',
				fontsetId: 		'395',
				graphicsetId: 	'444',
				contentColor: 	'FFFFFF',
				contentBGColor: '0A2447',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'0A2447',
				b_color: 		'081B35',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5011',
internalId:  'aam010invt9j10e684624ed',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6902',
internalId:  'aam010invt9j10e684624ed',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5038',
internalId:  'aam010invt9j10e68a1ec27',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '9602',
internalId:  'aam010invt9j10e68a1ec27',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4599',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4599',
internalId:  '',
customField: '20071109-164235'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4903',
internalId:  '',
customField: '20071109-165845'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4930',
internalId:  '',
customField: '20080503-140910'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4957',
internalId:  '',
customField: '20071115-024016'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4984',
internalId:  '',
customField: '20080613-192358'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5011',
internalId:  '',
customField: '20061109-130954'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6902',
internalId:  '',
customField: '20061021-022957'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5038',
internalId:  '',
customField: '20061109-131022'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9602',
internalId:  '',
customField: '20061021-041012'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INVT9J';
var companyName   = 'ACEVOICES++VOICE+OVER';
var htmlTitle	  = 'WWW.ACEVOICES.COM';
var metaKeywords  = 'voice+talent+%2C+voice+over%2C+voiceover%2C+voice+overs%2C+voices+overs+%2C+podcasting%2C+voice+talents%2C+voice+over+talents+%2C+voice+actor%2C+voice+off%2C+greetings+voice+mail%2C+recording+spots%2Cvoiceovers%2C+voiceover+talent%2Cvoice+talent';
var metaContents  = 'Voice+Overs+delivered+instantly+over+the+internet+for+Commercials%2C+Narrations%2C+Promos%2C+Character+Voices%2C+Radio+Imaging%2C+Training+Voiceovers%2C+Corporate+Presentations%2C+Voice+On+Hold%2C+Voice+Prompts%2C+IVR%2C+Corporate+Presentations%2C+Audio+Books%2C+Sweepers%2C+Liners%2C+TV+Promos%2C+Narrations+for+Flash+Presentations%2C+Tutorials%2C+Voice+for+Web+Sites%2C+and+much+more.';
					                                                                    
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 */					                                                            
