
frameNav = parent.frames.common;

menuWidth = 130;
menuTop = 5;
menuLeft = 0;
fntCol = "black";
fntSizNS = "8";
fntSizIE = "8";
fntBold = false;
fntItal = false;
fntFam = "Verdana,Helvetica";
backCol = "#6699CC";
backExp = "#FFFFFF";
overCol = "#6699CC";
homeCol = "#6699CC";
selectCol = "#6699CC";
selectCol2 = "#FFFFFF";
overFnt = "white";
borWid = 0;
borCol = "#6699CC";
borSty = "solid";
itemPad = 1;
separator = 0;
separatorCol = "#6699CC";

NS4 = (document.layers); 
IE4 = (document.all);
if(!document.all && document.getElementById){NS6=1;} else {NS6=0;}

imagesActivedNS = 0;
imagesActivedIE = 0;
timerActivedNS=1;
timerActivedIE=1;
divCreated=0;

fond_trans = new Image();
fond_trans.src = "java/fond_trans.gif";

fond_home = new Image();
fond_home.src = "java/fond_home.gif";

fond_blanc = new Image();
fond_blanc.src = "java/fond_blanc.gif";

arImagesMenu=[
"java/fond_trans.gif","java/fond_home.gif","java/fond_blanc.gif","java/fond_blanc.gif","java/fond_home.gif",0,0
]

imagesTable = eval("arImagesMenu");
imgStr = "<IMG SRC=\"java/wr.gif\" WIDTH=\"9\" HEIGHT=\"9\" BORDER=0 hspace=0 align=left>";
topCount=1;
topCountPrev = 1;
changeArray = 0;

initVars();
if (NS4) parent.onload = startIt;
if (IE4) parent.document.body.onload = startIt;
if (NS6) parent.onload = startIt;

if (NS4) setTimeout("window.onresize=reDo",500);


isLoaded = false;
NSresized = false;
thisitem=-1;thisURL=0;
iceMenu = 0;
var timeOut1ID=0;
var timeOut5ID=0;


menuParamNum = 10;
areCreated = false;

function initVars() {
	if ((IE4 || NS6) && timerActivedIE) {
			if (timeOut1ID ) {clearTimeout(timeOut1ID);timeOut1ID=0;}
			if (timeOut5ID ) {clearTimeout(timeOut5ID);timeOut5ID=0;}
					   }
	if (NS4 && timerActivedNS) {
			if (timeOut1ID ) {clearTimeout(timeOut1ID);timeOut1ID=0;}
			if (timeOut5ID ) {clearTimeout(timeOut5ID);timeOut5ID=0;}
					   }

	firstLoad = 1;
	
	areCreated = false;
	beingCreated = false;
	isOverMenu = false;
	currentMenu = null;
	allTimer = null;
	masterMenu=0;
	masterMenuActif=0;
	itemURLVide=0;
	itemURLVideActif=0;
	
}

function timeOut() {
	initVars();
	startIt();
}	


function searchItem() {
	
if (firstLoad)
	{

	pageURL = parent.frames.page.location.href;
      		
	
	itemCount=0;
		
	
	pageString=pageURL; 
	if (pageString.indexOf("#") != -1 )
	pageString = pageString.substring(0,pageString.indexOf("#"));
      if (pageString.indexOf("?") != -1 )
	pageString = pageString.substring(0,pageString.indexOf("?"));

	
	while (itemCount < menuMaxItems) 
		{
		itemCount++;
		arrayPointer = ((itemCount-1)*6)+menuParamNum;
		arrayString=menuArray[arrayPointer+1];
		if ( arrayString != null) {
		arrayString=arrayString.substring(arrayString.indexOf("'")+1);
	      regexp=pageString+"'";
		if (arrayString == regexp)
				{thisURL=itemCount;iceMenu=menuArray[arrayPointer+3];break;} 
			}	
		}
	if ( thisURL != 0 ) return;
	
	pageString=pageString.substring(pageString.indexOf("/")+2); 
		
	while (pageString.indexOf("/")!= -1) 
	{
	pageString=pageString.substring(pageString.indexOf("/")+1);
	itemCount=0;	
	
	while (itemCount < menuMaxItems) 
		{
		itemCount++;
		arrayPointer = ((itemCount-1)*6)+menuParamNum;
		arrayString=menuArray[arrayPointer+1];
		if ( arrayString != null) {
		arrayString=arrayString.substring(arrayString.indexOf("'")+1);
		regexp=pageString+"'";
		if (arrayString == regexp)
				{thisURL=itemCount;iceMenu=menuArray[arrayPointer+3];break;} 
			}	
		}
	if ( thisURL != 0 ) return;
	}
	}
else
	{
	itemCount=0;
	            
	while (itemCount < menuMaxItems) 
		{
		itemCount++;
		arrayPointer = ((itemCount-1)*6)+menuParamNum;
		arrayString=menuArray[arrayPointer+1];
		if ( arrayString != null) {
		if (arrayString == thisLinkText)
				{thisURL=itemCount;iceMenu=menuArray[arrayPointer+3];break;} 
			}	
		}
	if ( thisURL != 0 ) return;
	}

}


function startIt() {
	//if (NS4) top.common.onunload = initVars; 

	isLoaded = true;
	beingCreated = true;
	menuLoc = frameNav;
	
	numberArray=1;
	while(eval("window.arMenu" + numberArray)) {
	numberArray++;
	}
	numberArray--;
	// premiere recherche sur tableau courant 
	menuArray = eval("window.arMenu" + topCount);
	menuMaxItems = (menuArray.length-menuParamNum)/6;
	changeArray=0;
	thisURL=0;
	if (!iceMenu) searchItem();
	if ( thisURL == 0 ) 
		{
		// puis recherche sur les autres tableaux 
		for ( topCountTemp=1; topCountTemp<= numberArray; topCountTemp++ )
			{
			if (topCountTemp!=topCount)
				{
			menuArray = eval("window.arMenu" + topCountTemp);
			menuMaxItems = (menuArray.length-menuParamNum)/6;
			searchItem();
			if ( thisURL != 0 ) {topCount=topCountTemp;changeArray=1;break;}
				}
			}
		if (thisURL==0)
			{ 
			if ( topCount != 1 ) changeArray=1;
			topCount=1;
			}
		}
		
	(NS4) ? makeMenuNS(topCount) : makeMenuIE(topCount);

	areCreated = true;
	beingCreated = false;
	
	if ((IE4 || NS6) && timerActivedIE) {timeOut1ID=setTimeout("timeOut()",1000);}
	if (NS4 && timerActivedNS) {timeOut1ID=setTimeout("timeOut()",1000);}
			
}


function startItNoChange() {
	
	isLoaded = true;
	beingCreated = true;
	menuLoc = frameNav;
				
	(NS4) ? makeMenuNS(topCount) : makeMenuIE(topCount);

	areCreated = true;
	beingCreated = false;

	if ((IE4 || NS6) && timerActivedIE) {timeOut1ID=setTimeout("timeOut()",5000);}
	if (NS4 && timerActivedNS) {timeOut1ID=setTimeout("timeOut()",5000);}
}

function startItChange() {
	
	isLoaded = true;
	beingCreated = true;
	menuLoc = frameNav;
	
	
	menuArray = eval("window.arMenu" + topCount);
	menuMaxItems = (menuArray.length-menuParamNum)/6;
	thisURL=0;
	if (!iceMenu) searchItem();
		
	(NS4) ? makeMenuNS(topCount) : makeMenuIE(topCount);

	areCreated = true;
	beingCreated = false;

	if ((IE4 || NS6) && timerActivedIE) {timeOut1ID=setTimeout("timeOut()",5000);}
	if (NS4 && timerActivedNS) {timeOut1ID=setTimeout("timeOut()",5000);}
}


function makeMenuNS(menuCount) {
	tempArray = eval("arMenu" + menuCount);
	tempWidth = tempArray[0] ? eval(tempArray[0]) : menuWidth;
	menu = makeElement("menugauche",tempWidth,null,null);
	menu.array = tempArray;
	menu.setMenuTree = setMenuTree;
	menu.setMenuTree();
	
	if ( thisURL == 0 && iceMenu == 1 ) return;

	
	
	if ( changeArray) 
		{
		thisitem=thisURL;
		
		for (i=0; i<top.common.document.layers.length;i++)
	   		{
	    		
	    		top.common.document.layers[i].visibility="hide";
	   		}
	 	menu = makeElement("menugauche",tempWidth,null,null);
		menu.array = tempArray;
		menu.setMenuTree = setMenuTree;
		menu.setMenuTree();
		}
	else
		{
		if ( firstLoad ) 
			{
			if  (thisURL != thisitem) 
				{
				thisitem=thisURL;
				
				for (i=0; i<top.common.document.layers.length;i++)
	   				{
	    				
	    				top.common.document.layers[i].visibility="hide";
	   				}
	 			menu = makeElement("menugauche",tempWidth,null,null);
				menu.array = tempArray;
				menu.setMenuTree = setMenuTree;
				menu.setMenuTree();
				}
			else return;
			}
		else
			{	
			
			for (i=0; i<top.common.document.layers.length;i++)
	   			{
	    		
	    		top.common.document.layers[i].visibility="hide";
	   			}
	 		menu = makeElement("menugauche",tempWidth,null,null);
			menu.array = tempArray;
			menu.setMenuTree = setMenuTree;
			menu.setMenuTree();
			}
		}
	
	
	
	if (thisitem)
		{
		arrayPointer = ((thisitem-1)*6)+menuParamNum;
		hasMore = menu.array[arrayPointer + 5];

		switch ( hasMore)
			{
			case 0 :
			masterMenu=0;
			break;
			
			case 1 :
			masterMenu = menu.array[arrayPointer + 4];
			if ( menu.array[arrayPointer + 1] == null ) {itemURLVide=thisitem;thisitem = previousItem;}

			
			arrayPointer = ((thisitem-1)*6)+menuParamNum;
			hasMore = menu.array[arrayPointer + 5];
			if (hasMore) masterMenuActif=menu.array[arrayPointer + 4];
			break;

			case 2 :
			masterMenu = menu.array[arrayPointer + 4];
			break;
			}
		}
	else masterMenu=0;
	
	while (menu.itemCount < menu.maxItems) {
		menu.itemCount++;
		prevItem = (menu.itemCount > 1) ? menu.item : null;
		itemName = "item" + menuCount + "_" + menu.itemCount;
		
		arrayPointer = ((menu.itemCount-1)*6)+menuParamNum;
		hasMore = menu.array[arrayPointer + 5];


		

		if ( menu.itemCount == thisitem )
			{
			menu.item = makeElement(itemName,null,null,menu);
			menu.item.prevItem = prevItem;
			
			switch ( hasMore)
				{
				case 0 :
				menu.item.setup = itemSetup;
				menu.item.setup(menu.itemCount,menu.array);
				break;
			
				case 1 :
				menu.item.setup = itemSetup;
				menu.item.setup(menu.itemCount,menu.array);
				break;

				case 2 :
				menu.item.setup = itemSetup;
				menu.item.setup(menu.itemCount,menu.array);
				break;
				}
			}
		else
			{
			switch (hasMore)
				{
				case 0:
				menu.item = makeElement(itemName,null,null,menu);
				menu.item.prevItem = prevItem;
			
				menu.item.setup = itemSetup;
				menu.item.setup(menu.itemCount,menu.array);
				break;

				case 1:
				if ( (menu.array[arrayPointer + 4]== masterMenu) && (menu.array[arrayPointer + 1]== null)) itemURLVide=menu.itemCount; 
				if ( (menu.array[arrayPointer + 4]== masterMenuActif) && (menu.array[arrayPointer + 1]== null)) itemURLVideActif=menu.itemCount; 
				
				menu.item = makeElement(itemName,null,null,menu);
				menu.item.prevItem = prevItem;
			
				menu.item.setup = itemSetup;
				menu.item.setup(menu.itemCount,menu.array);
				break;
				
				case 2:		
				if ((menu.array[arrayPointer + 4]== masterMenu) || (menu.array[arrayPointer + 4]== masterMenuActif) )
						{
						menu.item = makeElement(itemName,null,null,menu);
						menu.item.prevItem = prevItem;
			
						menu.item.setup = itemSetup;
						menu.item.setup(menu.itemCount,menu.array);
						}
				break;
				}

						
			}

	}
	menu.lastItem = menu.item;
	menu.setup();
}

function setMenuTree() {
	this.menuWidth = this.array[0] ? eval(this.array[0]) : menuWidth;
	this.menuLeft = eval(this.array[1]);
	this.menuTop = (NS4) ? eval(this.array[2]) : (NS6) ?(eval(this.array[2])-20) : (eval(this.array[2])-20);
      this.menuFontColor = this.array[3] ? this.array[3] : fntCol;
	this.menuFontOver = this.array[4] ? this.array[4] : overFnt;
	this.menuBGColor = this.array[5] ? this.array[5] : backCol;
	this.menuBGOver = this.array[6] ? this.array[6] : overCol;
	this.menuBorCol = this.array[7] ? this.array[7] : borCol;
	this.menuSeparatorCol = this.array[8] ? this.array[8] : separatorCol;
	this.maxItems = (this.array.length-menuParamNum)/6;
      this.setup = menuSetup;
	this.itemCount = 0;
}

function makeMenuIE(menuCount) {
	
	menu = makeElement("menugauche");
	
	menu.array = eval("arMenu" + menuCount);
	menu.setMenuTree = setMenuTree;
	menu.setMenuTree();
	
	if ( thisURL == 0 && iceMenu == 1 ) return; 
	if ( changeArray ) thisitem=thisURL;
	else
		{
		if ( firstLoad ) 
			{
			if (thisURL != thisitem) thisitem=thisURL;
			else return;
			}
		}

		
	menu.itemStr = "<br>";
	
	displayItem = new Array(menu.maxItems) ;
      displayCount=0;

	
	if (thisitem)
		{
		arrayPointer = ((thisitem-1)*6)+menuParamNum;
		hasMore = menu.array[arrayPointer + 5];

		switch ( hasMore)
			{
			case 0 :
			masterMenu=0;
			break;
			
			case 1 :
			masterMenu = menu.array[arrayPointer + 4];
			if ( menu.array[arrayPointer + 1] == null ) {itemURLVide=thisitem;thisitem = previousItem; }

			
			arrayPointer = ((thisitem-1)*6)+menuParamNum;
			hasMore = menu.array[arrayPointer + 5];
			if (hasMore) masterMenuActif=menu.array[arrayPointer + 4];
			break;

			case 2 :
			masterMenu = menu.array[arrayPointer + 4];
			break;
			}
		}
	else masterMenu=0;
	
		
	while (menu.itemCount < menu.maxItems) {
		menu.itemCount++;

		itemName = "item" + menuCount + "_" + menu.itemCount;
		arrayPointer = ((menu.itemCount-1)*6)+menuParamNum;
		dispText = menu.array[arrayPointer];
		hasMore = menu.array[arrayPointer + 5];

		espace="&nbsp;&nbsp;&nbsp;";
		doubleEspace="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
		dispText = dispText + "&nbsp;";

		if ( menu.itemCount == thisitem )
			{
			switch ( hasMore)
				{
				case 0 :
				htmStr=dispText;
				displayItem[displayCount]=menu.itemCount;displayCount++;
				if (IE4) menu.itemStr += "<SPAN ID=" + itemName + " STYLE='width:" + menu.menuWidth + "'>"  + htmStr + "</SPAN><BR>";
				else menu.itemStr += "<SPAN ID=" + itemName + " STYLE='position:absolute;width:" + menu.menuWidth + "'>" + htmStr + "</SPAN><BR>";
				break;
			
				case 1 :
				if (NS6) htmStr= imgStr + espace + dispText;
				else htmStr= imgStr + dispText;
				displayItem[displayCount]=menu.itemCount;displayCount++;
				if (IE4) menu.itemStr += "<SPAN ID=" + itemName + " STYLE='width:" + menu.menuWidth + "'>"  + htmStr + "</SPAN><BR>";
				else menu.itemStr += "<SPAN ID=" + itemName + " STYLE='position:absolute;width:" + menu.menuWidth + "'>" + htmStr + "</SPAN><BR>";
				break;

				case 2 :
				htmStr=dispText;
				displayItem[displayCount]=menu.itemCount;displayCount++;
				if (IE4) menu.itemStr += "<SPAN ID=" + itemName + " STYLE='width:" + menu.menuWidth + "'>"  + htmStr + "</SPAN><BR>";
				else menu.itemStr += "<SPAN ID=" + itemName + " STYLE='position:absolute;width:" + menu.menuWidth + "'>" + htmStr + "</SPAN><BR>";
				break;
				}

		
			}
		else
			{
			switch ( hasMore )
				{
				case 0:
				displayItem[displayCount]=menu.itemCount;displayCount++;
				htmStr=dispText;
				if (IE4) menu.itemStr += "<SPAN ID=" + itemName + " STYLE='width:" + menu.menuWidth + "'>"  + htmStr + "</SPAN><BR>";
				else menu.itemStr += "<SPAN ID=" + itemName + " STYLE='position:absolute;width:" + menu.menuWidth + "'>" + htmStr + "</SPAN><BR>";
				break;

				case 1:
				if ( (menu.array[arrayPointer + 4]== masterMenu) && (menu.array[arrayPointer + 1]== null)) itemURLVide=menu.itemCount; 
				if ( (menu.array[arrayPointer + 4]== masterMenuActif) && (menu.array[arrayPointer + 1]== null)) itemURLVideActif=menu.itemCount; 
				displayItem[displayCount]=menu.itemCount;displayCount++;
				if (NS6) htmStr= imgStr + espace + dispText;
				else htmStr= imgStr + dispText;
				if (IE4) menu.itemStr += "<SPAN ID=" + itemName + " STYLE='width:" + menu.menuWidth + "'>"  + htmStr + "</SPAN><BR>";
				else menu.itemStr += "<SPAN ID=" + itemName + " STYLE='position:absolute;width:" + menu.menuWidth + "'>" + htmStr + "</SPAN><BR>";
				break;

				case 2:
				if ((menu.array[arrayPointer + 4]== masterMenu) || (menu.array[arrayPointer + 4]== masterMenuActif) )
						{
						displayItem[displayCount]=menu.itemCount;displayCount++;
						htmStr = dispText;
						if (IE4) menu.itemStr += "<SPAN ID=" + itemName + " STYLE='width:" + menu.menuWidth + "'>"  + htmStr + "</SPAN><BR>";
						else menu.itemStr += "<SPAN ID=" + itemName + " STYLE='position:absolute;width:" + menu.menuWidth + "'>" + htmStr + "</SPAN><BR>";
						}
				break;		
				}
									
			}

	}
	
	menu.innerHTML = menu.itemStr;
	
	
	if (IE4)
		{
	itemColl = menu.children.tags("SPAN");
	
	for (i=0; i<itemColl.length; i++) {
		it = itemColl(i);
		it.setup = itemSetup;
		it.setup(displayItem[i],menu.array);
		}
	menu.lastItem = itemColl(itemColl.length-1);
		}

	if (NS6)
		{
		
	i=1;
	itemNumber=0;
	while ( i < (menu.maxItems+1)){
		if ( document.getElementById('item' + menuCount + '_'+i) != null)
			{
			it =document.getElementById('item' + menuCount + '_'+i);
			it.setup = itemSetup;
			it.setup(displayItem[itemNumber],menu.array);
			itemNumber++;
			}
		i++;
		} 
	menu.lastItem = document.getElementById('item' + menuCount + '_'+(i-1));
		}
	menu.setup();
}

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 = frameNav;
		eval(whichEl + "= new Layer(elWidth,whichContainer)");
			}

	if (IE4 && !divCreated)
			{
			divCreated=1;
			elStr = "<DIV ID=" + whichEl + " STYLE='position:absolute' align='right'></DIV>";
			menuLoc.document.body.insertAdjacentHTML("BeforeEnd",elStr);
			}
		
	if (NS6 && !divCreated)
			{
			divCreated=1;
			var newDiv= document.createElement("div");
			newDiv.id = whichEl;
			newDiv.setAttribute("style","position:absolute" ); 
			newDiv.setAttribute("align","right");	
			menuLoc.document.body.appendChild(newDiv); 

			}

	if (NS6) {return eval("menuLoc.document.getElementById('menugauche')");}
	else {return eval(whichEl);}
	
}

function itemSetup(whichItem,whichArray) {
	
	this.container = (NS4) ? this.parentLayer : this.offsetParent;
	arrayPointer = ((whichItem-1)*6)+menuParamNum;
	this.dispText = whichArray[arrayPointer];
	this.linkText = whichArray[arrayPointer + 1];
	hasMore = whichArray[arrayPointer + 5];
	this.hasMore=hasMore;
	
      this.item = whichItem;
	if(window.deepdir)this.linkText = "../" + this.linkText;

	onpage = (whichItem==thisitem);
	//if(!onpage && !(whichItem==itemURLVide) && !(whichItem==itemURLVideActif) ) {
	if(!onpage) {
		this.onmouseover = itemOver;
		this.onmouseout = itemOut;
	}

	
		if (NS4) {
			this.captureEvents(Event.MOUSEUP)
			this.onmouseup = linkIt;
		}
		else {
			this.onclick = linkIt;
			this.style.cursor = "hand";
		
		}
	

	if (NS4) {
		htmStr = this.dispText;
		if (hasMore==2)htmStrOver = htmStr.bold();
		else htmStrOver = htmStr.bold();
		if (fntBold) htmStr = htmStr.bold();
		if (fntItal) htmStr = htmStr.italics();

		htmStr = htmStr + "&nbsp;&nbsp;";
		htmStrOver = htmStrOver+ "&nbsp;&nbsp;";

		switch ( hasMore )
			{
			case 0 :
			htmStr = "<div align=right><FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSizNS + ">" + htmStr+ "</FONT></div>";
			htmStrOver = "<div align=right><FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSizNS + ">" + htmStrOver+ "</FONT></div>";
			this.htmStrOver = htmStrOver.fontcolor(this.container.menuFontOver);
			break;

			case 1 :
			htmStr = imgStr + "<div align=right><FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSizNS + ">" + htmStr+ "</FONT></div>";
			htmStrOver = imgStr + "<div align=right><FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSizNS + ">" + htmStrOver+ "</FONT></div>";
			this.htmStrOver = htmStrOver.fontcolor(this.container.menuFontOver);
			break;

			case 2 :
			htmStr = "<div align=right><FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSizNS + ">" + htmStr+ "</FONT></div>";
			htmStrOver = "<div align=right><FONT FACE='" + fntFam + "' POINT-SIZE=" + fntSizNS + ">" + htmStrOver+ "</FONT></div>";
			this.htmStrOver = htmStrOver.fontcolor("black");
			break;
			}

		
		this.htmStr = (onpage) ? htmStr.fontcolor("black") : htmStr.fontcolor(this.container.menuFontColor);
		with(this) {
			visibility = "inherit";
		
			top = (whichItem == 1) ? (borWid + itemPad) : (this.prevItem.top + this.prevItem.clip.height + separator);
			left = borWid + itemPad;
			clip.top = this.clip.left = -itemPad;
			clip.right = this.container.menuWidth-(borWid*2)-itemPad;
		}

		this.lyr0 = new Layer(this.clip.width,this);
		with(this.lyr0) {
			moveTo(0,0);
			document.write(this.htmStr);
			document.close();
			clip.height = this.lyr0.document.height + (2*itemPad);
			visibility = "inherit";
			
		}

		this.lyr1 = new Layer(this.clip.width,this);
		with(this.lyr1) {
			moveTo(0,0);
			document.write(this.htmStrOver);
			document.close();
		}

		this.clip.height = this.lyr0.clip.height;

		this.lyr2 = new Layer(this.clip.width,this);
		with(this.lyr2) {
			moveTo(-itemPad,-itemPad);
			clip.width = this.clip.width;
			clip.height = this.clip.height;
			visibility = "inherit";
		}

		with (this)
			{
			

			if (onpage)
				{
				this.lyr0.visibility = "hide";
				this.lyr1.visibility = "inherit";
				if (hasMore==2)
					{ 
					if ( !imagesActivedNS)  bgColor = selectCol2;
					else eval("background.src = '" + imagesTable[3] + "'");
					}
				else  { 
					if ( !imagesActivedNS)  bgColor = selectCol;
					else eval("background.src = '" + imagesTable[1] + "'");
					}

				}
			else  {
				if (hasMore==2)
					{ 
					if ( !imagesActivedNS)  bgColor = backExp;
					else eval("background.src = '" + imagesTable[2] + "'");
					}
				else  { 
					if ( !imagesActivedNS)  bgColor = this.container.menuBGColor;
					else eval("background.src = '" + imagesTable[0] + "'");
					}
				}
			   
			}
		
	}
	else {
		with (this.style) {
			padding = itemPad;
			color = (onpage) ? "white" : this.container.menuFontColor;
			fontSize = fntSizIE + "pt";
			if (onpage) {fontWeight = "normal";}
			else {
			fontWeight = (fntBold) ? "bold" : "normal";}
			fontStyle =	(fntItal) ? "italic" : "normal";
			fontFamily = fntFam;
		
			borderBottomWidth = separator + "px";
			borderBottomColor = this.container.menuSeparatorCol;
			borderBottomStyle = "solid";
			
			if (onpage)
				{
				fontWeight = "bold";
				if (hasMore==2)
					{
					if ( imagesActivedIE  ) eval("backgroundImage = 'url("+ imagesTable[3]+ ")'");
					else backgroundColor = selectCol2;
				      color="black";}
				else  { 
					if ( imagesActivedIE ) eval("backgroundImage = 'url("+ imagesTable[1]+ ")'");
					else backgroundColor = selectCol;}
				}
			else  {
				if (hasMore==2)
					{
					if ( imagesActivedIE  ) eval("backgroundImage = 'url("+ imagesTable[2]+ ")'");
					else backgroundColor = backExp;}
				else  { 
					if ( imagesActivedIE ) eval("backgroundImage = 'url("+ imagesTable[0]+ ")'");
					else backgroundColor = this.container.menuBGColor;}
				}
		
		}
	}
}	

function menuSetup(openCont,openItem) {
	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;
		this.moveTo(this.menuLeft,this.menuTop);
		this.visibility="show";
	}
	else {
		with (this.style) {
			width = this.menuWidth;
			borderWidth = borWid;
			borderColor = this.menuBorCol;
			borderStyle = borSty;
			cursor = "default";
		}

		this.lastItem.style.border="";
		this.fullHeight = this.scrollHeight;
		this.onselectstart = cancelSelect;
		this.moveTo = moveTo;
		this.moveTo(this.menuLeft,this.menuTop);
		this.style.visibility="visible";
	}
}

function itemOver(){
	
	if ((IE4 || NS6)) {
						
			if (this.hasMore==2)
				{
				if ( imagesActivedIE  ) eval("this.style.backgroundImage = 'url("+ imagesTable[2]+ ")'") ;
				else this.style.backgroundColor = backExp;
				this.style.color = "black";
				}
			else  { 
				if ( imagesActivedIE ) eval("this.style.backgroundImage = 'url("+ imagesTable[1]+ ")'") ;
				else this.style.backgroundColor = overCol;
				this.style.color = this.container.menuFontOver;
				}
		
		
		this.style.fontWeight = "bold";
	}
	else {
		
			if (this.hasMore==2)
					{ 
					if ( !imagesActivedNS)  this.bgColor = backExp;
					else eval("this.background.src = '" + imagesTable[2] + "'");
					}
				else  { 
					if ( !imagesActivedNS)  this.bgColor = overCol;
					else eval("this.background.src = '" + imagesTable[1] + "'");
					}
		
		this.lyr0.visibility = "hide";
		this.lyr1.visibility = "inherit";
	}
}

function itemOut() {
	if ((IE4 || NS6)) {
		this.style.color = this.container.menuFontColor;
		this.style.fontWeight = "normal";
	
			if (this.hasMore==2)
				{
				if ( imagesActivedIE  ) eval("this.style.backgroundImage = 'url("+ imagesTable[2]+ ")'") ;
				else this.style.backgroundColor = backExp;}
			else  { 
				if ( imagesActivedIE ) eval("this.style.backgroundImage = 'url("+ imagesTable[0]+ ")'") ;
				else this.style.backgroundColor = this.container.menuBGColor;}
			
	}
	else {
	
			if (this.hasMore==2)
					{ 
					if ( !imagesActivedNS)  this.bgColor = backExp;
					else eval("this.background.src = '" + imagesTable[2] + "'");
					}
				else  { 
					if ( !imagesActivedNS)  this.bgColor = this.container.menuBGColor;
					else eval("this.background.src = '" + imagesTable[0] + "'");
					}
		this.lyr1.visibility = "hide";
		this.lyr0.visibility = "inherit";
	}
}

function moveTo(xPos,yPos) {
	this.style.pixelLeft = xPos;
	if (NS6) this.style.top = yPos-15;
	else this.style.pixelTop = yPos;
}

function linkIt() {
			initVars();firstLoad=0;

			if (this.linkText != null) {			
			if (this.linkText.indexOf("javascript:")!=-1) eval(this.linkText)
			else menuLoc.location.href = this.linkText;
			}
			thisLinkText = this.linkText;
			
			previousItem=thisitem;
			thisitem=this.item; 
			arrayPointer = ((thisitem-1)*6)+menuParamNum;
			if (menu.array[arrayPointer + 2]) 
				{
				topCountPrev = topCount;
				topCount=menu.array[arrayPointer + 2];
				if (topCountPrev != topCount) changeArray=1; else changeArray=0;
				}
			else changeArray=0;

			iceMenu=menu.array[arrayPointer + 3];thisURL=-1; 
			if (changeArray) startItChange(); else startItNoChange();
			}

function cancelSelect(){return false}

function reDo(){ initVars(); NSresized=true; top.location.reload();} 

