// JavaScript Document
var menuImgRI = new Array();
menuImgRI[0] = new Image(191,30); menuImgRI[0].src = 'images/indexrollover.gif'
menuImgRI[1] = new Image(191,30); menuImgRI[1].src = 'images/indexContactrollover.gif'
menuImgRI[2] = new Image(191,30); menuImgRI[2].src = 'images/indexGalleryrollover.gif'
menuImgRI[3] = new Image(191,30); menuImgRI[3].src = 'images/indexResultsrollover.gif'
menuImgRI[4] = new Image(191,30); menuImgRI[4].src = 'images/indexCalendarrollover.gif'
menuImgRI[5] = new Image(191,30); menuImgRI[5].src = 'images/indexteamrollover.gif'
menuImgRI[6] = new Image(191,30); menuImgRI[6].src = 'images/indexmachinerollover.gif'
menuImgRI[7] = new Image(191,30); menuImgRI[7].src = 'images/indexNewsrollover.gif'
menuImgRI[8] = new Image(191,30); menuImgRI[8].src = 'images/indexLinksrollover.gif'
menuImgRI[9] = new Image(191,30); menuImgRI[9].src = 'images/indexSponsorrollover.gif'

var menuImgRO = new Array();
menuImgRO[0] = new Image(191,30); menuImgRO[0].src = 'images/index.gif'
menuImgRO[1] = new Image(191,30); menuImgRO[1].src = 'images/index_contact.gif'
menuImgRO[2] = new Image(191,30); menuImgRO[2].src = 'images/index_gallery.gif'
menuImgRO[3] = new Image(191,30); menuImgRO[3].src = 'images/index_results.gif'
menuImgRO[4] = new Image(191,30); menuImgRO[4].src = 'images/index_calendar.gif'
menuImgRO[5] = new Image(191,30); menuImgRO[5].src = 'images/index_team.gif'
menuImgRO[6] = new Image(191,30); menuImgRO[6].src = 'images/index_machine.gif'
menuImgRO[7] = new Image(191,30); menuImgRO[7].src = 'images/index_news.gif'
menuImgRO[8] = new Image(191,30); menuImgRO[8].src = 'images/index_links.gif'
menuImgRO[9] = new Image(191,30); menuImgRO[9].src = 'images/index_sponsor.gif'

function DefaultMenuHL()
{
	var imgMenuObj = document.getElementById('Img' + currentPage);
	if (imgMenuObj) imgMenuObj.src = menuImgRI[currentPage].src;
		
	/*
	var sPath = window.location.pathname;
	var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);

	if (sPage)
	{
		if (sPage == 'index.html') MM_nbGroup('over','index','images/indexrollover.gif','',1);
	}
	*/
}

function MenuImageSwap(imgID, OnOff)
{
	var imgMenuObj;

	if (OnOff == 1)
	{
		for (a=0; a<=9; a++)
		{
			imgMenuObj = document.getElementById('Img' + a);
			if (imgID == a) imgMenuObj.src = menuImgRI[a].src;
			else imgMenuObj.src = menuImgRO[a].src;
		}
	}
	else if (OnOff == 0)
	{
		for (a=0; a<=9; a++)
		{
			imgMenuObj = document.getElementById('Img' + a);
			imgMenuObj.src = menuImgRO[a].src;

			imgMenuObj = document.getElementById('Img' + currentPage);
			imgMenuObj.src = menuImgRI[currentPage].src;
		}
	}
}

function initScrollLayer()
{
  var wndo = new dw_scrollObj('wn', 'lyr1');
  wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);
  dw_scrollObj.GeckoTableBugFix('wn'); 
}

function dw_showLayers() {
  if ( document.getElementById ) {
    var lyr, i;
    for (i=0; arguments[i]; i++) {
      lyr = document.getElementById( arguments[i] );
      lyr.style.visibility = "visible";
    }
  }
}

