/******************************************************************************
*	(c) Ger Versluis 2000 version 5.41 24 December 2001				*
*	For info write to menus@burmees.nl							*
*	You may remove all comments for faster loading					*
******************************************************************************/

	var NoOffFirstLineMenus=6;			// Number of first level items
	var LowBgColor='';					// Background color when mouse is not over
	var LowSubBgColor='#000000';		// Background color when mouse is not over on subs
	var HighBgColor='';					// Background color when mouse is over
	var HighSubBgColor='#CCCCCC';		// Background color when mouse is over on subs
	var FontLowColor='';				// Font color when mouse is not over
	var FontSubLowColor='#FFFFFF';		// Font color subs when mouse is not over
	var FontHighColor='';				// Font color when mouse is over
	var FontSubHighColor='#000000';		// Font color subs when mouse is over
	var BorderColor='';					// Border color
	var BorderSubColor='#323232';		// Border color for subs
	var BorderWidth=1;					// Border width
	var BorderBtwnElmnts=0;				// Border between elements 1 or 0
	var FontFamily="宋体"				// Font family menu items
	var FontSize=10;					// Font size menu items
	var FontBold=0;						// Bold menu items 1 or 0
	var FontItalic=0;					// Italic menu items 1 or 0
	var MenuTextCentered='center';		// Item text position 'left', 'center' or 'right'
	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
	var ChildOverlap=1;					// horizontal overlap child/parent
	var ChildVerticalOverlap=1;			// vertical overlap child/parent
	var StartLeft=0;					// Menu offset x coordinate	(TO BE CALCULATED AFTER PAGE LOADED - Terence)
	var StartTop=0;						// Menu offset y coordinate	(TO BE CALCULATED AFTER PAGE LOADED - Terence)
	var VerCorrect=0;					// Multiple frames y correction
	var HorCorrect=0;					// Multiple frames x correction
	var LeftPaddng=9;					// Left padding
	var TopPaddng=0;					// Top padding
	var FirstLineHorizontal=1;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=0;			// Frames in cols or rows 1 or 0
	var DissapearDelay=1000;			// delay before menu folds in
	var TakeOverBgColor=1;				// Menu frame takes over background color subitem frame
	var FirstLineFrame='';				// Frame where first level appears
	var SecLineFrame='';				// Frame where sub levels appear
	var DocTargetFrame='';				// Frame where target documents appear
	var TargetLoc='';					// span id for relative positioning
	var HideTop=0;						// Hide first level when loading new document 1 or 0
	var MenuWrap=0;						// enables/ disables menu wrap 1 or 0
	var RightToLeft=0;					// enables/ disables right to left unfold 1 or 0
	var UnfoldsOnClick=0;				// Level 1 unfolds onclick/ onmouseover
	var WebMasterCheck=0;				// menu tree checking on or off 1 or 0
	var ShowArrow=0;					// Uses arrow gifs when 1
	var KeepHilite=1;					// Keep selected path highligthed
	var Arrws=['',0,0,'',0,0,'',0,0];	// Arrow source, width and height

	var NaviWidth=new Array(150,70,75,110,115,118,120,165,170)			// Menu width (added by Terence)
	var ImagePath='../'													// For centralise hosting of images (added by Terence)
	var ImgPad1='<img src='+ImagePath+'s.gif width=5 height=10>'		// For single row spacer (added by Terence)


function BeforeStart(){getNavStart()}									// (added by Terence)
function AfterBuild(){window.onresize=(Nav4||DomNav)?ReDoWhole:RePos}	// (added by Terence)
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}

// Functions to retrieve xy coordinates of reference image ~NavStart~ and calculate the actual StartLeft/StartTop	(added by Terence)
function getNavStart(){StartLeft=getPos(document.NavStart,0),StartTop=getPos(document.NavStart,1);return}
function getPos(o,y){var d=document,p=0;if(d.all) {while(o!=d.body) {p+=y?o.offsetTop:o.offsetLeft;o=o.offsetParent}} else {p=y?o.y:o.x};return p}

// Menu tree
//	MenuX=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);
//	For rollover images set "Text to show" to: "rollover:Image1.jpg:Image2.jpg"

Menu1=new Array('rollover:blank110.gif:blank110.gif', 				'','',7,21,NaviWidth[3])
	Menu1_1=new Array(ImgPad1+'马佛青94年佛学考试',					'../qna/qnamain.asp?n=1001','',0,15,NaviWidth[0])
	Menu1_2=new Array(ImgPad1+'马佛青95年佛学考试',					'../qna/qnamain.asp?n=1002','',0,15)
	Menu1_3=new Array(ImgPad1+'马佛青96年佛学考试',					'../qna/qnamain.asp?n=1003','',0,15)
	Menu1_4=new Array(ImgPad1+'马佛青97年佛学考试',					'../qna/qnamain.asp?n=1004','',0,15)
	Menu1_5=new Array(ImgPad1+'马佛青98年佛学考试',					'../qna/qnamain.asp?n=1005','',0,15)
	Menu1_6=new Array(ImgPad1+'马佛青99年佛学考试',					'../qna/qnamain.asp?n=1006','',0,15)
	Menu1_7=new Array(ImgPad1+'马佛青千禧年佛学考试',				'../qna/qnamain.asp?n=1007','',0,15)

Menu2=new Array('rollover:blank110.gif:blank110.gif',				'','',5,21,NaviWidth[6])
	Menu2_1=new Array(ImgPad1+'本月份活动表',						'../activity/activity.asp','',0,15,NaviWidth[6])
	Menu2_2=new Array(ImgPad1+'上月份活动表',						'../activity/activity_old.asp','',0,15)
	Menu2_3=new Array(ImgPad1+'本月份活动报导',						'../news/cnews.asp','',0,15)
	Menu2_4=new Array(ImgPad1+'上个月活动报导',						'../news/cnews_old.asp','',0,15)
	Menu2_5=new Array(ImgPad1+'通讯地址',							'../directory/cdirect.htm','',0,15)

Menu3=new Array('rollover:blank110.gif:blank110.gif',				'','',6,21,NaviWidth[4])
	Menu3_1=new Array(ImgPad1+'精选文章',							'../cart/index.asp','',0,15,NaviWidth[0])
	Menu3_2=new Array(ImgPad1+'新、好佛书',							'../book/cbook.asp','',0,15)
	Menu3_3=new Array(ImgPad1+'汉传藏经',							'../sutra/index.htm','',0,15)
	Menu3_4=new Array(ImgPad1+'经书讲解',							'../cart/fs.htm','',0,15)
	Menu3_5=new Array(ImgPad1+'赠书',								'../freebook/cview.asp','',0,15)
	Menu3_6=new Array(ImgPad1+'网友推荐--佛书·文章',				'../bookslinks/LinkChineseBks.asp','',0,15)

Menu4=new Array('rollover:blank110.gif:blank110.gif',				'','',4,21,NaviWidth[5])
	Menu4_1=new Array(ImgPad1+'明师指点',							'../chat/closed.htm','',0,15,NaviWidth[5])
	Menu4_2=new Array(ImgPad1+'讯息交流',							'../chat/closed.htm','',0,15)
	Menu4_3=new Array(ImgPad1+'学佛疑解',							'../chat/closed.htm','',0,15)
	Menu4_4=new Array(ImgPad1+'留下足迹',							'../guestbook/closed.htm','',0,15)

Menu5=new Array('rollover:blank110.gif:blank110.gif',				'','',10,21,NaviWidth[4])
	Menu5_1=new Array(ImgPad1+'新加坡佛教网站',						'../links/clocal.htm','',0,15,NaviWidth[4])
	Menu5_2=new Array(ImgPad1+'海外佛教网站',						'../links/coversea.htm','',0,15)
	Menu5_3=new Array(ImgPad1+'附佛外道',							'../links/nobuddhist.htm','',0,15)
	Menu5_4=new Array(ImgPad1+'街道指南',							'http://www.streetdirectory.com','',0,15)
	Menu5_5=new Array(ImgPad1+'地铁列车',							'http://www.smrtcorp.com/','',0,15)
	Menu5_6=new Array(ImgPad1+'新加坡巴士',							'http://www.sbstransit.com.sg/','',0,15)
	Menu5_7=new Array(ImgPad1+'八达巴士',							'http://www.tibs.com.sg/busguide/guide.asp','',0,15)
	Menu5_8=new Array(ImgPad1+'黄页',								'http://www.yellowpages.com.sg','',0,15)
	Menu5_9=new Array(ImgPad1+'时间',								'http://www.worldtimeserver.com','',0,15)
	Menu5_10=new Array(ImgPad1+'天气',								'http://www.noaa.gov/index.html','',0,15)

Menu6=new Array('rollover:blank110.gif:blank110.gif',				'','',6,21,NaviWidth[3])
	Menu6_1=new Array(ImgPad1+'关于我们',							'../about/cabout.htm','',0,15,NaviWidth[4])
	Menu6_2=new Array(ImgPad1+'佛友优惠',							'../bookstore/coffer.htm','',0,15)	
	Menu6_3=new Array(ImgPad1+'定购表格',							'../forms/sub-fm1.htm','',0,15)
	Menu6_4=new Array(ImgPad1+'赞助表格',							'../forms/sub-fm2.htm','',0,15)
	Menu6_5=new Array(ImgPad1+'免费索阅',							'../forms/sub-free.htm','',0,15)
	Menu6_6=new Array(ImgPad1+'中文显现',							'../help/help_Chinese.htm','',0,15)
