// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'images/mt.jpg'
theImages[1] = 'images/cl.jpg'
/*theImages[2] = 'http://www.dl.utoledo.edu/images/header3.jpg'
theImages[3] = 'http://www.dl.utoledo.edu/images/header4.jpg'
theImages[4] = 'http://www.dl.utoledo.edu/images/header5.jpg'
theImages[5] = 'http://www.dl.utoledo.edu/images/header14.jpg'
theImages[6] = 'http://www.dl.utoledo.edu/images/header15.jpg'
*/
// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" align=left hspace=0 vspace=0>');
}

var myNavBar1 = new NavBar(0);
var dhtmlMenu;

//define menu items (first parameter of NavBarMenu specifies main category width, second specifies sub category width in pixels)
//add more menus simply by adding more "blocks" of same code below

dhtmlMenu = new NavBarMenu(60, 0);
dhtmlMenu.addItem(new NavBarMenuItem("Home", "index.html"));
myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(108, 113);
dhtmlMenu.addItem(new NavBarMenuItem("Our Services", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Youth Workshops", "youth_workshops.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Career Counselling", "assess_develop.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Community Outreach", "outreach.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Computer Workshops", "computer_skills.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Drop In Centre", "drop_in.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Resource Library", "library.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Job Readiness Workshops", "job_ready.html"));

myNavBar1.addMenu(dhtmlMenu);

dhtmlMenu = new NavBarMenu(153, 158);
dhtmlMenu.addItem(new NavBarMenuItem("Workshop Calendar", ""));
//dhtmlMenu.addItem(new NavBarMenuItem("July 2004", "calendar.html"));
dhtmlMenu.addItem(new NavBarMenuItem("April 2005", "calendar_april_05.html"));
//dhtmlMenu.addItem(new NavBarMenuItem("First Aid & CPR Training", "1st_aid_cpr.html"));
myNavBar1.addMenu(dhtmlMenu);



dhtmlMenu = new NavBarMenu(154, 159);
dhtmlMenu.addItem(new NavBarMenuItem("Associated Services", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Hill Consulting", "enhanced_support.html"));
dhtmlMenu.addItem(new NavBarMenuItem("WHMIS", "whmis.html"));
myNavBar1.addMenu(dhtmlMenu);


dhtmlMenu = new NavBarMenu(133, 143);
dhtmlMenu.addItem(new NavBarMenuItem("Online Resources", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Career Information", "res_career.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Online Job Searching", "res_emp.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Labour Market Information", "res_labour.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Recruitment Agencies", "res_rec.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Education & Training", "res_ed.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Literacy", "res_lit.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Business", "res_bus.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Youth", "res_youth.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Volunteers", "res_vol.html"));
myNavBar1.addMenu(dhtmlMenu);


dhtmlMenu = new NavBarMenu(155, 160);
dhtmlMenu.addItem(new NavBarMenuItem("General Information", ""));
dhtmlMenu.addItem(new NavBarMenuItem("Board", "board.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Staff", "staff.html"));
dhtmlMenu.addItem(new NavBarMenuItem("Partners", "partnerships.html"));
myNavBar1.addMenu(dhtmlMenu);



//set menu colors
myNavBar1.setColors("#ffffff", "#003399", "#ffffff", "#003399", "#ffffff", "#ffffff", "#003399", "#ffffff", "#FF9933")

//uncomment below line to center the menu (valid values are "left", "center", and "right"
//myNavBar1.setAlign("center")

var fullWidth;

function init() {

  // Get width of window, need to account for scrollbar width in Netscape.

  fullWidth = getWindowWidth() 
    - (isMinNS4 && getWindowHeight() < getPageHeight() ? 16 : 0);

  myNavBar1.resize(778);
  myNavBar1.create();
  myNavBar1.setzIndex(2);
  //UNCOMMENT BELOW LINE TO MOVE MENU DOWN 50 pixels
 myNavBar1.moveTo(2, 78);
}

//FIX FOR NS4 CSS BUG
   <!--
      NS4 = document.layers;
      if (NS4) {

         origWidth = innerWidth;
         origHeight = innerHeight;
      }

   function reDo() { if (innerWidth != origWidth || innerHeight != origHeight)
   location.reload();
   }
   if (NS4) onresize = reDo;
   
   
   // POPUP
   var version4 = (navigator.appVersion.charAt(0) == "4");
var popupHandle;
function closePopup() {
if(popupHandle != null && !popupHandle.closed) popupHandle.close()
}


function displayPopup(position,url,name,height,width,evnt)
{

var properties = "toolbar=0,location=0,height="+height
properties = properties+",width="+width

var leftprop, topprop, screenX, screenY, cursorX, cursorY, padAmt

if(navigator.appName == "Microsoft Internet Explorer")
{
	screenY = document.body.offsetHeight
	screenX = window.screen.availWidth
}
else
{ // Navigator coordinates
//		screenY = window.outerHeight
//		screenX = window.outerWidth
	// change made 3/16/01 to work with Netscape:
		screenY = screen.height;
		screenX = screen.width;
}

if(position == 2)	//Center
{

	leftvar = (screenX - width) / 2
	rightvar = (screenY - height) / 2
		
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		leftprop = leftvar
		topprop = rightvar
	}
	else
	{ // adjust Netscape coordinates for scrolling
		leftprop = (leftvar - pageXOffset)
		topprop = (rightvar - pageYOffset)
	}
}

if(evnt != null)
{
properties = properties+",left="+leftprop
properties = properties+",top="+topprop
}
closePopup()
popupHandle = open(url,name,properties)
}

