var SIMPLE_FORMAT =
[
//0. left position
	17,
//1. top position
	0,
//2. show +/- buttons
	false,
//3. couple of button images (collapsed/expanded/blank)
	["../../images/c.gif", "../../images/e.gif", "../../images/b.gif"],
//4. size of images (width, height,ident for nodes w/o children)
	[14,14,0],
//5. show folder image
	true,
//6. folder images (closed/opened/document/fc/fe/d/c/e)
	["../../images/fc.gif", "../../images/fe.gif", "../../images/fc.gif"],
//7. size of images (width, height)
	[14,14],
//8. identation for each level [0/*first level*/, 16/*second*/, 32/*third*/,...]
//	[0,16,32,48,64,80,96,112,124],
	[0,8,16,32,48,64,80,94,112,124],
//9. tree background color ("" - transparent)
	"",
//10. default style for all nodes
	["clsDemoNode","clsDemoNode1","clsDemoNode1","clsDemoNode1","clsDemoNode1"],
//11. styles for each level of menu (default style will be used for undefined levels)
	[],//["clsNodeL0","clsNodeL1","clsNodeL2","clsNodeL3","clsNodeL4"],
//12. true if only one branch can be opened at same time
	true,
//13. item pagging and spacing
	[1,2],
	
];
var SIMPLE_NODES = [
		['Idiom of the Week', null, null,
			[{id:'idioms.htm'},'English Idioms','../idiom_of_the_week/idioms.htm',''],
			[{id:'idioms_c.htm'},'Cantonese Idioms','../idiom_of_the_week/idioms_c.htm',''],
		],
		
		[{id:'quotes.htm'},'Quote of the Week','../quote_of_the_week/quotes.htm',''],
		
		['Glossary', null, null,
			[{id:'glossary_banking.htm'},'Banking','../glossary/glossary_banking.htm',''],
			[{id:'glossary_hotel.htm'},'Hotel & Tourism','../glossary/glossary_hotel.htm',''],
			[{id:'glossary_hr.htm'},'Human Resources','../glossary/glossary_hr.htm',''],
			[{id:'glossary_it.htm'},'IT','../glossary/glossary_it.htm',''],
			[{id:'glossary_logistics.htm'},'Logistics & Transportation','../glossary/glossary_logistics.htm',''],
			[{id:'glossary_mktg.htm'},'Marketing','../glossary/glossary_mktg.htm',''],
			[{id:'glossary_merchandising.htm'},'Merchandising','../glossary/glossary_merchandising.htm',''],
			[{id:'glossary_sales.htm'},'Sales','../glossary/glossary_sales.htm',''],
		],

		['Tips', null, null,
			['English Learning Tips', null, null,
				[{id:'love_english.htm'},'Are you in love with English? 愛上英文了嗎？','../tips/love_english.htm',''],
				[{id:'learning_eng.htm'},'Learning English can increase your earnings by 35%','../tips/learning_eng.htm',''],
				[{id:'fluency_0510.htm'},'Fluency in 5 easy steps','../tips/fluency_0510.htm',''],
				[{id:'TalkingEng.htm'},'Talking Without Words','../tips/TalkingEng.htm',''],
				[{id:'10_secrets.htm'},'10 Secrets of success for English speakers<br>怎樣能夠說英文頂呱呱? ','../tips/10_secrets.htm',''],
				[{id:'perfect_pronoun.htm'},'10 tips for perfect pronunciation ','../tips/perfect_pronoun.htm',''],
				[{id:'shy_medium.htm'},'太害羞而不敢說英語嗎？','../tips/shy_medium.htm',''],
			],
			['Business English', null, null,
				[{id:'TOEIC.htm'},'English Test for the Workplace','../tips/TOEIC.htm',''],
				[{id:'deptstore.htm'},'English Conversation in a Department Store ','../tips/deptstore.htm',''],
				[{id:'restaurant.htm'},'Serving Customers in a Restaurant ','../tips/restaurant.htm',''],
				[{id:'any_questions.htm'},'Any questions? Making presentation in English<br>英語簡報技巧，教你小秘訣','../tips/any_questions.htm',''],
				[{id:'english_OE.htm'},'English for Office Emergencies ','../tips/english_OE.htm',''],
				[{id:'email_indicator.htm'},'商業英語電子郵件：5種實用的指示器','../tips/email_indicator.htm',''],				
			],
			['Everyday English', null, null,
				[{id:'air.htm'},'How to speak English in the air ','../tips/air.htm',''],
				[{id:'SurvivalEng.htm'},'Survival English for Eating Out ','../tips/SurvivalEng.htm',''],
				[{id:'nice_meet.htm'},'Nice to meet you! <br>很高興認識您! ','../tips/nice_meet.htm',''],
				[{id:'meeting_people.htm'},'Meeting people with English <br>透過英語結交朋友','../tips/meeting_people.htm',''],
				[{id:'headline.htm'},'Headline! Understanding English news <br>號外!看新聞學英文 ','../tips/headline.htm',''],
				[{id:'money_talks.htm'},'Money talks! Saving money in English <br>談錢！用英語談論存錢','../tips/money_talks.htm',''],
				[{id:'tele_speech.htm'},'必知的英文電話片語','../tips/tele_speech.htm',''],
			],
		],

];

var tree = new COOLjsTree("tree1", SIMPLE_NODES, SIMPLE_FORMAT);
//tree.expandAll(false);
function exp(node) {
   while (node) {
      if (!node.expanded) node.treeView.expandNode(node.index);
      node = node.parentNode;
   }
}
var SectionID2 = unescape(SectionID)
var node1 = tree.nodeByID(SectionID2)
exp(node1);

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
