﻿

//ROLLOVER POP-UP MENU (JAKS.com.my)
//For this script to work properly, the following have to be adhered to:
//- the image name should be unique
//- place an onMouseOver / onMouseOut in the a href.. tag

//Conventions Followed:
//- image.gif, image_on.gif (represents OFF and ON respectively)

//NOTE:
//- Array item 12 controls menu drop-down position - horiz / vert
//- Array item 16 & 17 control menu overlapping, specified in decimal / percentage againts parent position (array item 1 & 2)
//- This is a strict script - make sure that the number of menu items / childs specified for the variables tally with actual array definitions
//- Be aware that Array Item 21, adds a border between elements, including the hotspot areas - hence the reason, why the Primary Nav includes 1px spacers between each individual button, to avoid misalignment

//LEGEND:
//- PopMenu1 = Primary Navigation


	// Globals
	var PopNoOffMenus=1;
	var PopWebMasterCheck=0;

	function P_BeforeStart(){return}
	function P_AfterBuild(){return}
	function P_BeforeFirstOpen(){return}
	function P_AfterCloseAll(){return}




PopMenu1=new Array(41);
	PopMenu1[0]=5;			// number of main items
	PopMenu1[1]=110;			// Left position
	PopMenu1[2]=91;			// Top position
	PopMenu1[3]='white';		// Normal font color
	PopMenu1[4]='';		// Normal back color
	PopMenu1[5]='white';		// High font color
	PopMenu1[6]='white';		// High back color
	PopMenu1[7]='';		// Border color
	PopMenu1[8]='verdana';	// Fontfamily
	PopMenu1[9]=0;			// Bold
	PopMenu1[10]=0;			// Italic
	PopMenu1[11]=11;			// Font size
	PopMenu1[12]=1;			// First line horizontal -- to control whether menu images appear horizontally (1)/ vertically (0)
	PopMenu1[13]=1;			// First line permanent visible
	PopMenu1[14]=1;			// Border width
	PopMenu1[15]='left';			// Text align 'left', 'center' or 'right'
	PopMenu1[16]=0.05;			// Horizontal overlap
	PopMenu1[17]=0.01;			// Vertical overlap
	PopMenu1[18]=300;			// Delay
	PopMenu1[19]=1;			// Right to left unfold
	PopMenu1[20]='';		// Target div
	PopMenu1[21]=5;			// Border between elements
	PopMenu1[22]='left';			// Menu horizontal centered 'left', 'center' or 'right'
	PopMenu1[23]='top';			// Menu vertical centered 'top', 'center' or 'bottom'
	PopMenu1[24]='#1E1990';		// Normal fontcolor sub items
	PopMenu1[25]='#f5f5f5';		// Normal back color sub items
	PopMenu1[26]='white';		// High font color sub items
	PopMenu1[27]='#EB2000';		// High back color sub items
	PopMenu1[28]='#BFBFBF';		// Border color sub items
	PopMenu1[29]='../../images/spacer.gif';		// Arrow right
	PopMenu1[30]=0;			// Arrow Width
	PopMenu1[31]=0;			// Arrow Height
	PopMenu1[32]='../../images/spacer.gif';		// Arrow down
	PopMenu1[33]=0;			// Arrow Width
	PopMenu1[34]=0;			// Arrow Height
	PopMenu1[35]='../../images/spacer.gif';		// Arrow left
	PopMenu1[36]=0;			// Arrow Width
	PopMenu1[37]=0;			// Arrow Height
	PopMenu1[38]=1;			// Keep selected path highlighted
	PopMenu1[39]=3;			// Top padding
	PopMenu1[40]=5;			// Left padding


//	MenuX=new Array(ItemText, Link, background image, number of sub elements, height, width);
//	For rollover images ItemText format is:  "rollover:Image1.jpg:Image2.jpg"

		
	PopMenu1_1=new Array('rollover:../images/pri_abt_jaks.gif:../images/pri_abt_jaks_on.gif','../about_jaks/main.html','',7,46,100);
	PopMenu1_1_1=new Array('Vision & Mission','../about_jaks/vision_mission.html','',0,20,128);
	PopMenu1_1_2=new Array('Board of Directors','../about_jaks/board.html','',0,20,119);
	PopMenu1_1_3=new Array('Corporate History','../about_jaks/corp_history.html','',0,20,119);
	PopMenu1_1_4=new Array('Corporate Structure','../about_jaks/corp_structure.html','',0,20,119);
	PopMenu1_1_5=new Array('Careers','../about_jaks/careers.html','',0,20,119);
	PopMenu1_1_6=new Array('Contact Us','../about_jaks/contact_us.asp','',0,20,119);
	PopMenu1_1_7=new Array('Locate Us','../about_jaks/locate_us.html','',0,20,119);


	PopMenu1_2=new Array('rollover:../images/pri_our_biz.gif:../images/pri_our_biz_on.gif','../our_business/main.html','',3,19,110);
	PopMenu1_2_1=new Array('Product Selector','../our_business/prod_selector.html','',0,18,119);
	PopMenu1_2_2=new Array('Quality Assurance','../our_business/qa.html','',0,18,119);
	PopMenu1_2_3=new Array('Contact Sales & MArketing','../about_jaks/contact_us.asp','',0,33,119);
	PopMenu1_2_4=new Array('Agency Conference','conference.html','',0,18,119);
	
	
	PopMenu1_3=new Array('rollover:../images/pri_corp_folio.gif:../images/pri_corp_folio_on.gif','../corp_portfolio/main.html','',2,19,150);
	PopMenu1_3_1=new Array('Current Projects','../corp_portfolio/current.html','',0,20,110);
	PopMenu1_3_2=new Array('Past Projects','../corp_portfolio/past.html','',0,20,119);
		
		
	PopMenu1_4=new Array('rollover:../images/pri_media.gif:../images/pri_media_on.gif','../media/main.html','',2,19,175);
	PopMenu1_4_1=new Array('Archived Media Releases and Announcements','../media/media_releases/articles.asp','',0,33,155);
	PopMenu1_4_2=new Array('Published News Articles','../media/news_articles/news.asp','',0,20,119);

	
	PopMenu1_5=new Array('rollover:../images/pri_ir.gif:../images/pri_ir_on.gif','../ir/main.html','',0,19,120);
	PopMenu1_5_1=new Array('Agent Referral Program','referral.html','',0,32,119);
		
		