/******************************************************************************
*	(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=4;			// Number of first level items
	var LowBgColor='';					// Background color when mouse is not over
	var LowSubBgColor='#ffcc99';		// Background color when mouse is not over on subs
	var HighBgColor='';					// Background color when mouse is over
	var HighSubBgColor='#ff9966';		// 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='#333333';		// Font color subs when mouse is over
	var BorderColor='';					// Border color
	var BorderSubColor='#333333';		// Border color for subs
	var BorderWidth=1;					// Border width
	var BorderBtwnElmnts=0;				// Border between elements 1 or 0
	var FontFamily="Verdana"			// Font family menu items
	var FontSize=7;						// Font size menu items
	var FontBold=1;						// Bold menu items 1 or 0
	var FontItalic=0;					// Italic menu items 1 or 0
	var MenuTextCentered='left';		// 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=0;			// 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=0;					// Left padding
	var TopPaddng=0;					// Top padding
	var FirstLineHorizontal=1;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
	var DissapearDelay=500;			// 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=1;						// 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 WWWRoot="http://www.aseglobal.com.sg/";
	var NaviWidth=new Array(189,189,189,189)				// Menu width (added by Terence)
	var DomainName=''													// For status display (added by Terence)
	var ImgPad1='<img src=/images/s.gif width=0 height=0>'			// For single row spacer (added by Terence)
//	var ImgArrow='<img src=/include_media_hub/s.gif width=4 height=7><img src=/include_media_hub/arr_white_d.gif width=7 height=4>'		// For first row arrow pointer (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)+49;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(ImgPad1,										WWWRoot+'customer_care.htm','',0,28,NaviWidth[0])

Menu2=new Array(ImgPad1,										WWWRoot+'products_services.htm','',6,28,NaviWidth[1])
	Menu2_1=new Array(ImgPad1+'Total Solution',						WWWRoot+"products_services.htm","",0,20,186)
	Menu2_2=new Array(ImgPad1+'Final Test',							WWWRoot+"Final_test.htm","",0)
	Menu2_3=new Array(ImgPad1+'Wafer Sort',							WWWRoot+"wafer_sort.htm","",0)
	Menu2_4=new Array(ImgPad1+'Equipment List',						WWWRoot+"Equipment_list.htm","",0)
	Menu2_5=new Array(ImgPad1+'Terms & Conditions of Purchase',		WWWRoot+"terms_conditions.htm","",0)
	Menu2_6=new Array(ImgPad1+'Test Platforms',						WWWRoot+"platform.htm","",0)

Menu3=new Array(ImgPad1,										WWWRoot+'quality.htm','',5,28,NaviWidth[2])
	Menu3_1=new Array(ImgPad1+'Quality Policy',						WWWRoot+"quality.htm","",0,20,186)
	Menu3_2=new Array(ImgPad1+'Total Process Control',				WWWRoot+"process_control.htm","",0)
	Menu3_3=new Array(ImgPad1+'Total Quality Management',			WWWRoot+"quality_management.htm","",0)
	Menu3_4=new Array(ImgPad1+'Certification',						WWWRoot+"certification.htm","",0)
	Menu3_5=new Array(ImgPad1+'EHS Policy',				WWWRoot+"environment.htm","",0)
	
Menu4=new Array(ImgPad1,										WWWRoot+'about_us_about_asesg.htm','',4,28,NaviWidth[3])
	Menu4_1=new Array(ImgPad1+'About ASE SG',						WWWRoot+"about_us_about_asesg.htm","",0,20,186)
	Menu4_2=new Array(ImgPad1+'Message from President',					WWWRoot+"about_us_President_msg.htm","",0)
	Menu4_3=new Array(ImgPad1+'Our Value',							WWWRoot+"about_us_our_value.htm","",0)
	Menu4_4=new Array(ImgPad1+'Milestone',							WWWRoot+"about_us_milestone.htm","",0)

