// this script is not the std one.. modified to have simultaneous rollover of button color also
<!-- function to change button images
loginon = new Image();
loginon.src = "/images/btn-login-ovr.jpg";
loginoff = new Image();
loginoff.src = "/images/btn-login.jpg";

linkson = new Image();
linkson.src = "/images/btn-links-ovr.jpg";
linksoff = new Image();
linksoff.src = "/images/btn-links.jpg";

Resourceson = new Image();
Resourceson.src = "/images/btn-Resources-ovr.jpg";
Resourcesoff = new Image();
Resourcesoff.src = "/images/btn-Resources.jpg";

Partnerson = new Image();
Partnerson.src = "/images/btn-Partners-ovr.jpg";
Partnersoff = new Image();
Partnersoff.src = "/images/btn-Partners.jpg";

Affiliateson = new Image();
Affiliateson.src = "/images/btn-Affiliates-ovr.jpg";
Affiliatesoff = new Image();
Affiliatesoff.src = "/images/btn-Affiliates.jpg";


login1on = new Image();
login1on.src = "/images/btn-home-ovr.jpg";
login1off = new Image();
login1off.src = "/images/btn-home.jpg";

login2on = new Image();
login2on.src = "/images/btn-join-ovr.jpg";
login2off = new Image();
login2off.src = "/images/btn-join.jpg";

login3on = new Image();
login3on.src = "/images/btn-contact-ovr.jpg";
login3off = new Image();
login3off.src = "/images/btn-contact.jpg";

login4on = new Image();
login4on.src = "/images/btn-bookmark-ovr.jpg";
login4off = new Image();
login4off.src = "/images/btn-bookmark.jpg";

login5on = new Image();
login5on.src = "/images/btn-faq-ovr.jpg";
login5off = new Image();
login5off.src = "/images/btn-faq.jpg";

login6on = new Image();
login6on.src = "/images/btn-about-us-ovr.jpg";
login6off = new Image();
login6off.src = "/images/btn-about-us.jpg";

login7on = new Image();
login7on.src = "/images/btn-Entertainment-ovr.jpg";
login7off = new Image();
login7off.src = "/images/btn-Entertainment.jpg";

login8on = new Image();
login8on.src = "/images/btn-Business-ovr.jpg";
login8off = new Image();
login8off.src = "/images/btn-Business.jpg";

login9on = new Image();
login9on.src = "/images/btn-sports-ovr.jpg";
login9off = new Image();
login9off.src = "/images/btn-sports.jpg";

login10on = new Image();
login10on.src = "/images/btn-Health-ovr.jpg";
login10off = new Image();
login10off.src = "/images/btn-Health.jpg";

login11on = new Image();
login11on.src = "/images/btn-Arts-ovr.jpg";
login11off = new Image();
login11off.src = "/images/btn-Arts.jpg";

login12on = new Image();
login12on.src = "/images/btn-Reading-ovr.jpg";
login12off = new Image();
login12off.src = "/images/btn-Reading.jpg";

login13on = new Image();
login13on.src = "/images/btn-Internet-ovr.jpg";
login13off = new Image();
login13off.src = "/images/btn-Internet.jpg";

login14on = new Image();
login14on.src = "/images/btn-Leisure-ovr.jpg";
login14off = new Image();
login14off.src = "/images/btn-Leisure.jpg";

login15on = new Image();
login15on.src = "/images/btn-Travel-ovr.jpg";
login15off = new Image();
login15off.src = "/images/btn-Travel.jpg";

login16on = new Image();
login16on.src = "/images/btn-Online-ovr.jpg";
login16off = new Image();
login16off.src = "/images/btn-Online.jpg";

login17on = new Image();
login17on.src = "/images/btn-Electronics-ovr.jpg";
login17off = new Image();
login17off.src = "/images/btn-Electronics.jpg";

login18on = new Image();
login18on.src = "/images/btn-Movies-ovr.jpg";
login18off = new Image();
login18off.src = "/images/btn-Movies.jpg";

login19on = new Image();
login19on.src = "/images/btn-medicine-ovr.jpg";
login19off = new Image();
login19off.src = "/images/btn-medicine.jpg";

login20on = new Image();
login20on.src = "/images/btn-Legal-ovr.jpg";
login20off = new Image();
login20off.src = "/images/btn-Legal.jpg";

login21on = new Image();
login21on.src = "/images/btn-General-ovr.jpg";
login21off = new Image();
login21off.src = "/images/btn-General.jpg";

login22on = new Image();
login22on.src = "/images/btn-People-ovr.jpg";
login22off = new Image();
login22off.src = "/images/btn-People.jpg";

login23on = new Image();
login23on.src = "/images/btn-Fitness-ovr.jpg";
login23off = new Image();
login23off.src = "/images/btn-Fitness.jpg";

login24on = new Image();
login24on.src = "/images/btn-Marketing-ovr.jpg";
login24off = new Image();
login24off.src = "/images/btn-Marketing.jpg";

login25on = new Image();
login25on.src = "/images/btn-Telecom-ovr.jpg";
login25off = new Image();
login25off.src = "/images/btn-Telecom.jpg";

login26on = new Image();
login26on.src = "/images/btn-Home01-ovr.jpg";
login26off = new Image();
login26off.src = "/images/btn-Home01.jpg";


login27on = new Image();
login27on.src = "/images/logo1.jpeg";
login27off = new Image();
login27off.src = "/images/african.jpg";

login28on = new Image();
login28on.src = "/images/logo2.jpeg";
login28off = new Image();
login28off.src = "/images/lh2.jpeg";

login29on = new Image();
login29on.src = "/images/click-bank.jpg";
login29off = new Image();
login29off.src = "/images/lh3.jpg";

login30on = new Image();
login30on.src = "/images/logo4.gif";
login30off = new Image();
login30off.src = "/images/lh4.jpg";

login31on = new Image();
login31on.src = "/images/logo5.jpeg";
login31off = new Image();
login31off.src = "/images/lh5.jpg";

login32on = new Image();
login32on.src = "/images/logo6.jpeg";
login32off = new Image();
login32off.src = "/images/lh6.jpeg";

login33on = new Image();
login33on.src = "/images/logo7.jpeg";
login33off = new Image();
login33off.src = "/images/lh7.jpg";

login34on = new Image();
login34on.src = "/images/logo8.jpg";
login34off = new Image();
login34off.src = "/images/lh8.jpeg";

login35on = new Image();
login35on.src = "/images/im.gif";
login35off = new Image();
login35off.src = "/images/lh9.jpeg";

login36on = new Image();
login36on.src = "/images/reve.jpg";
login36off = new Image();
login36off.src = "/images/lh10.jpeg";

login90on = new Image();
login90on.src = "/images/cpa.png";
login90off = new Image();
login90off.src = "/images/lh111.jpeg";

login37on = new Image();
login37on.src = "/images/c9.png";
login37off = new Image();
login37off.src = "/images/rh1.jpeg";

login38on = new Image();
login38on.src = "/images/click2sell.gif";
login38off = new Image();
login38off.src = "/images/rh3.jpeg";

login39on = new Image();
login39on.src = "/images/rhlogo3.jpeg";
login39off = new Image();
login39off.src = "/images/rh2.jpg";

login40on = new Image();
login40on.src = "/images/cm.jpg";
login40off = new Image();
login40off.src = "/images/rh4.jpeg";

login41on = new Image();
login41on.src = "/images/co.jpeg";
login41off = new Image();
login41off.src = "/images/rh5.jpeg";

login42on = new Image();
login42on.src = "/images/cb.png";
login42off = new Image();
login42off.src = "/images/rh6.jpeg";

login43on = new Image();
login43on.src = "/images/rhlogo7.jpeg";
login43off = new Image();
login43off.src = "/images/rh7.jpeg";

login44on = new Image();
login44on.src = "/images/yahoo.jpeg";
login44off = new Image();
login44off.src = "/images/rh8.jpeg";

login45on = new Image();
login45on.src = "/images/rhlogo9.gif";
login45off = new Image();
login45off.src = "/images/rh9.jpeg";

login46on = new Image();
login46on.src = "/images/click-bank.jpg";
login46off = new Image();
login46off.src = "/images/rh10.jpeg";

login47on = new Image();
login47on.src = "/images/bhlogo7.jpeg";
login47off = new Image();
login47off.src = "/images/bh7.jpeg";

login48on = new Image();
login48on.src = "/images/bhlogo1.jpg";
login48off = new Image();
login48off.src = "/images/bh1.jpeg";

login49on = new Image();
login49on.src = "/images/bhlogo2.jpg";
login49off = new Image();
login49off.src = "/images/bh2.jpeg";

login50on = new Image();
login50on.src = "/images/bhlogo3.gif";
login50off = new Image();
login50off.src = "/images/bh3.jpeg";

login51on = new Image();
login51on.src = "/images/bhlogo4.png";
login51off = new Image();
login51off.src = "/images/bh4.jpeg";

login52on = new Image();
login52on.src = "/images/bhlogo5.gif";
login52off = new Image();
login52off.src = "/images/bh5.jpeg";

login53on = new Image();
login53on.src = "/images/bhlogo6.jpg";
login53off = new Image();
login53off.src = "/images/bh6.jpeg";

login54on = new Image();
login54on.src = "/images/bhlogo8.jpg";
login54off = new Image();
login54off.src = "/images/bh8.jpeg";

login55on = new Image();
login55on.src = "/images/bhlogo9.jpg";
login55off = new Image();
login55off.src = "/images/bh9.jpeg";

login56on = new Image();
login56on.src = "/images/bhlogo10.gif";
login56off = new Image();
login56off.src = "/images/bh10.jpeg";

login57on = new Image();
login57on.src = "/images/host.gif";
login57off = new Image();
login57off.src = "/images/bh11.jpg";

login58on = new Image();
login58on.src = "/images/bhlogo12.gif";
login58off = new Image();
login58off.src = "/images/bh12.jpg";

login59on = new Image();
login59on.src = "/images/bhlogo13.gif";
login59off = new Image();
login59off.src = "/images/bh13.jpg";

login60on = new Image();
login60on.src = "/images/bhlogo14.gif";
login60off = new Image();
login60off.src = "/images/bh14.jpg";




homeon = new Image();
homeon.src = "/images/btn-home-ovr.jpg";
homeoff = new Image();
homeoff.src = "/images/btn-home.jpg";

thar8on = new Image();
thar8on.src = "/images/btn_ovr_achievements.jpg";
thar8off = new Image();
thar8off.src = "/images/btn_achievements.jpg";

thar2on = new Image();
thar2on.src = "/images/btn_services_ovr.jpg";
thar2off = new Image();
thar2off.src = "/images/btn_services.jpg";

thar3on = new Image();
thar3on.src = "/images/btn_benefits_ovr.jpg";
thar3off = new Image();
thar3off.src = "/images/btn_benefits.jpg";

thar4on = new Image();
thar4on.src = "/images/btn_strength-ovr.jpg";
thar4off = new Image();
thar4off.src = "/images/btn_strength.jpg";

thar5on = new Image();
thar5on.src = "/images/btn_clients_ovr.jpg";
thar5off = new Image();
thar5off.src = "/images/btn_clients.jpg";

thar6on = new Image();
thar6on.src = "/images/btn_contactus_ovr.jpg";
thar6off = new Image();
thar6off.src = "/images/btn_contactus.jpg";

careerson = new Image();
careerson.src = "//images/link_careers_o.gif";
careersoff = new Image();
careersoff.src = "//images/link_careers.gif";

homeon = new Image();
homeon.src = "/images/btn-home.gif";
homeoff = new Image();
homeoff.src = "/images/btn-y-home.gif";


locationon = new Image();
locationon.src = "/images/btn-yleo-survey.gif";
locationoff = new Image();
locationoff.src = "/images/btn-leo-survey1.gif";

icdon = new Image();
icdon.src = "/images/btn-y-any.gif";
icdoff = new Image();
icdoff.src = "/images/btn-anylisisi.gif";

futureon = new Image();
futureon.src = "/images/btn-y-setting.gif";
futureoff = new Image();
futureoff.src = "/images/btn-setting.gif";

serviceson = new Image();
serviceson.src = "/images/btn-yleo-survey.gif";
servicesoff = new Image();
servicesoff.src = "/images/btn-leo-survey1.gif";

galleryon = new Image();
galleryon.src = "//images/link_image_o.gif";
galleryoff = new Image();
galleryoff.src = "//images/link_image.gif";

contacton = new Image();
contacton.src = "//images/link_contact_o.gif";
contactoff = new Image();
contactoff.src = "//images/link_contact.gif";

imgname ="";

function rolloffnew(butname) {
	imgname = butname;
}

screenwidth= screen.width;
if (screenwidth==1024)
{
	addpixels = 114;
}
else
{
	addpixels = 0;
}


function rollon(imgName) {
	imgOn = eval(imgName + "on.src");
	document[imgName].src = imgOn;
}
function rolloff(imgName) {
	document[imgName].src = eval(imgName + "off.src");
}

<!--hide from javaless browsers

//this is the set up for the DHTML menus (ends on line 42)

   NS4 = (document.layers);
   IE4 = (document.all);
   ver4 = (NS4 || IE4);
   IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1) || (IE4 && navigator.appVersion.indexOf("6.")!=-1);

isMac = (navigator.appVersion.indexOf("Mac") != -1);
isMenu = (NS4 || (IE4 && !isMac) || (IE5 && isMac));


function popUp(){return};
function popDown(){return};

if (!ver4) event=null;

if (isMenu) {
menuVersion = 3;
menuWidth = 200;
childOverlap = 0;
childOffset = 0;
perCentOver = null;
secondsVisible = .5;
fntCol = "#ffffff";
fntCol1= "#666666";
// Minimum size for NS-Mac to display bolding: 11pt
// Minimum size for NS-Win to display bolding: 9pt
// Minimum size for IE-any to display bolding: 8pt
fntSiz = "12"; // Default
if ((NS4) && (isMac))   { fntSiz = "12";} // NS for Mac
if ((!NS4) && (isMac))  { fntSiz = "12";}  // IE for Mac
if ((NS4) && (!isMac))  { fntSiz = "12";}  // NS for Win
if ((!NS4) && (!isMac)) { fntSiz = "12";}  // IE for Win
//alert("The Font Size is: "+fntSiz);
fntBold = false;
fntItal = false;
fntFam = "Arial";
backCol = "#0093DD";
overCol = "#29166F";
overCol1 = "#FFC800";
overFnt = "#000000";
overFnt1 = "#000000";

borWid = 1;
borCol = "#ffffff";
borSty = "solid";
itemPad = 2;
imgSrc = "";
imgSiz = 8;
separator = 1;
separatorCol = "#ffffff";
isFrames = false;
keepHilite = true;
clickStart = false;
clickKill = false;
}
// This is the array for the DHTML menu (ends on line 140)
if (isMenu) {
arMenu1 = new Array(
116,
01,252,
"","",
"","",
"","",
"The Group","/aboutus/group.asp",1,
"The Company","/aboutus/company.asp",1,
"Vision & Mission","/aboutus/vision.asp",1
);

arMenu2 = new Array(
200,
297,74,
"","",
"","",
"","",
"Graphic Designers","/careers/default.asp#graphic",1,
"Non-Linear video Editors / Films Editors","/careers/default.asp#editors",1,
"3D Animator","/careers/default.asp#3d",1,
"Character Modelers","/careers/default.asp#modelers",1,
"Character Animators","/careers/default.asp#animators",1,
"Compositor","/careers/default.asp#compositor",1,
"Architectural Pre-Visualizers","/careers/default.asp#pre",1
);

arMenu3 = new Array(
130,
620,74,
"","",
"","",
"","",
"Short Term Courses","/courses/short_term.asp",1,
"Career Courses","/courses/career.asp",1,
"Specialization Courses","/courses/specialization.asp",1
);

arMenu4 = new Array(
85,
368,135,
"","",
"","",
"","",
"Corporate","/showreel/corporate.ram",1,
"Special Effects","#",1,
"3D ","/showreel/3danimation.ram",1
);
}

//this is the engine for the DHTML menus (ends on line 600)

if (isMenu) {
loader = window;
loader.onload = startIt;
if(NS4){
	origWidth = loader.innerWidth;
	origHeight = loader.innerHeight;
	loader.onresize = reDo;
}
isLoaded = false;
NSresized = false;
if (!window.menuVersion) {keepHilite = clickStart = false;}
if (!window.imgHspace) imgHspace=0;
isWin = (navigator.appVersion.indexOf("Win") != -1)
mSecsVis = secondsVisible*1000;
areCreated = false;
menuLoc = null;
function initVars() {
	if(areCreated) {
		for(i=1; i<topCount; i++) {
			cur = eval("elMenu"+i);
			clearTimeout(cur.hideTimer);
			cur.hideTimer=null;
		}
		clearTimeout(allTimer);
	}
	topCount = 1;
	areCreated = false;
	beingCreated = false;
	isOverMenu = false;
	currentMenu = null;
	allTimer = null;
}
initVars();
}
function startIt() {
	isLoaded = true;
	menuLoc = window;
	menuLoc.nav = nav = window;
	makeTop();
}
function makeTop(){
	beingCreated = true;
	if(IE4) {
		topZ = 0;
		for (z=0;z<window.document.all.length;z++){
			oldEl = window.document.all(z);
			topZ = Math.max(oldEl.style.zIndex,topZ)
		}
	}
	while(eval("window.arMenu" + topCount)) {

		(NS4) ? makeMenuNS(false,topCount) : makeMenuIE(false,topCount);
		topCount++
	}

	//status = (topCount-1) + " Hierarchical Menu Trees Created"
	status = ""
	document.close();
	areCreated = true;
	beingCreated = false;
//	trace("Load time (milliseconds)");
}
function makeMenuNS(isChild,menuCount,parMenu,parItem) {
	tempArray = eval("arMenu" + menuCount);
	tempWidth = tempArray[0] ? tempArray[0] : menuWidth;
	menu = makeElement("elMenu" + menuCount,tempWidth,null,null);
	menu.array = tempArray;
	menu.setMenuTree = setMenuTree;
	menu.setMenuTree(parMenu);
	while (menu.itemCount < menu.maxItems) {
		menu.itemCount++;
		prevItem = (menu.itemCount > 1) ? menu.item : null;
		itemName = "item" + menuCount + "_" + menu.itemCount;
		menu.item = makeElement(itemName,null,null,menu);
		menu.item.prevItem = prevItem;
		menu.item.setup = itemSetup;
		menu.item.setup(menu.itemCount,menu.array);
	}
	menu.lastItem = menu.item;
	menu.setup(isChild,parMenu,parItem);
}

function setMenuTree(parMenu) {
	this.menuWidth = this.array[0] ? this.array[0] : menuWidth;
	this.menuLeft = this.array[1];
	this.menuTop = this.array[2];
	this.menuFontColor = this.array[3] ? this.array[3] : fntCol;
	this.menuFontColor1 = this.array[3] ? this.array[3] : fntCol1;
	this.menuFontOver = this.array[4] ? this.array[4] : overFnt;
	this.menuFontOver1 = this.array[4] ? this.array[4] : overFnt1;
	this.menuBGColor = this.array[5] ? this.array[5] : backCol;
	this.menuBGOver = this.array[6] ? this.array[6] : overCol;
	this.menuBGOver1 = this.array[6] ? this.array[6] : overCol1;
	this.menuBorCol = this.array[7] ? this.array[7] : borCol;
	this.menuSeparatorCol = this.array[8] ? this.array[8] : separatorCol;
	this.treeParent = this;
	this.startChild = this;
	this.maxItems = (this.array.length-9)/3;
	this.hasParent = null;
	this.setup = menuSetup;
	this.itemCount = 0;
}

function makeMenuIE(isChild,menuCount,parMenu) {
	menu = makeElement("elMenu" + menuCount);
	menu.array = eval("arMenu" + menuCount);
	menu.setMenuTree = setMenuTree;
	menu.setMenuTree(parMenu);
	menu.itemStr = "";
	while (menu.itemCount < menu.maxItems) {
		menu.itemCount++;
		itemName = "item" + menuCount + "_" + menu.itemCount;
		arrayPointer = ((menu.itemCount-1)*3)+9;
		dispText = menu.array[arrayPointer];
		if(IE5) {
			newSpan = window.document.createElement("SPAN");
			with(newSpan) {
				id = itemName;
				with(style) {
					width = (menu.menuWidth-(borWid*2));
					fontSize = fntSiz + "px";
					fontWeight = (fntBold) ? "bold" : "normal";
					fontStyle = (fntItal) ? "italic" : "normal";
					fontFamily = fntFam;
					padding = itemPad;
					borderBottomWidth = separator + "px";
					borderBottomStyle = "solid";
					textalign ="center";
				}
				innerHTML = dispText;
			}
			//newBreak = menuLoc.document.createElement("BR");
			menu.appendChild(newSpan);
			//menu.appendChild(newBreak); // opening the page twice?
		} else
		{
			htmStr = dispText;
			menu.itemStr += "<SPAN ID=" + itemName + " STYLE=\"width:" + (menu.menuWidth-(borWid*2))+"  ;";
			menu.itemStr += "font-size:"+fntSiz+"px;";
			menu.itemStr += "font-weight:"+((fntBold) ? "bold;" : "normal;");
			menu.itemStr += "font-style:"+((fntItal) ? "italic;" : "normal;");
			menu.itemStr += "font-family:"+fntFam+";";
			menu.itemStr += "padding:"+itemPad+"px;";
			menu.itemStr += "border-bottom-width:"+separator+"px;";
			menu.itemStr += "border-bottom-style:solid;text-align:center";
			menu.itemStr += "\">" + htmStr + "</SPAN><BR>";
		}
	}
	if(!IE5) menu.innerHTML = menu.itemStr; // IE 4's method was faster
	itemColl = menu.children.tags("SPAN");
	for (i=0; i<itemColl.length; i++) {
		it = itemColl(i);
		it.setup = itemSetup;
		it.setup(i+1,menu.array);
	}
	menu.lastItem = itemColl(itemColl.length-1);
	menu.setup(isChild,parMenu);
}
function makeElement(whichEl,whichWidth,whichParent,whichContainer) {
	if (NS4) {
		if (whichWidth) {
			elWidth = whichWidth;
		} else {
			elWidth = (whichContainer) ? whichContainer.menuWidth : whichParent.menuWidth;
			if (whichContainer) elWidth = elWidth-(borWid*2)-(itemPad*2);
		}
		if (!whichContainer) whichContainer = window;
		eval(whichEl + "= new Layer(elWidth,whichContainer)");
	} else {
		if (IE5) {
			newDiv = window.document.createElement("DIV");
			newDiv.style.position = "absolute";
			newDiv.id = whichEl;
			window.document.body.appendChild(newDiv);
		} else {
			elStr = "<DIV ID=" + whichEl + " STYLE='position:relative'></DIV>";
			//window.document.body.insertAdjacentHTML("BeforeEnd",elStr);
			window.document.body.insertAdjacentHTML("beforeEnd",elStr);
		}
	}
	return eval(whichEl);
}

function itemSetup(whichItem,whichArray) {
	this.onmouseover = itemOver;
	this.onmouseout = itemOut;
	this.container = (NS4) ? this.parentLayer : this.parentElement;
	arrayPointer = (this.container.hasParent) ? (whichItem-1)*3 : ((whichItem-1)*3)+9;
	this.dispText = whichArray[arrayPointer];
	this.linkText = whichArray[arrayPointer + 1];
	this.linktrue = whichArray[arrayPointer+2]
	if (this.linkText) {
		if (NS4) {
			this.captureEvents(Event.MOUSEUP)
			this.onmouseup = linkIt;
		} else {
			this.onclick = linkIt;
			this.style.cursor = "hand";
		}
	}
	if (NS4) {
		htmStr = this.dispText;
		if (fntBold) htmStr = htmStr.bold();
		if (fntItal) htmStr = htmStr.italics();
		htmStr = "<FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSiz + ">" + htmStr+ "</FONT>";
			if  (this.linktrue ==1){
			this.htmStr = htmStr.fontcolor(this.container.menuFontColor);
			}
			else{
			this.htmStr = htmStr.fontcolor(this.container.menuFontColor1);
			}
		this.visibility = "inherit";
		this.bgColor = this.container.menuBGColor;
		if (whichItem == 1) {
			this.top = borWid + itemPad;
		} else {
			this.top = this.prevItem.top + this.prevItem.clip.height + separator;
		}
		this.left = borWid + itemPad;
		this.clip.top = this.clip.left = -itemPad;
		this.clip.right = this.container.menuWidth-(borWid*2)-itemPad;
		maxTxtWidth = this.container.menuWidth-(borWid*2)-(itemPad*2);
		this.txtLyrOff = new Layer(maxTxtWidth,this);
		this.txtLyrOff.document.write(this.htmStr);
		this.txtLyrOff.document.close();
		this.txtLyrOff.visibility = "inherit";
		this.clip.bottom = this.txtLyrOff.document.height+itemPad;
	} else {
		with (this.style) {

			if  (this.linktrue ==1){
			color = this.container.menuFontColor;
			overcolor = this.container.menuFontOver;
			}
			else{
			color = this.container.menuFontColor1;
			overcolor = this.container.menuFontOver1;
			}

			borderBottomColor = this.container.menuSeparatorCol;
			backgroundColor = this.container.menuBGColor;

		}
	}
}
function menuSetup(hasParent,openCont,openItem) {
	this.onmouseover = menuOver;
	this.onmouseout = menuOut;
	this.showIt = showIt;
	this.keepInWindow = keepInWindow;
	this.hideTree = hideTree
	this.hideParents = hideParents;
	this.hideTop = hideTop;
	this.hasChildVisible = false;
	this.isOn = false;
	this.hideTimer = null;
	this.childOverlap = (perCentOver != null) ? ((perCentOver/100) * this.menuWidth) : childOverlap;
	this.currentItem = null;
	this.hideSelf = hideSelf;
	this.hasParent = false;
	if (NS4) {
		this.bgColor = this.menuBorCol;
		this.fullHeight = this.lastItem.top + this.lastItem.clip.bottom + borWid;
		this.clip.right = this.menuWidth;
		this.clip.bottom = this.fullHeight;
	} else {
		with (this.style) {
			width = this.menuWidth;
			borderWidth = borWid;
			borderColor = this.menuBorCol;
			borderStyle = borSty;
			zIndex = topZ;
			overflow = "hidden";
		}
		this.lastItem.style.border="";
		this.fullHeight = this.offsetHeight;
		if(isMac)this.style.pixelHeight = this.fullHeight;
		this.fullHeight = this.scrollHeight;
		this.showIt(false);
		this.onselectstart = cancelSelect;
		this.moveTo = moveTo;
		this.moveTo(0,0);
//		alert("this.style.pixelHeight = "+this.style.pixelHeight+"\nthis.offsetHeight = "+this.offsetHeight);
	}
}
function popUp(menuName,e,menuno,imgname){

	var menuno1 = menuno;
	if (NS4 && NSresized) startIt();
	//if (!isLoaded) return;
	linkEl = (NS4) ? e.target : event.srcElement;
	if (clickStart) linkEl.onclick = popMenu;
	if (!beingCreated && !areCreated) startIt();
	linkEl.menuName = menuName;
	if (!clickStart) popMenu(e,menuno1);
	rollon(imgname); // added by bhavik to support rollover but changes
}

function popMenu(e,menuno){
	if (!isLoaded || !areCreated) return true;
	eType = (NS4) ? e.type : event.type;
	hideAll();
	linkEl = (NS4) ? e.target : event.srcElement;
	currentMenu = eval(linkEl.menuName);
	currentMenu.hasParent = false;
	currentMenu.treeParent.startChild = currentMenu;
	if (IE4) menuLocBod = window.document.body;
	xPos = (currentMenu.menuLeft) ? currentMenu.menuLeft : (NS4) ? e.pageX : (event.clientX + menuLocBod.scrollLeft);
	yPos = (currentMenu.menuTop) ? currentMenu.menuTop : (NS4) ? e.pageY : (event.clientY + menuLocBod.scrollTop);
	currentMenu.moveTo(xPos,yPos);
	currentMenu.keepInWindow()
//	alert("currentMenu.keepInWindow = "+currentMenu.keepInWindow);
	currentMenu.isOn = true;
	currentMenu.showIt(true);
	return false;
}
function menuOver(e) {
	this.isOn = true;
	isOverMenu = true;
	currentMenu = this;
	if (this.hideTimer) clearTimeout(this.hideTimer);
}
function menuOut() {
	if (IE4) {
		theEvent = window.event;
		if (theEvent.srcElement.contains(theEvent.toElement)) return;
	}
	this.isOn = false;
	isOverMenu = false;
	allTimer = setTimeout("currentMenu.hideTree()",10);
}
function itemOver(){
	if (keepHilite) {
		if (this.container.currentItem && this.container.currentItem != this) {
			if (NS4) {
					this.container.currentItem.bgColor = this.container.menuBGColor;
			} else {
				with (this.container.currentItem.style) {

					if (this.linktrue==1){
					backgroundColor = this.container.menuBGColor;
				//	color = this.container.menuFontColor1;
					}
					else{
						backgroundColor = this.container.menuBGColor;
				//		color = this.container.menuFontColor;
					}
				}
			}
		}
	}
	if (IE4) {
		theEvent = window.event;
		if (theEvent.srcElement.tagName == "IMG") return;
		//this.style.backgroundColor = this.container.menuBGOver;
			if (this.linktrue==1){
				this.style.backgroundColor = this.container.menuBGOver;
				//this.style.color = this.container.menuFontOver;
			}
			else{
				this.style.backgroundColor = this.container.menuBGOver1;
				//this.style.color = this.container.menuFontOver1;
			}
	} else {
			if (this.linktrue==1){
				this.bgColor = this.container.menuBGOver;
			}
			else{
				this.bgColor = this.container.menuBGOver1;
			}
	}
	this.container.currentItem = this;
}
function itemOut()
{
	if (IE4) {
		theEvent = window.event;
		 if (theEvent.srcElement.contains(theEvent.toElement)
	  || (theEvent.fromElement.tagName=="IMG" && theEvent.toElement.contains(theEvent.fromElement)))
		  return;
		if (!keepHilite) {
					this.style.backgroundColor = this.container.menuBGColor1;
					this.style.color = this.container.menuFontColor;
		}
		if (keepHilite) {
					this.style.backgroundColor = this.container.menuBGColor;

					if (this.linktrue==1){
					this.style.color = this.container.menuFontColor;
					}else{
					this.style.color = this.container.menuFontColor1;
					}

		}

	} else {
		if (!keepHilite) {
				this.bgColor = this.container.menuBGColor;
		}
		if (!isOverMenu) {
			allTimer = setTimeout("currentMenu.hideTree()",10);
		}
	}
}

function moveTo(xPos,yPos) {
	this.style.pixelLeft = xPos + addpixels-3; // modified by bhavik
	this.style.pixelTop = yPos;
}
function showIt(on) {
	if (NS4) {
		this.visibility = (on) ? "show" : "hide";
		if (keepHilite && this.currentItem) {
			this.currentItem.bgColor = this.menuBGColor;

		}
	} else {
		this.style.visibility = (on) ? "visible" : "hidden";
		if (keepHilite && this.currentItem) {
			with (this.currentItem.style) {
				backgroundColor = this.menuBGColor;
				color = this.menuFontColor;
			}
		}
	}
	this.currentItem = null;
}
function keepInWindow() {
	botScrBar = 5;
	if (NS4) {
		winBot = (window.pageYOffset + window.innerHeight) - botScrBar ;
		botPos = this.top + this.fullHeight;
	} else {
		winBot = (window.document.body.scrollTop + window.document.body.clientHeight) - botScrBar;
		botPos = this.style.pixelTop + this.fullHeight;
	}
	if (botPos > winBot) {
		dif = botPos - winBot;
		(NS4) ? (this.top -= dif) : (this.style.pixelTop -= dif);
	}
//	status = ("this.style.pixelTop = "+ this.style.pixelTop +", botPos = "+ botPos);
}
function linkIt() {
	if (this.linkText.indexOf("javascript:")!=-1) eval(this.linkText)
	//else window.location.href = this.linkText;
	// used 'self' 2 keep the URL intact - iGates ;-)
	 else window.self.location.href = this.linkText;

}
function popDown(menuName){
	if (!isLoaded || !areCreated) return;
	whichEl = eval(menuName);
	setTimeout("whichEl.hideTop();whichEl.isOn = false;",10);

}
function hideAll() {
	for(i=1; i<topCount; i++) {
		temp = eval("elMenu" + i + ".startChild");
		temp.isOn = false;
		temp.showIt(false);
		if (imgname!="")
		{
			rolloff(imgname);
		}
				
	}
}
function hideTree() {
	allTimer = null;
	if (isOverMenu) return;
	this.hideParents();

}

function hideTop() {
	whichTop = this;
	this.hideTimer = setTimeout("if(whichTop.hideSelf)whichTop.hideSelf(imgname)",mSecsVis);
}

function hideSelf() {
	this.hideTimer = null;
	if (!this.isOn && !isOverMenu) {
		this.showIt(false);
		rolloff(imgname);
	}
}

function hideParents() {
	tempMenu = this;
	while (tempMenu.hasParent) {
		tempMenu.showIt(false);
		tempMenu.parentMenu.isOn = false;
		tempMenu = tempMenu.parentMenu;
	}
	tempMenu.hideTop();
}
function cancelSelect(){return false}

function reDo(){
	if (loader.innerWidth==origWidth && loader.innerHeight==origHeight) return;
	initVars();
	NSresized=true;
	window.location.reload();
}
function clicked() {
	if (!isOverMenu && currentMenu!=null && !currentMenu.isOn) {
		whichEl = currentMenu;
		whichEl.hideTree();
	}
}
//window.onerror = handleErr;
function handleErr(){
	arAccessErrors = ["permission","access"];
	mess = arguments[0].toLowerCase();
	found = false;
	for (i=0;i<arAccessErrors.length;i++) {
		errStr = arAccessErrors[i];
		if (mess.indexOf(errStr)!=-1) found = true;
	}
	return found;
}
//end




//-->