/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','752',jdecode('About+us'),jdecode(''),'/752.html','true',[],''],
	['PAGE','794',jdecode('Additional+Services'),jdecode(''),'/794.html','true',[],''],
	['PAGE','857',jdecode('Contact+Us'),jdecode(''),'/857/index.html','true',[ 
		['PAGE','51901',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/857/51901.html','false',[],'']
	],''],
	['PAGE','56101',jdecode('Location'),jdecode(''),'/56101.html','true',[],''],
	['PAGE','16622',jdecode('Distribution+Areas'),jdecode(''),'/16622.html','true',[],''],
	['PAGE','47701',jdecode('Delivery+Map'),jdecode(''),'/47701.html','true',[],''],
	['PAGE','55501',jdecode('New%21+Hotels+%26+Chambers'),jdecode(''),'/55501.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='F9C116';
theSitetree.keyvisualId='2458';
theSitetree.keyvisualName='immobilien.jpg';
theSitetree.fontsetId='404';
theSitetree.graphicsetId='459';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Collage',
				paletteFamily: 	'F9C116',
				keyvisualId: 	'2458',
				keyvisualName: 	'immobilien.jpg',
				fontsetId: 		'404',
				graphicsetId: 	'459',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'F9C116',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '701',
internalId:  '3352118',
customField: '1501'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '857',
internalId:  'aaplu0ineq5110d0fa54218',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '51901',
internalId:  'aaplu0ineq5110d0fa54218',
customField: 'followUp'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INEQ51';
var companyName   = 'Marketing+To+Realtors+-+Tampa+Bay';
var htmlTitle	  = 'Cost+Effective+Marketing+to+Tampa+Bay+Realtors';
var metaKeywords  = 'Tampa+Bay+Market%2Cadvertising%2C+real+estate+agents%2C+associates%2C+realtors%2C+courier%2C+real+estate+offices%2C+circulation%2C+distributers%2C+new+home+owners%2C+bulk+mail%2C+coverage%2C+realtor+labels%2C+advertising+agency%2C+door+to+door%2C+targeted+areas%2C+delivery%2C+broker+offices%2C+promoters%2C+mailing+labels%2C+information%2C+countywide%2C+flyer%2C+couriers%2C+network%2C+Mail%2C+direct+mail%2C+target+marketing%2C+real+estate%2C+real+estate+professionals%2C+service%2C+flyer%2C+flyers%2C+tampa+bay%2C+hillsborough%2C+pasco%2C+pinellas%2C+manatee%2C+sarasota%2C+hernando%2C+polk%2C+distribution%2C+magazines%2C+postcards%2C+copy%2C+copier%2C+design%2C+desktop+publishing%2C+marketing%2C+personalized%2C+hand+delivered%2C+brokers%2C+invitations%2C+brochures%2C+sales%2C+promotional+items%2C+printing%2C+printing+services%2C+Tampa+Bay+Builders+Association%2C+Lori%2C+Enterprises%2C+';
var metaContents  = 'Tampa+Bay+Market%2Cadvertising%2C+real+estate+agents%2C+associates%2C+realtors%2C+courier%2C+real+estate+offices%2C+circulation%2C+distributers%2C+new+home+owners%2C+bulk+mail%2C+coverage%2C+realtor+labels%2C+advertising+agency%2C+door+to+door%2C+targeted+areas%2C+delivery%2C+broker+offices%2C+promoters%2C+mailing+labels%2C+information%2C+countywide%2C+flyer%2C+couriers%2C+network%2C+Mail%2C+direct+mail%2C+target+marketing%2C+real+estate%2C+real+estate+professionals%2C+service%2C+flyer%2C+flyers%2C+tampa+bay%2C+hillsborough%2C+pasco%2C+pinellas%2C+manatee%2C+sarasota%2C+hernando%2C+polk%2C+distribution%2C+magazines%2C+postcards%2C+copy%2C+copier%2C+design%2C+desktop+publishing%2C+marketing%2C+personalized%2C+hand+delivered%2C+brokers%2C+invitations%2C+brochures%2C+sales%2C+promotional+items%2C+printing%2C+printing+services%2C+Tampa+Bay+Builders+Association%2C+Lori%2C+Enterprises%2C+';
					                                                                    
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 */					                                                            
