root = location.protocol +"//" + location.host;
//root = location.protocol +"//V:";

BLANK_IMAGE=root+"/images/spacer.gif";


var imageHeight = 20;
var imageWidth = 900;
var overlap = 10;

//keywords

var code="code";var url="url";var sub="sub";

//styles
var fade = {"fadeIn":"progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.5)","fadeOut":"progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.5)"};

var level0Color = {"border":"#884D87", "shadow":"#DBD8D1", "bgON":"#FFFFFF", "bgOVER":"#ccc4a8"};

var level1Color = {"border":"#884D87", "shadow":"#DBD8D1", "bgON":"#9f966a", "bgOVER":"#ccc4a8"};

var level2Color = {"border":"#884D87", "shadow":"#DBD8D1", "bgON":"#9e9b8f", "bgOVER":"#ccc4a8"};

var SpaceCss = {"ON":"levelSpace", "OVER":"levelSpace"};

var level0Css = {"ON":"level0On", "OVER":"level0Over"};

var level1Css = {"ON":"level1On", "OVER":"level1Over"};

var level2Css = {"ON":"level1On", "OVER":"level1Over"};

var SPACE_STYLE = {"border":0, "shadow":0, "color":level0Color, "css":SpaceCss};

var LEVEL0_STYLE = {border:0, shadow:0, "color":level0Color, "css":level0Css};

var LEVEL1_STYLE = {border:0, shadow:0, "color":level1Color, "css":level1Css};

var LEVEL2_STYLE = {border:0, shadow:0, "color":level2Color, "css":level2Css};

//items and formats

var MENU_CUBA =

[

	{"pos":"relative", "itemoff":[0, imageWidth+2], "leveloff":[0, 0], "style":LEVEL0_STYLE, "size":[imageHeight, imageWidth]},

	{code:'The Faculty', url:root+"/deans_message.htm", "format":{"image":null,"size":[imageHeight, 78]},
	sub:[
			{"size":[imageHeight, 120], "itemoff":[imageHeight+1,0], "leveloff":[imageHeight, 0], "style":LEVEL1_STYLE, "format":{"image":null},filters:'progid:DXImageTransform.Microsoft.Alpha(opacity=85)'},
			{code:'Dean\'s Message', url:root+"/deans_message.htm", "format":{"image":null}},
			{code:'Mission', url:root+"/mission.htm", "format":{"image":null}},
			{code:'Faculty Office Staff', url:root+"/facultyoffice.htm", "format":{"image":null}}
		]},
	{code:'|', "format":{"itemoff":[0, 76], "image":null, "style":SPACE_STYLE,"size":[imageHeight, 2]}},
	{code:'&nbsp;&nbsp;&nbsp;&nbsp;Organization', url:root+"/organization.htm", "format":{"itemoff":[0, 2],"image":null,"size":[imageHeight, 95]},
	sub:[
			{"size":[imageHeight, 270], "itemoff":[imageHeight+1,0], "leveloff":[imageHeight, 0], "style":LEVEL1_STYLE, "format":{"image":null},filters:'progid:DXImageTransform.Microsoft.Alpha(opacity=85)'},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;Accountancy', url:root+"/acy/index.htm", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;Hotel and Tourism Management', url:root+"/htm/index.htm", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;Decision Sciences & Managerial Economics', url:root+"/dse/index.htm", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;Finance', url:root+"/fin/index.htm", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;Management', url:root+"/mgt/index.htm", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;Marketing', url:root+"/mkt/index.htm", "format":{"image":null}}
		]},
	{code:'|', "format":{"itemoff":[0, 95], "image":null, "style":SPACE_STYLE,"size":[imageHeight, 2]}},
	{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Programmes', url:"#", "format":{"itemoff":[0, 2],"image":null,"size":[imageHeight, 100]},
	sub:[
			{"size":[imageHeight, 280], "itemoff":[imageHeight+1,0], "leveloff":[imageHeight, 0], "style":LEVEL1_STYLE, "format":{"image":null},filters:'progid:DXImageTransform.Microsoft.Alpha(opacity=85)'},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Undergraduate Programmes', url:root+"/bba/index.htm", "format":{"image":null},
				sub:[
					{"size":[imageHeight, 280], "itemoff":[imageHeight+1,0], "leveloff":[0, 280], "style":LEVEL2_STYLE, "format":{"image":null},filters:'progid:DXImageTransform.Microsoft.Alpha(opacity=85)'},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Integrated BBA', url:root+"/bba/bba.htm", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Global Business Studies', url:"http://www.cuhk.edu.hk/globe", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BBA-JD', url:root+"/bba/doubledegrees.htm", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Professional Accountancy', url:root+"/acy/acy_ugrad_content.htm", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hotel and Tourism Management', url:root+"/htm/htm_academic_00.htm", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Quantitative Finance', url:root+"/fin/qfn", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insurance, Financial and Actuarial Analysis', url:root+"/fin/ifaa", "format":{"image":null}}
					]
			},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Graduate Programmes', url:root+"/grad_index.htm", "format":{"image":null},
				sub:[
					{"size":[imageHeight, 150], "itemoff":[imageHeight+1,0], "leveloff":[0, 280], "style":LEVEL2_STYLE, "format":{"image":null},filters:'progid:DXImageTransform.Microsoft.Alpha(opacity=85)'},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EMBA', url:root+"/grad_executive_mba.htm", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MBA', url:root+"/grad_mba.htm", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MSc', url:root+"/grad_master_of_scienice.htm", "format":{"image":null}},
					{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Research', url:root+"/mphilphd/index.htm", "format":{"image":null}}
					]
			},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Executive Training and Diploma Programmes', url:root+"/apib/apib_award_overview.htm", "format":{"image":null}}
		]},
	{code:'|', "format":{"itemoff":[0, 100], "image":null, "style":SPACE_STYLE,"size":[imageHeight, 2]}},
	{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resources', url:"#", "format":{"itemoff":[0, 2],"image":null,"size":[imageHeight, 85]},
	sub:[
			{"size":[imageHeight, 180], "itemoff":[imageHeight+1,0], "leveloff":[imageHeight, 0], "style":LEVEL1_STYLE, "format":{"image":null},filters:'progid:DXImageTransform.Microsoft.Alpha(opacity=85)'},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;News and Press Releases', url:root+"/services/pressrelease.asp?DID=resources", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Academic Links', url:root+"/resources/academic_links.htm", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Seminars & Workshops', url:root+"/services/semalldept.asp?DID=resources", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recruitment', url:"http://perntc.per.cuhk.edu.hk/personnel/",  target:"_blank", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Student Corner', url:root+"/resources/student_corner.htm", "format":{"image":null}}
		]},
	{code:'|', "format":{"itemoff":[0, 85], "image":null, "style":SPACE_STYLE,"size":[imageHeight, 2]}},
	{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alumni', url:root+"/alumni/index.htm", "format":{"itemoff":[0, 2],"image":null,"size":[imageHeight, 78]},
	sub:[
			{"size":[imageHeight, 150], "itemoff":[imageHeight+1,0], "leveloff":[imageHeight, 0], "style":LEVEL1_STYLE, "format":{"image":null},filters:'progid:DXImageTransform.Microsoft.Alpha(opacity=85)'},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BBA Alumni', url:root+"/alumni/bba/index.htm", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CUMBA Alumni', url:"http://www.baf.cuhk.edu.hk/alumni/cumba.htm", "format":{"image":null}},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Beta Gamma Sigma', url:root+"/alumni/beta/index.htm", "format":{"image":null}}
		]},
	{code:'|', "format":{"itemoff":[0, 78], "image":null, "style":SPACE_STYLE,"size":[imageHeight, 2]}},
	{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Research', url:root+"/research/index.htm", "format":{"itemoff":[0, 2],"image":null,"size":[imageHeight, 85]}},
	{code:'|', "format":{"itemoff":[0, 85], "image":null, "style":SPACE_STYLE,"size":[imageHeight, 2]}},
	{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;APIB', url:root+"/apib/index.htm", "format":{"itemoff":[0, 2],"image":null,"size":[imageHeight, 60]},
	sub:[
			{"size":[imageHeight, 250], "itemoff":[imageHeight+1,0], "leveloff":[imageHeight, -190], "style":LEVEL1_STYLE, "format":{"image":null},filters:'progid:DXImageTransform.Microsoft.Alpha(opacity=85)'},
			{code:'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Asia-Pacific Institute of Business', url:root+"/apib/index.htm", "format":{"image":null}}
		]},


];


