// Author: Peter Jongsma, 22 March 2002.
// The purpose of this function is to select the nav slash image based on the URL.
// And perform the image rollover for the slash.

var slashnum = "" // slashnum variable holds the info about where we are

var navslash      // navslash is the slash image
navslash = new Image (67,6);
//navslash.src = "/aus/images/slash4globalnav.gif";
navslash.src = "/aus/images/logos/header_LN.gif";

var slashdata = new Array()

// Stuff slasharray entries with these objects.
// There's 2 items per set in the array. They are as follows:
// 1. imagenum is the number of the image that should have the slash in it.
//This means you can assign the slash to appear in a certain location given a different path.
// 2. folder is the directory  in the URL path

slashdata[0] = new slasharray("01","aus\/default")
slashdata[1] = new slasharray("02","products")
slashdata[2] = new slasharray("03","services")
slashdata[3] = new slasharray("04","conferences")
slashdata[4] = new slasharray("05","academic")
slashdata[5] = new slasharray("06","customer")
slashdata[6] = new slasharray("07","company")
slashdata[7] = new slasharray("08","partners")
slashdata[8] = new slasharray("09","search")




// RM 10/07/2006 09:45 - fixed and simplified to use styles 

// custom object constructor
function slasharray(imgElement, folder)
  {
    //this.imagenum = imagenum
	this.imgElement = imgElement
    this.folder = folder
  }


function showSlash()
// determine where we are in the site by looping through the slashdata array and finding a match in the URL.
{
  for (var i = 0; i < slashdata.length; i++)
  {
    if (location.pathname.indexOf(slashdata[i].folder) != -1)
    {
    slashnum = slashdata[i].imgElement
	//alert(slashnum)
	//================================
	slashfolder = slashdata[i].folder
//alert (slashfolder);
if (slashfolder = "conferences") 
{slashfolder1 = "Professional Development"
 
	}
	//alert(slashfolder1)
	

//====================================
	//alert(slashdata[i].imgElement);
    break
    } // end if
  } // end for

// show the slash image above the correlating button
if (slashnum != "") {

eval('document.slash' + slashnum + '.className = "visible"')

}
else {slashnum = "01"}

//set the window status too.
window.status = ('LexisNexis Australia')
}

function show(id){
var	img = "img_" + id;
	imgElement = document.getElementById(img);
	if (imgElement){
		if (imgElement.className == 'hidden'){
			imgElement.className = "visible";
			}else{
			imgElement.className = "hidden";
			}
		}
		}
	
function hide(id){
var	img = "img_" + id;
	imgElement = document.getElementById(img);
	if (imgElement){
		if (imgElement.className == 'visible'){
			imgElement.className = "hidden";
			}else{
			imgElement.className = "visible";
			}
		}
	}


