/* [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','6201',jdecode('Main'),jdecode(''),'/6201.html','true',[],''],
	['PAGE','6252',jdecode('About+us'),jdecode(''),'/6252.html','true',[],''],
	['PAGE','7801',jdecode('Meet+the+Team'),jdecode(''),'/7801.html','true',[],''],
	['PAGE','6294',jdecode('Contact+us'),jdecode(''),'/6294.html','true',[],''],
	['PAGE','8801',jdecode('Memories'),jdecode(''),'/8801.html','true',[],''],
	['PAGE','8601',jdecode('Information'),jdecode(''),'/8601.html','false',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='879ED6';
theSitetree.keyvisualId='6884';
theSitetree.keyvisualName='kv_6884.jpg';
theSitetree.fontsetId='27956';
theSitetree.graphicsetId='12030';
theSitetree.contentColor='354B86';
theSitetree.contentBGColor='94AAE1';
var theTemplate={
				name: 			'Angkor',
				paletteFamily: 	'879ED6',
				keyvisualId: 	'6884',
				keyvisualName: 	'kv_6884.jpg',
				fontsetId: 		'27956',
				graphicsetId: 	'12030',
				contentColor: 	'354B86',
				contentBGColor: '94AAE1',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'94AAE1',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['7008']={
webappId:    '7008',
documentId:  '6294',
internalId:  '2422',
customField: 'language:pl;country:PL;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20090315-234834'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6294',
internalId:  '',
customField: '20090315-193215'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6252',
internalId:  '',
customField: '20090315-193405'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '6201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '6201',
internalId:  '3299720',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20090315-232001'
};
var canonHostname = 'cm4all.az.pl';
var accountId     = 'AAZ010IN2BD4';
var companyName   = 'Sinai+College+Diving+Center';
var htmlTitle	  = 'Sinai+College+Diving+Center%2CDiving+Sharm+el+Sheikh%2CDiving+Red+Sea%2C+Diving+Egypt%2CDive+Liveaboard';
var metaKeywords  = 'diving+sharm%2Cdiving+sharm+el+sheikh%2Cdiving+red+sea%2Cdive%2Cscuba+diving%2Cdiving+sinai%2Csinai+college%2C+dive+course%2CPADI%2CSSI%2Cdiving+dahab%2Cdiving+liveaboard%2Cdiving+egypt%2Cdiving+thistlegorm%2Cwreck%2Cdiving+ras+mohammed%2Ctiran%2Cdiver%2Csnorkeling%2Cshark%2Ctauchen%2Cimmersione%2Ccressi%2Cliveaboards%2Cvacation%2Ctrip%2Cexcursion%2Cbiology%2Cunderwater%2Csport%2Ccentrum+nurkowe%2Cnurkowanie%2Csynaj%2Cwrak%2Cegipt%2Cnurek%2Cdiving+club%2Cdive+sites%2Ccoral+reef+diving%2Cscuba+diving%2Cnitrox+diving%2Cdiving+vide%2Cscuba+diving+packages%2Cscuba+diving+photos%2Cbuy+diving%2Cdiving+physics%2Cdiving+with+sharks%2Cscuba+diving+license%2Cdeep+blue+diving%2Cdiving+equipement%2Cwetsuits%2Caquata%2Cwater%2Csea%2Csubacqueo%2Cmar+rosso%2Cbariera+corallina%2Ccrociera%2Cbarca%2Cboat%2Cattrezzatura%2Cbombole%2Cbarco+nazionale%2Cpesci%2Cmascera%2Cpinne%2Crelitti%2Cspecialita%2Cisola+di+tiran%2Ccmas%2Cnaui%2Cbattesemo+del+mar%2Cna%60ama+bay%2Cdeserto%2Cwyspa+tiran%2Cmorze+czerwone%2Cwczasy%2Cwakacje%2Cla+plong%C3%A9e%2Cmer%2C%C3%A9pave%2Cclub+de+plong%C3%A9e%2Cplong%C3%A9e+sous+marine%2Cplong%C3%A9e+niveau%2Cclub+plong%C3%A9e%2Csalon+de+la+plong%C3%A9e%2Cmat%C3%A9riel+de+plong%C3%A9e%2Ccentre+de+plong%C3%A9e%2Ccours+de+plong%C3%A9e%2Cla+plong%C3%A9e+sous+marine%2Cvoyage+plong%C3%A9e%2Cplong%C3%A9e+marseille%2Cordinateur+de+plong%C3%A9e%2Cphoto+plong%C3%A9e%2Cplong%C3%A9e+egypte%2Csites+de+plong%C3%A9epassion+plong%C3%A9e%2Capn%C3%A9e%2Cmer+rouge%2Capn%C3%A9a';
var metaContents  = 'Diving+Egypt%2C+diving+Sinai%2Cdiving+Sharm+el+Sheikh%2CSinai+College%2CDiving+Center%2Cdiving+Red+Sea%2Cdive%2CDaily+Diving%2CCourses%2CPADI%2C+SSI%2Cdiving+liveaboard%2Cdiving+Tiran%2CRas+Mohammed%2CShip+Wreck+diving%2Cdiving+Thistlegorm%2CDunraven%2Cdiving+Dahab%2CSharm+el+Sheikh%2C+dive+sites%2C+coral+reef';
					                                                                    
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 */					                                                            
