/* =================================================
// clearcase activity 563
// index drop down - DHTML starts 
// =================================================
*/
if (window.event + "" == "undefined") 
{
	event = null;
}

function HM_f_PopUp() 
{
	return false;
}

function HM_f_PopDown() 
{
	return false;
}

popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

HM_PG_MenuWidth = 142;
HM_PG_FontFamily = "arial,helvetica,geneva,swiss,sunsans-regular";
HM_PG_FontSize = 8;
HM_PG_FontBold = 0;
HM_PG_FontItalic = 0;
HM_PG_FontColor = "#000000";
HM_PG_FontColorOver = "#FFFFFF";
HM_PG_BGColor = "#FFFFFF";
HM_PG_BGColorOver = "#104498";
HM_PG_ItemPadding = 0;
HM_PG_BorderWidth = 1;
HM_PG_BorderColor = "#104498";
HM_PG_BorderStyle = "solid";
HM_PG_SeparatorSize = 0;
HM_PG_SeparatorColor = "#FFFFFF";
HM_PG_ImageSrc = "";
HM_PG_ImageSrcLeft = "HM_More_black_left.gif";
HM_PG_ImageSrcOver = "";
HM_PG_ImageSrcLeftOver = "HM_More_black_left.gif";
HM_PG_ImageSize = 6;
HM_PG_ImageHorizSpace = 0;
HM_PG_ImageVertSpace = 3;
HM_PG_KeepHilite = true; 
HM_PG_ClickStart = 0;
HM_PG_ClickKill = false;
HM_PG_ChildOverlap = 20;
HM_PG_ChildOffset = 10;
HM_PG_ChildPerCentOver = null;
HM_PG_TopSecondsVisible = .5;
HM_PG_StatusDisplayBuild = 0;
HM_PG_StatusDisplayLink = 0;
HM_PG_UponDisplay = null;
HM_PG_UponHide = null;
HM_PG_RightToLeft = 0;
HM_PG_CreateTopOnly = 0;
HM_PG_ShowLinkCursor = 1;
HM_PG_NSFontOver = true;

// Resets nav rollovers to off state. Returns void.

function BI_reset (intCurrentMenu) 
{
	switch (intCurrentMenu) 
	{
				case 1:
					document.images['nav1'].src = menuImages[0];
					break;
				case 2:
					document.images['nav2'].src = menuImages[2];
					break;
				case 3:
					document.images['nav3'].src = menuImages[4];
					break;
				case 4:
					document.images['nav4'].src = menuImages[6];
					break;
				case 5:
					document.images['nav5'].src = menuImages[8];
					break;
				case 6:
					document.images['nav6'].src = menuImages[10];
					break;
				case 7:
					document.images['nav7'].src = menuImages[12];
					break;
				case 8:
					document.images['nav8'].src = menuImages[14];
					break;
	}
}

/* =================================================
// clearcase activity 563
// index drop down - DHTML ends
// =================================================
*/


// create image objects and pre-load images

window.onerror = null;
window.defaultStatus = '';

var initialized = 0;
var menus = new Array();
var menustatus = new Array();
var menuovers = new Array();

// initialize the menus

	menustatus[0] = "closed";
	menustatus[1] = "closed";
	menustatus[2] = "closed";
	menustatus[3] = "closed";
	menustatus[4] = "closed";

function init(){

	initialized = 1;

	if(parseInt(navigator.appVersion) > 3){
		if(navigator.appName == "Netscape"){
			menuovers[0] = window.document.menu0overs;

// declare menus for Netscape

			menus[0] = window.document.menu0;
			menus[1] = window.document.menu1;
			menus[2] = window.document.menu2;
			menus[3] = window.document.menu3;
			menus[4] = window.document.menu4;
		}
		else{
			menuovers[0] = document.all.menu0overs.style;

// declare menus for Internet Explorer

			menus[0] = document.all.menu0.style;
			menus[1] = document.all.menu1.style;
			menus[2] = document.all.menu2.style;
			menus[3] = document.all.menu3.style;
			menus[4] = document.all.menu4.style;
		}
	}
}

function show(menunumber){
		if(parseInt(navigator.appVersion) < 4){}
		else{
			if(menuovers[menunumber]){
				menuovers[menunumber].visibility = 'visible';
				menuovers[menunumber].zIndex = '320';
			}
			menus[menunumber].visibility = 'visible';
			menus[menunumber].zIndex = '310';
			menustatus[menunumber] = 'open';
		}
}

function kohrkill(){

	clearmenus();

	if(parseInt(navigator.appVersion) > 3){
		for(i=0; i<menus.length; i++){
			if(menustatus[i] == 'open'){
				if(menuovers[i]){
					menuovers[i].visibility = 'hidden';
					menuovers[i].zIndex = '120';
				}
				menus[i].visibility = 'hidden';
				menus[i].zIndex = '110';
				menustatus[i] = 'closed';
			}
		}
	}
}

function imagerep(imgname, divname){
	if(parseInt(navigator.appVersion) > 3){
		if(document.layers) eval("window.document." + divname + ".document['" + imgname + "'].src = " + imgname + "over.src");
		else eval("document['" + imgname + "'].src = " + imgname + "over.src");
	}
	else{
		if(navigator.appName == "Netscape"){
			eval("document['imgmenu" + imgname + "'].src = menu" + imgname + "over.src");
			menustatus[imgname] = "open";
		}
	}
}

function eraseimage(imgname, divname){
	if(parseInt(navigator.appVersion) > 3){
		if(document.layers) eval("window.document." + divname + ".document['" + imgname + "'].src = blank.src");
		else eval("document['" + imgname + "'].src = blank.src");
	}
	else{
		if(navigator.appName == "Netscape"){
		eval("document['imgmenu" + imgname + "'].src = menu" + imgname + "off.src");
		}
	}
}

function netscapehider()
{
	if(initialized) clearmenus();
}

function iehider()
{
	if(window.event.toElement && window.event.toElement.className != "menu") clearmenus();
}

function change(Name,Image,No,Msg) {

	if (document.images) {
		document [Name].src = eval(Image + No + ".src");
	}
	if (Msg) self.status = eval(Image + "2");

	return true
}

/** a3533
if (!document.images) {}

else {

// set images with .src names

	var usover=new Image();
	usover.src="images/topnav/fl_us_on.gif";
	var frenchover=new Image();
	frenchover.src="images/topnav/fl_fr_on.gif";
	var italyover=new Image();
	italyover.src="images/topnav/fl_it_on.gif";
	var irelandover=new Image();
	irelandover.src="images/topnav/fl_ir_on.gif";

// end naming convention

	var blank=new Image();
	blank.src="images/spacer.gif";

	nav_us0=new Image();
	nav_us0.src="images/topnav/fl_us_off.gif";
	nav_us1=new Image();
	nav_us1.src="images/topnav/fl_us_on.gif";

}
 * a3533 **/

function clearmenus(){
	change('imgmenu0','nav_us',0);
	menus[0].visibility = 'hidden';
	menuovers[0].visibility = 'hidden'
}
