﻿var SUBMENU_FORMAT =
[
//0. left position
	0,
//1. top position
	0,
//2. show +/- buttons
	false,
//3. couple of button images (collapsed/expanded/blank)
	[root+"/images/spacer.gif", root+"/images/spacer.gif", root+"/images/spacer.gif"],
//4. size of images (width, height,ident for nodes w/o children)
	[16,16,0],
//5. show folder image
	true,
//6. folder images (closed/opened/document)
	[root+"/images/spacer.gif", root+"/images/spacer.gif", root+"/images/spacer.gif"],
//7. size of images (width, height)
	[0,16],
//8. identation for each level [0/*first level*/, 16/*second*/, 32/*third*/,...]
	[0,0,15,30,45,80,96,112,124],
//9. tree background color ("" - transparent)
	"",
//10. default style for all nodes
	"left_menu",
//11. styles for each level of menu (default style will be used for undefined levels)
	["left_menu","left_menu2"],
//12. true if only one branch can be opened at same time
	true,
//13. item pagging and spacing
	[0,0],
/************** PRO EXTENSIONS ********************/
//14. draw explorer like tree ( identation will be ignored )
	false,
//15. Set of explorer images (folder, openfolder, page, minus, minusbottom, plus, plusbottom, line, join, joinbottom)
	[],
//16. Explorer images width/height
	[19,16],
//17. if true state will be saved in cookies
	true,
//18. if true - relative position will be used. (tree will be opened in place where init() was called)
	true,
//19. width and height of initial rectangle for relative positioning
	[184,320],
//20. resize background //works only under IE4+, NS6+ for relatiive positioning
	true,
//21. support bgcolor changing for selected node
	true,
//22. background color for non-selected and selected node
	["white","#EEEEEE"],
//23. text wrapping margin
	184
];

var div_head='<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td class=left_menu style="padding: 3px 0px 3px 0px;"  height=25>';
var div_tail='</td></tr></table>';

var div_head2='<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td class=left_menu2 style="padding: 3px 0px 3px 16px;">';
var div_tail2='</td></tr></table>';

var div_head3='<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td class=left_menu3 style="padding: 3px 0px 3px 16px;">';
var div_tail3='</td></tr></table>';

var div_head4='<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td class=left_menu4 style="padding: 3px 0px 3px 16px;">';
var div_tail4='</td></tr></table>';


var SAMPLE = [
	[div_head+'About the School'+div_tail, null, null,
		 [div_head2+'Director\'s Message'+div_tail2, 'deans_message.htm', null],
		 [div_head2+'Introduction'+div_tail2, 'introduction.htm', null],
	],
	[div_head+'Faculty And Staff'+div_tail, null, null],
	[div_head+'Research'+div_tail, null, null],
	[div_head+'Programmes'+div_tail, null, null],
	[div_head+'Courses'+div_tail, null, null],
	[div_head+'Student Activities'+div_tail, null, null],
	[div_head+'School Committees'+div_tail, null, null],
	[div_head+'External Relations'+div_tail, null, null],
	[div_head+'What\'s New'+div_tail, null, null],
	[div_head+'Enquiry'+div_tail, null, null],
	[div_head+'Honesty in Academic Work'+div_tail, null, null],
	[div_head+'A Guide for Student and Teachers'+div_tail, null, null]
];

var SUB_RESOURCE = [

	[div_head+'<a href=../../services/pressrelease.asp?DID=resources class=left_menu>'+'News and Press Releases'+'</a>'+div_tail, '../services/pressrelease.asp?DID=resources', null],
	[div_head+'<a href=../academic_links.htm class=left_menu>'+'Academic Links'+'</a>'+div_tail, 'academic_links.htm', null],
	[div_head+'<a href=../../services/semalldept.asp?DID=resources class=left_menu>'+'Seminars & Workshops'+'</a>'+div_tail, '../services/semalldept.asp?DID=resources', null],
	[div_head+'<a href=http://perntc.per.cuhk.edu.hk/personnel/ target=_blank class=left_menu>'+'Recruitment'+'</a>'+div_tail, 'http://perntc.per.cuhk.edu.hk/personnel/', '_blank'],
	[div_head+'<a href=../student_corner.htm class=left_menu>'+'Student Corner'+'</a>'+div_tail, 'student_corner.htm', null],
	[div_head+'Recent Awards & Achievements'+div_tail, null, null,
		[div_head2+'<a href=awards_fa.asp class=left_menu2b>'+'Faculty Achievements'+'</a>'+div_tail2, 'awards_fa.asp', null],
		[div_head2+'<a href=awards_res.asp class=left_menu2b>'+'Research Achievements'+'</a>'+div_tail2, 'awards_res.asp', null],
		[div_head2+'<a href=awards_stu.asp class=left_menu2b>'+'Student Achievements'+'</a>'+div_tail2, 'awards_stu.asp', null]
	]
	     
	
];