/* [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','301',jdecode('Products+%26+News'),jdecode(''),'/301/index.html','true',[ 
		['PAGE','51201',jdecode('Enterprise'),jdecode(''),'/301/51201.html','true',[],''],
		['PAGE','52101',jdecode('Business'),jdecode(''),'/301/52101.html','true',[],''],
		['PAGE','44364',jdecode('Residential'),jdecode(''),'/301/44364.html','true',[],'']
	],''],
	['PAGE','53701',jdecode('Support'),jdecode(''),'/53701/index.html','true',[ 
		['PAGE','415',jdecode('Download+Section'),jdecode(''),'/53701/415.html','true',[],''],
		['PAGE','54501',jdecode('FAQs+%26+Glossary'),jdecode(''),'/53701/54501.html','true',[],'']
	],''],
	['PAGE','436',jdecode('Contact'),jdecode(''),'/436.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Aroundtheworld';
theSitetree.paletteFamily='7FACDC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10793';
theSitetree.graphicsetId='11215';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7FACDC';
var theTemplate={
				name: 			'Aroundtheworld',
				paletteFamily: 	'7FACDC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10793',
				graphicsetId: 	'11215',
				contentColor: 	'000000',
				contentBGColor: '7FACDC',
				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: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20080609-122420'
};
webappMappings['7008']=webappMappings['7008-836']={
webappId:    '7008',
documentId:  '53701',
internalId:  '836',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '436',
internalId:  '',
customField: '20080731-162920'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABRI10INEQKW';
var companyName   = 'DrayTek++Philippines+++%7E+++The+world+within+your+reach';
var htmlTitle	  = 'DrayTek+Philippines';
var metaKeywords  = 'DrayTek%2C+Philippines%2C+San+Miguel%2C+Manila%2C+Router%2C+ADSL%2C+ADSL2%2C+ADSL2%2F2%2B%2C+Modem%2C+Security%2C+Broadband%2C+Security+Broadband%2C+Dual+WAN%2C+Voip%2C+Voice+over+IP%2C+Unified%2C+Firewall%2C+VPN%2C+Network+Features%2C+Content+Filtering%2C+System++Management%2C+Load+Balance%2C+QoS%2C+High+Availability%2C+Anti-Virus%2C+Anti-Spam%2C+Wireless%2C+Access%2C+Point';
var metaContents  = 'VigorPro5500%2C+VigorPro+5500%2C+Vigor3300V%2C+Vigor+3300V%2C+Vigor2950%2C+Vigor+2950%2C+Vigor2910VG%2C+Vigor+2910VG%2C+Vigor2910G%2C+Vigor+2910G%2C+Vigor2910V%2C+Vigor+2910V%2C+Vigor2910%2C+Vigor+2910%2C+Vigor2800VG%2C+Vigor+2800VG%2C+Vigor2800G%2C+Vigor+2800G%2C+Vigor2800V%2C+Vigor+2800V%2C+Vigor2800%2C+Vigor+2800%2C+Vigor2700VG%2C+Vigor+2700VG%2C+Vigor2700G%2C+Vigor+2700G%2C+Vigor2700V%2C+Vigor2+700V%2C+Vigor2700%2C+Vigor+2700%2C+Vigor2200VG%2C+Vigor+2200VG%2C+Vigor2200V%2C+Vigor+2200V%2C+Vigor2100VG%2C+Vigor+2100VG%2C+Vigor2100V%2C+Vigor+2100V%2C+Products';
					                                                                    
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 */					                                                            
