// menubar.js - main menu code for all browsers
// (c) 2002 Turbocam Inc., all rights reserved.
// Written by Ian Jukes, September 9th 2002

// Variables
var menuTop   = new Array() ;
var menuPri   = new Array() ;
var menuSub   = new Array() ;
var separator = " | " ;
var bg_color  = "#5A667F" ;
var hi_color  = "#243048" ;
var height    = 20 ;
var top       = 23 ;
var timeout   = 400 ;
var css_style = "site-menubar" ;

// Pre-load images
var right_arrow = new Image() ;
right_arrow.src = "/stock/images/menu-arrow-right.gif" ;

// Top level menu
menuTop[0] = new Array( "home", "/" ) ;
menuTop[1] = new Array( "manufacturing", "/manufacturing/" ) ;
menuTop[2] = new Array( "software", "/region/ca/" ) ;
menuTop[3] = new Array( "mission", "/mission/" ) ;
menuTop[4] = new Array( "worldwide", "/region/" ) ;
menuTop[5] = new Array( "contact us", "/contact-us.php" ) ;
// menuTop[6] = new Array( "search", "/" ) ;

// "home" menu
menuPri[0] = null ; // empty
menuSub[0] = null ; // empty

// "manufacturing" menu
menuPri[1] = new Array(
	"our capabilities",
	"our products",
	"quality assurance"
	) ;
menuPri[1].links = new Array(
	"/",
	"/",
	"/"
	) ;
menuPri[1].left  = 182 ;
menuPri[1].width = 110 ;
menuSub[1] = new Array() ;
menuSub[1][0] = new Array(
	"introduction",
	"prototyping",
	"development",
	"production"
	) ;
menuSub[1][0].links = new Array(
	"/manufacturing/capabilities/introduction.html",
	"/manufacturing/capabilities/prototyping.html",
	"/manufacturing/capabilities/development.html",
	"/manufacturing/capabilities/production.html"
	) ;
menuSub[1][0].width = 85 ;
menuSub[1][1] = new Array(
	"propulsion",
	"power generation",
	"turbochargers",
	"gas compression",
	"others"
	) ;
menuSub[1][1].links = new Array(
	"/manufacturing/products/propulsion.html",
	"/manufacturing/products/power-generation.html",
	"/manufacturing/products/turbochargers.html",
	"/manufacturing/products/gas-compression.html",
	"/manufacturing/products/others.html"
	) ;
menuSub[1][1].width = 109 ;
menuSub[1][2] = new Array(
	"ISO certification",
	"testing & measuring"
	) ;
menuSub[1][2].links = new Array(
	"/manufacturing/quality/iso-certification.html",
	"/manufacturing/quality/testing-and-measuring.html"
	) ;
menuSub[1][2].width = 121 ;

// "software" menu
menuPri[2] = null ; // empty
menuSub[2] = null ; // empty
// menuPri[2] = new Array(
//	"academic research",
//	"sofware development"
//	) ;
// menuPri[2].links = new Array(
//	"/innovation/research.html",
//	"/innovation/software.html"
//	) ;
// menuPri[2].left = 266 ;
// menuPri[2].width = 130 ;
// menuSub[2] = null ; // empty

// "mission" menu
menuPri[3] = new Array(
	"mission statement",
	"why this mission?"
	) ;
menuPri[3].links = new Array(
	"/mission/",
	"/mission/why.html"
	) ;
menuPri[3].left = 323 ;
menuPri[3].width = 113 ;
menuSub[3] = null ; // empty
	
// "about TURBOCAM" menu
// menuPri[4] = new Array(
// 	"TURBOCAM worldwide",
// 	"jobs at TURBOCAM"
// 	) ;
// menuPri[4].links = new Array(
// 	"/region/",
// 	"/"
// 	) ;
// menuPri[4].left  = 371;
// menuPri[4].width = 135 ;
// menuSub[4] = new Array() ;
// menuSub[4][1] = new Array(
// 	"openings",
// 	"internships",
// 	"benefits"
// 	) ;
// menuSub[4][1].links = new Array(
// 	"/careers/openings.php",
// 	"/careers/internships.html",
// 	"/careers/benefits.html"
// 	) ;
// menuSub[4][1].width = 75 ;

// "contact us" menu
menuPri[5] = null ; // empty
menuSub[5] = null ; // empty

// "search" menu
menuPri[6] = null ; // empty
menuSub[6] = null ; // empty

// Browser dependent code
document.write( '<script language="JavaScript" type="text/javascript" src="/exec/javascript/' ) ;
// if ( isIE ) document.write( 'menubar_ie.js' ) ; else document.write( 'menubar_xx.js' ) ;
document.write( 'menubar_ie.js' ) ;
document.write( '"></script>' ) ;
