/* [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','5201',jdecode('Home'),jdecode(''),'/5201.html','true',[],''],
	['PAGE','5601',jdecode('Common+Ingredients'),jdecode(''),'/5601.html','true',[],''],
	['PAGE','11401',jdecode('Chicken+Recipes'),jdecode(''),'/11401/index.html','true',[ 
		['PAGE','5622',jdecode('Chicken+with+Broccoli'),jdecode(''),'/11401/5622.html','true',[],''],
		['PAGE','29601',jdecode('Chicken+over+Chinese+Bai+Choy'),jdecode(''),'/11401/29601.html','true',[],''],
		['PAGE','19901',jdecode('Chicken+Drumstick'),jdecode(''),'/11401/19901.html','true',[],''],
		['PAGE','23101',jdecode('Chicken+w+Pepper+%26+Baby+Corn'),jdecode(''),'/11401/23101.html','true',[],''],
		['PAGE','25201',jdecode('Ginger+Wings'),jdecode(''),'/11401/25201.html','true',[],''],
		['PAGE','31201',jdecode('Lime+Chicken+Wings'),jdecode(''),'/11401/31201.html','true',[],'']
	],''],
	['PAGE','11422',jdecode('Beef+Recipes'),jdecode(''),'/11422/index.html','true',[ 
		['PAGE','5643',jdecode('Cantonese+Steak'),jdecode(''),'/11422/5643.html','true',[],''],
		['PAGE','20901',jdecode('Pineapple+Steak'),jdecode(''),'/11422/20901.html','true',[],''],
		['PAGE','23122',jdecode('Beef+with+bitter+melon'),jdecode(''),'/11422/23122.html','true',[],''],
		['PAGE','25222',jdecode('Beef+with+cauliflowers'),jdecode(''),'/11422/25222.html','true',[],''],
		['PAGE','18201',jdecode('Tze+Gua+Beef'),jdecode(''),'/11422/18201.html','true',[],'']
	],''],
	['PAGE','11301',jdecode('Pork+Recipes'),jdecode(''),'/11301/index.html','true',[ 
		['PAGE','5664',jdecode('Ginger-Scallion'),jdecode(''),'/11301/5664.html','true',[],''],
		['PAGE','30401',jdecode('Pork+w%2F+fried+tofu'),jdecode(''),'/11301/30401.html','true',[],''],
		['PAGE','11222',jdecode('Mui-Choy+Spareribs'),jdecode(''),'/11301/11222.html','true',[],''],
		['PAGE','20922',jdecode('Vermicelli+w%2F+slice+pork'),jdecode(''),'/11301/20922.html','true',[],''],
		['PAGE','25401',jdecode('Spareribs+with+Leeks'),jdecode(''),'/11301/25401.html','true',[],''],
		['PAGE','27001',jdecode('Pork+w%2F+Celery'),jdecode(''),'/11301/27001.html','true',[],''],
		['PAGE','27401',jdecode('Pork+with+Sour+Cabbage'),jdecode(''),'/11301/27401.html','true',[],'']
	],''],
	['PAGE','17401',jdecode('Seafoods'),jdecode(''),'/17401/index.html','true',[ 
		['PAGE','17422',jdecode('Pepper+Silverfish'),jdecode(''),'/17401/17422.html','true',[],''],
		['PAGE','20943',jdecode('Steam+Tilapia+fish'),jdecode(''),'/17401/20943.html','true',[],''],
		['PAGE','23301',jdecode('Crab+with+meat+sauce'),jdecode(''),'/17401/23301.html','true',[],''],
		['PAGE','27422',jdecode('Ginger-Scallion+Flounder'),jdecode(''),'/17401/27422.html','true',[],''],
		['PAGE','28301',jdecode('Shrimp+with+Tofu'),jdecode(''),'/17401/28301.html','true',[],'']
	],''],
	['PAGE','5685',jdecode('Vegetables+Recipes'),jdecode(''),'/5685/index.html','true',[ 
		['PAGE','12301',jdecode('Oily+Green'),jdecode(''),'/5685/12301.html','true',[],''],
		['PAGE','19922',jdecode('Bitter+Melon'),jdecode(''),'/5685/19922.html','true',[],''],
		['PAGE','20301',jdecode('Shanghai+Bai+Choy+'),jdecode(''),'/5685/20301.html','true',[],''],
		['PAGE','20964',jdecode('Braised+Tofu'),jdecode(''),'/5685/20964.html','true',[],''],
		['PAGE','23143',jdecode('Tomato+with+eggs'),jdecode(''),'/5685/23143.html','true',[],'']
	],''],
	['PAGE','11501',jdecode('Soup+Recipes'),jdecode(''),'/11501/index.html','true',[ 
		['PAGE','5706',jdecode('Fuzzy+Melon'),jdecode(''),'/11501/5706.html','true',[],'']
	],''],
	['PAGE','19401',jdecode('Steam+Recipes'),jdecode(''),'/19401/index.html','true',[ 
		['PAGE','19422',jdecode('Steam+Egg'),jdecode(''),'/19401/19422.html','true',[],''],
		['PAGE','21801',jdecode('Steam+minced+pork'),jdecode(''),'/19401/21801.html','true',[],''],
		['PAGE','27443',jdecode('Steam+Chicken+w%2F+Mushroom'),jdecode(''),'/19401/27443.html','true',[],'']
	],''],
	['PAGE','17443',jdecode('Asian+Fusions'),jdecode(''),'/17443/index.html','true',[ 
		['PAGE','23164',jdecode('Lemon+Pepper+Chicken'),jdecode(''),'/17443/23164.html','true',[],''],
		['PAGE','18601',jdecode('Napa+Mini+Hot+Dogs'),jdecode(''),'/17443/18601.html','true',[],''],
		['PAGE','25243',jdecode('Ketchup+Shrimp'),jdecode(''),'/17443/25243.html','true',[],''],
		['PAGE','27022',jdecode('Lemon+Pepper+Flounder'),jdecode(''),'/17443/27022.html','true',[],'']
	],''],
	['PAGE','25285',jdecode('Others'),jdecode(''),'/25285/index.html','true',[ 
		['PAGE','25264',jdecode('Pan+Fry+Egg'),jdecode(''),'/25285/25264.html','true',[],'']
	],''],
	['PAGE','5727',jdecode('Email+Contact'),jdecode(''),'/5727.html','true',[],''],
	['PAGE','6001',jdecode('Be+My+Guest'),jdecode(''),'/6001.html','true',[],''],
	['PAGE','18001',jdecode('Comments'),jdecode(''),'/18001.html','true',[],'']];
var siteelementCount=51;
theSitetree.topTemplateName='Quadrat';
theSitetree.paletteFamily='EE2E2E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10449';
theSitetree.graphicsetId='10837';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Quadrat',
				paletteFamily: 	'EE2E2E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10449',
				graphicsetId: 	'10837',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'EE2E2E',
				e_color: 		'807E7E',
				f_color: 		'434242',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20080723-005412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5727',
internalId:  '',
customField: '20080712-000138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20080808-010243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20081002-000545'
};
webappMappings['7008']=webappMappings['7008-6074']={
webappId:    '7008',
documentId:  '5727',
internalId:  '6074',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5622',
internalId:  '',
customField: '20080717-215651'
};
webappMappings['1002']=webappMappings['1002-6001aendu0in2l60']={
webappId:    '1002',
documentId:  '6001',
internalId:  '6001aendu0in2l60',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5643',
internalId:  '',
customField: '20080717-215713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5664',
internalId:  '',
customField: '20080816-103012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5685',
internalId:  '',
customField: '20081001-235258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5706',
internalId:  '',
customField: '20080717-215853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20081001-234155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11222',
internalId:  '',
customField: '20080816-103033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11401',
internalId:  '',
customField: '20081001-232606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11422',
internalId:  '',
customField: '20081001-233338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20081001-235849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20081002-230008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20081001-234740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17422',
internalId:  '',
customField: '20080717-224337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17443',
internalId:  '',
customField: '20081002-000347'
};
webappMappings['1003']=webappMappings['1003-aendu0in2l6011b3418aeb6']={
webappId:    '1003',
documentId:  '18001',
internalId:  'aendu0in2l6011b3418aeb6',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20080808-010323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20080816-103218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20080718-194622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20081002-000134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19422',
internalId:  '',
customField: '20080729-000417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19922',
internalId:  '',
customField: '20080722-235232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19901',
internalId:  '',
customField: '20080723-001550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20080723-003819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20964',
internalId:  '',
customField: '20080729-004312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20080807-223710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20922',
internalId:  '',
customField: '20080729-085956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20943',
internalId:  '',
customField: '20080729-082044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20080729-095504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20080816-102212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23164',
internalId:  '',
customField: '20080807-234557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23143',
internalId:  '',
customField: '20080808-000644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23122',
internalId:  '',
customField: '20080808-002714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20080808-005327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25243',
internalId:  '',
customField: '20080816-090532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25264',
internalId:  '',
customField: '20080816-103400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20080816-102814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25401',
internalId:  '',
customField: '20080816-103848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25222',
internalId:  '',
customField: '20080816-102849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25285',
internalId:  '',
customField: '20081001-231418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27022',
internalId:  '',
customField: '20080828-215016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27401',
internalId:  '',
customField: '20080827-231021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27422',
internalId:  '',
customField: '20080827-223039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27443',
internalId:  '',
customField: '20080827-224748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20080827-232624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27001',
internalId:  '',
customField: '20080822-223602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29601',
internalId:  '',
customField: '20081002-225053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20081002-233221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20081022-230221'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2L60';
var companyName   = 'Simple+Asian+Cookings';
var htmlTitle	  = 'Simple+Asian+Cookings';
var metaKeywords  = 'Cantonese%3B+Home+Cooking%3B+Recipes%3B+Easy+cooking%3B+30+Minutes';
var metaContents  = 'Homestyle+cantonese+cooking+receipes+from+preparation+to+finish+under+30+minutes.';
					                                                                    
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 */					                                                            

