/* [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','1701',jdecode('Home%E9%A6%96%E9%A1%B5'),jdecode(''),'/1701.html','true',[],''],
	['PAGE','25001',jdecode('%E7%BE%8E%E5%9B%BD%E7%95%99%E5%AD%A6%E4%BB%8B%E7%BB%8D'),jdecode(''),'/25001.html','true',[],''],
	['PAGE','25201',jdecode('%E5%AE%8C%E7%BE%8E%E7%95%99%E5%AD%A6%E6%9C%8D%E5%8A%A1'),jdecode(''),'/25201.html','true',[],''],
	['PAGE','25222',jdecode('%E5%8A%A0%E5%B7%9E%E5%88%9D%E9%AB%98%E4%B8%AD%E6%95%99%E5%B8%88%E7%94%B3%E8%80%83%E9%A1%B9%E7%9B%AE'),jdecode(''),'/25222.html','true',[],''],
	['PAGE','25243',jdecode('%E7%BE%8E%E5%9B%BD%E7%95%99%E5%AD%A6%E5%87%86%E5%A4%87'),jdecode(''),'/25243.html','true',[],''],
	['PAGE','27001',jdecode('%E7%94%B3%E8%AF%B7%E7%95%99%E5%AD%A6%E8%B5%84%E6%96%99'),jdecode(''),'/27001.html','true',[],''],
	['PAGE','27122',jdecode('%E7%BE%8E%E5%9B%BD%E7%95%99%E5%AD%A6%E5%8A%A8%E6%80%81'),jdecode(''),'/27122.html','true',[],''],
	['PAGE','35301',jdecode('%E6%B4%9B%E7%BA%A6%E6%8B%89%E5%A4%A7%E5%AD%A6%E5%8F%8C%E8%AF%AD%E6%95%99%E5%B8%88'),jdecode(''),'/35301.html','true',[],''],
	['PAGE','40401',jdecode('%E5%9C%A8%E7%BA%BF%E7%95%99%E8%A8%80%E6%9D%BF'),jdecode(''),'/40401.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Meta';
theSitetree.paletteFamily='72A7D3';
theSitetree.keyvisualId='11304';
theSitetree.keyvisualName='kv_11304.jpg';
theSitetree.fontsetId='31993';
theSitetree.graphicsetId='13826';
theSitetree.contentColor='020202';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Meta',
				paletteFamily: 	'72A7D3',
				keyvisualId: 	'11304',
				keyvisualName: 	'kv_11304.jpg',
				fontsetId: 		'31993',
				graphicsetId: 	'13826',
				contentColor: 	'020202',
				contentBGColor: 'FFFFFF',
				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: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20080610-184042'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20080610-033804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25222',
internalId:  '',
customField: '20080610-033829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25243',
internalId:  '',
customField: '20080610-033905'
};
webappMappings['1501']=webappMappings['1501-8335618']={
webappId:    '1501',
documentId:  '1701',
internalId:  '8335618',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20080610-033742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27001',
internalId:  '',
customField: '20080610-033931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40401',
internalId:  '',
customField: '20080610-190002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27122',
internalId:  '',
customField: '20080610-033959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20080610-034021'
};
webappMappings['7008']=webappMappings['7008-4302']={
webappId:    '7008',
documentId:  '40401',
internalId:  '4302',
customField: 'language:en;country:US;'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2TM6';
var companyName   = '%E5%AE%8C%E7%BE%8E%E7%95%99%E5%AD%A6+Perfect++Students++Service';
var htmlTitle	  = '%E5%AE%8C%E7%BE%8E%E7%95%99%E5%AD%A6';
var metaKeywords  = 'Perfect+Student+Services+helps+get+your+visa+to+study+in+the+USA+for+internation+F-1+Visa+Student+to+obtain+a+Form+I-20.%E5%AE%8C%E7%BE%8E%E7%95%99%E5%AD%A6+%E4%BB%A3%E5%8A%9E%E7%AD%BE%E8%AF%81+%E4%B8%93%E7%B2%BE%E4%BB%A3%E5%8A%9EI-120%E5%AD%A6%E7%94%9F%E6%B3%A8%E5%86%8C+%E5%8D%8F%E5%8A%A9%E9%80%89%E5%AD%A6%E6%A0%A1++%E7%95%99%E5%AD%A6%E7%BE%8E%E5%9B%BD';
var metaContents  = 'Perfect+Student+Services+helps+get+your+visa+to+study+in+the+USA+for+international+F-1+Visa++Student+to+obtain+a+Form+I-20.+%E5%AE%8C%E7%BE%8E%E7%95%99%E5%AD%A6+%E4%BB%A3%E5%8A%9E%E7%AD%BE%E8%AF%81+%E4%B8%93%E7%B2%BE%E4%BB%A3%E5%8A%9EI-120%E5%AD%A6%E7%94%9F%E6%B3%A8%E5%86%8C+%E5%8D%8F%E5%8A%A9%E9%80%89%E5%AD%A6%E6%A0%A1+%E7%95%99%E5%AD%A6%E7%BE%8E%E5%9B%BD';
					                                                                    
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 */					                                                            
