/* [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','501',jdecode('Hakk%C4%B1m%C4%B1zda'),jdecode(''),'/501.html','true',[],''],
	['PAGE','552',jdecode('%C3%9Cr%C3%BCnlerimiz'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','8001',jdecode('%C3%87al%C4%B1%C5%9Fmalar%C4%B1m%C4%B1z'),jdecode(''),'/552/8001.html','true',[],''],
		['PAGE','16801',jdecode('%C3%87al%C4%B1%C5%9Fmalar%C4%B1m%C4%B1z'),jdecode(''),'/552/16801.html','true',[],'']
	],''],
	['PAGE','573',jdecode('%C4%B0leti%C5%9Fim'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','10101',jdecode('%C4%B0leti%C5%9FimTakip+eden+sayfa'),jdecode(''),'/573/10101.html','false',[],'']
	],''],
	['PAGE','6806',jdecode('Misafir+Defteri'),jdecode(''),'/6806/index.html','true',[ 
		['PAGE','6801',jdecode('Misafir+Defterini+oku'),jdecode(''),'/6806/6801.html','true',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1737';
theSitetree.keyvisualName='blumen.jpg';
theSitetree.fontsetId='22089';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1737',
				keyvisualName: 	'blumen.jpg',
				fontsetId: 		'22089',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '6806',
internalId:  '6806anatr0inxhq7',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '6801',
internalId:  '6806anatr0inxhq7',
customField: 'action=list'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '573',
internalId:  'anatr0inxhq7112d91aceb4',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '10101',
internalId:  'anatr0inxhq7112d91aceb4',
customField: 'followUp'
};
var canonHostname = 'wsc.natrohost.com';
var accountId     = 'ANATR0INXHQ7';
var companyName   = 'Krizantem+Dental';
var htmlTitle	  = 'Krizantem+Dental';
var metaKeywords  = 'Porselen%2BDi%C5%9F%2BDi%C5%9F%C3%A7i%2BDental%2BDentin%2BDi%C5%9F%C3%A7i+Koltu%C4%9Fu%2Bimplant%2B%C4%B0mplant+Porselen%2BKron%2BK%C3%B6pr%C3%BC%2BTotal%2BParsiyel%2BProtez%2BDi%C5%9F+Teknisyeni%2Binley-onley%2BGece+Pla%C4%9F%C4%B1%2BDi%C5%9F+Beyazlatma%2BPlaklar%2BDi%C5%9F+pla%C4%9F%C4%B1%2BZirkon%2BZirkon+Di%C5%9F%2BEmpres+Di%C5%9F%2BMetal+Desteksiz+Di%C5%9F';
var metaContents  = 'Krizantem+Dental+Di%C5%9F+Protez+Laboratuar%C4%B1';
					                                                                    
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 */					                                                            
