var isNav, isIE
var xPixel, yPixel
var closing, opening
var tere = "default"
var coll = ""
var styleObj = ""
var isMac, isPC
var menuUp = null;

if (navigator.platform.indexOf('Mac') != -1) {
	isMac = true
} else {
	isPC = true
}
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		isNav = true
		origWidth = innerWidth;
        origHeight = innerHeight;
	} else {
		isIE = true;					 
		coll = "all.";
		styleObj = ".style";
	}
} else if (!isNav && !isIE) {
	top.location.href = "/suckapage.html"
}

function NetscapeSux() {
      if (innerWidth != origWidth || innerHeight != origHeight) {
		origWidth = innerWidth;
		origHeight = innerHeight;
		location.reload()
		return false
	}
}
if (isNav) {
	window.captureEvents(Event.RESIZE)
	window.onresize = NetscapeSux
}

function fixLayer(lname) {
	var fixedLayer
	fixedLayer = eval("document." + coll + lname + styleObj);
	return fixedLayer;
}

function fixImg(imageTitle,lName) {
	if (isNav) {
		fixedImage = eval("document." + lName + ".document." + imageTitle);
	} else {
		fixedImage = eval("document." + imageTitle);
	}
	return fixedImage;
}



function restore()
{
    var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function preloadImages()
{
    var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

document.write('<STYLE TYPE=text/css>');
document.write('.ejs_mv3_styl_scroll {font-size:10px;font-family:Verdana;color:#FFFFFF;text-decoration:none}');
document.write('</STYLE>');

ejs_mv3_largeur = 120;
ejs_mv3_hauteur = 120;
ejs_mv3_bgcolor = '#000066';

ejs_mv5_largeur = 120;
ejs_mv5_hauteur = 120;
ejs_mv5_bgcolor = '#000066';
/* LISTE DES MENUS */

ejs_mv3_menu = new Array;
ejs_mv5_menu = new Array;

ejs_mv3_menu[0] = 'Toile tailleur';
ejs_mv3_menu[1] = '<A HREF="/fr/#" CLASS=ejs_mv3_styl_scroll>Thermo-tissé</A>';
ejs_mv3_menu[2] = 'Toile de base';
ejs_mv3_menu[3] = 'Produits texturés';
ejs_mv3_menu[4] = '<A HREF="/fr/#" CLASS=ejs_mv3_styl_scroll>Divers</A>';

ejs_mv5_menu[0] = 'Féminine';
ejs_mv5_menu[1] = 'Masculine';


/* LISTE DES LIENS */

ejs_mv3_lien = new Array;
ejs_mv3_lien[0] = '' 
ejs_mv3_lien[1] = '' 
ejs_mv3_lien[2] = '' 
ejs_mv3_lien[3] = '' 
ejs_mv3_lien[4] = '' 
ejs_mv3_lien[0] += '<A HREF="/fr/produits/pres_toile_tailleur.htm" CLASS=barreproduit>Généralité</A><BR>';
ejs_mv3_lien[0] += '<A HREF="/fr/produits/ToileTailleurPlastron.htm" CLASS=barreproduit>Toile tailleur plastron</A><BR>';
ejs_mv3_lien[0] += '<A HREF="/fr/produits/CouvrePlastron.htm" CLASS=barreproduit>Couvre-plastron</A><BR>';
ejs_mv3_lien[2] += '<A HREF="/fr/produits/pres_toile_base.htm" CLASS=barreproduit>Généralité</A><BR>';
ejs_mv3_lien[2] += '<A HREF="/fr/produits/TopSatin.htm" CLASS=barreproduit>Top Satin</A><BR>';
ejs_mv3_lien[2] += '<A HREF="/fr/produits/Trameur.htm" CLASS=ejs_mv3_styl_scroll>Trameur</A><BR>';
ejs_mv3_lien[3] += '<A HREF="/fr/produits/pres_produits_textures.htm" CLASS=ejs_mv3_styl_scroll>Généralité</A><BR>';
ejs_mv3_lien[3] += '<A HREF="/fr/produits/BasePolyester.htm" CLASS=ejs_mv3_styl_scroll>Base polyester</A><BR>';
ejs_mv3_lien[3] += '<A HREF="/fr/produits/BasePolyamide.htm" CLASS=ejs_mv3_styl_scroll>Base polyamide</A><BR>';


ejs_mv5_lien = new Array;
ejs_mv5_lien[0] = '' 
ejs_mv5_lien[1] = '' 
ejs_mv5_lien[0] += '<A HREF="#" CLASS=menuheader>Chemisier</A><BR>';
ejs_mv5_lien[0] += '<A HREF="#" CLASS=menuheader>Veste</A><BR>';
ejs_mv5_lien[0] += '<A HREF="#" CLASS=menuheader>Jupe</A><BR>';
ejs_mv5_lien[0] += '<A HREF="#" CLASS=menuheader>Manteaux</A><BR>';
ejs_mv5_lien[1] += '<A HREF="#" CLASS=menuheader>Imperméable</A><BR>';
ejs_mv5_lien[1] += '<A HREF="#" CLASS=menuheader>Veste</A><BR>';
ejs_mv5_lien[1] += '<A HREF="#" CLASS=menuheader>Pantalon</A><BR>';
ejs_mv5_lien[1] += '<A HREF="#" CLASS=menuheader>Chemise</A><BR>';
ejs_mv5_lien[1] += '<A HREF="#" CLASS=menuheader>Manteau</A><BR>';



function d(texte)
	{
	document.write(texte);
	}

//d('<DIV ID=ejs_mv3_relativ STYLE="position:relative;Z-INDEX=18; width:'+ejs_mv3_largeur+';height:'+ejs_mv3_hauteur+'">');
//d('<DIV ID=ejs_mv3_cadre STYLE="position:absolute;Z-INDEX=19; width:112; height:160; top:69; left:459">');
//d('<div id=ejs_mv3_scroll_1 style="   WIDTH: 120px; Z-INDEX: 18; position:absolute; width:'+(ejs_mv3_largeur-8)+';left:0;top:0;" CLASS=ejs_mv3_styl_scroll></DIV>');
//d('<div id=ejs_mv3_scroll_2 style="  WIDTH: 120px; Z-INDEX: 18;position:absolute;width:'+(ejs_mv3_largeur-8)+';top:0;left:'+ejs_mv3_largeur+';" CLASS=ejs_mv3_styl_scroll></DIV>');
//d('<DIV class=barreproduit id=menu3 style="BACKGROUND-COLOR: #000066; BACKGROUND-IMAGE: url(/images/spacer.gif); BORDER-BOTTOM: #cccccc 3px solid; BORDER-LEFT: #666666 2px solid;  BORDER-TOP: #666666 2px solid; LEFT: 455px; PADDING-BOTTOM: 12px; PADDING-LEFT: 12px; PADDING-RIGHT: 12px; PADDING-TOP: 12px; POSITION: absolute; TOP: -140px; VISIBILITY: visible; WIDTH: 120px; Z-INDEX: 17; layer-background-image: url(/images/spacer.gif); layer-background-color: #000066; height: 159px"> </div>');
//d('<div id=menu31 style="BACKGROUND-COLOR: #000066; BACKGROUND-IMAGE: url(/images/spacer.gif); BORDER-BOTTOM: #cccccc 3px solid; BORDER-LEFT: #666666 2px solid; BORDER-RIGHT: #cccccc 3px solid; BORDER-TOP: #666666 2px solid; LEFT: 575px; PADDING-BOTTOM: 12px; PADDING-LEFT: 12px; PADDING-RIGHT: 12px; PADDING-TOP: 12px; POSITION: absolute; TOP: 140px; VISIBILITY: visible; WIDTH: 120px; Z-INDEX: 18; layer-background-image: url(/images/spacer.gif); layer-background-color: #000066"> </DIV>');
//d('</DIV></DIV>');

  
ejs_mv3_mode = 1;
ejs_mv3_actuel = 0;
ejs_mv5_mode = 1;
ejs_mv5_actuel = 0;


function ejs_mv3_show(menu)
	{
	if(menu == "menu")
		{
	   document.getElementById("menu3P").innerHTML ;
		if(ejs_mv3_mode == 2)
			ejs_mv3_action(1);
		}
	else
		{
		var html = "<TABLE  width=100% HEIGHT=120 BACKGROUND= /images/look2/bgMenu.gif><TR><TD  HEIGHT=10 ALIGN=center CLASS=menuheader><font color=#A8DBBC><B><i>"+ejs_mv3_menu[menu]+"</i></B></font><hr color=#cccccc size=1></TD></TR><TR><TD HEIGHT="+(ejs_mv3_hauteur-75)+" ALIGN=center VALIGN=top CLASS=menuheader>"+ejs_mv3_lien[menu]+"</TD></TR><TR><TD HEIGHT=15 CLASS=menuheader> <hr color=#cccccc size=1><A HREF=# onClick='ejs_mv3_show(\"menu\");return(false)' CLASS=menuheader><b>&lt;Retour</b></A></TD></TR></TABLE>";
		document.getElementById("menu3P1").innerHTML = html;
		if(ejs_mv3_mode == 1)
			ejs_mv3_action(2);
		}
	}
ejs_mv3_cursor = ejs_mv3_largeur;

function ejs_mv3_action(action)
	{
	if(action == 2)
		{
		if(ejs_mv3_cursor>0)
			{
			ejs_mv3_cursor -= 10;
			//document.getElementById("menu3").style.left = ejs_mv3_cursor-ejs_mv3_largeur;
			document.getElementById("menu3P1").style.left = ejs_mv3_cursor;
			setTimeout("ejs_mv3_action("+action+")",10);
			ejs_mv3_mode = 2;
			}
		}
	else
		{
		if(ejs_mv3_cursor<ejs_mv3_largeur)
			{
			ejs_mv3_cursor += 10;
			//document.getElementById("menu3").style.left = ejs_mv3_cursor-ejs_mv3_largeur;
			document.getElementById("menu3P1").style.left = ejs_mv3_cursor;
			setTimeout("ejs_mv3_action("+action+")",10);
		    ejs_mv3_mode = 1;
			}
		}
	}

//window.onload = new Function("ejs_mv3_show('menu')");


function ejs_mv5_show(menu)
	{
	if(menu == "menu")
		{
	   document.getElementById("menu5P").innerHTML ;
		if(ejs_mv5_mode == 2)
			ejs_mv5_action(1);
		}
	else
		{
		var html = "<TABLE  width=100% HEIGHT=120 BACKGROUND= /images/look2/bgMenu.gif><TR><TD  HEIGHT=10 ALIGN=center CLASS=menuheader><font color=#A8DBBC><B><i>"+ejs_mv5_menu[menu]+"</i></B></font><hr color=#cccccc size=1></TD></TR><TR><TD HEIGHT="+(ejs_mv5_hauteur-75)+" ALIGN=center VALIGN=top CLASS=menuheader>"+ejs_mv5_lien[menu]+"</TD></TR><TR><TD HEIGHT=15 CLASS=menuheader> <hr color=#cccccc size=1><A HREF=# onClick='ejs_mv5_show(\"menu\");return(false)' CLASS=menuheader><b>&lt;Retour</b></A></TD></TR></TABLE>";
		document.getElementById("menu5P1").innerHTML = html;
		if(ejs_mv5_mode == 1)
			ejs_mv5_action(2);
		}
	}
ejs_mv5_cursor = ejs_mv5_largeur;


function ejs_mv5_action(action)
	{
	if(action == 2)
		{
		if(ejs_mv5_cursor>0)
			{
			ejs_mv5_cursor -= 10;
			//document.getElementById("menu5").style.left = ejs_mv5_cursor-ejs_mv5_largeur;
			document.getElementById("menu5P1").style.left = ejs_mv5_cursor;
			setTimeout("ejs_mv5_action("+action+")",10);
			ejs_mv5_mode = 2;
			}
		}
	else
		{
		if(ejs_mv5_cursor<ejs_mv5_largeur)
			{
			ejs_mv5_cursor += 10;
			//document.getElementById("menu5").style.left = ejs_mv5_cursor-ejs_mv5_largeur;
			document.getElementById("menu5P1").style.left = ejs_mv5_cursor;
			setTimeout("ejs_mv5_action("+action+")",10);
		    ejs_mv5_mode = 1;
			}
		}
	}


function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


var howManyMenus=9;
var menuThreshold;
var goodToGo=false;

function getMenuHeight(whichTime) {
	for (i=1; i<=howManyMenus; i++) {
		if (document.all) {
			var theLayer=eval("document.all.menu" + i);
			theLayer.style.pixelTop =menuThreshold - theLayer.clientHeight;
			var theBackLayer=eval("document.all.menu" + i + "Back");
			theBackLayer.style.pixelTop = menuThreshold - theLayer.clientHeight;
			theBackLayer.style.pixelHeight = theLayer.clientHeight +30;
			theLayer.style.visibility = "hidden";
			theBackLayer.style.visibility = "hidden";
		} else if (document.layers) {
			var theLayer = eval("document.menu" + i);
			theLayer.top = menuThreshold - theLayer.clip.bottom;
			theLayer.clip.top = 8;
			var theBackLayer = eval("document.menu" + i + "Back");
			theBackLayer.top=menuThreshold - theLayer.clip.bottom;
			theBackLayer.clip.bottom = theLayer.clip.bottom + 30;
			theBackLayer.clip.right = 180;
			theLayer.visibility = "hidden";
			theBackLayer.visibility = "hidden";
		} else if (document.getElementById) {
			var theLayer = eval("document.getElementById('menu" + i + "')");
			theLayer.style.top = menuThreshold - theLayer.offsetHeight;
			if (whichTime == "default") {
				theLayer.style.width = parseInt(theLayer.style.width) - 26;
			}
			var theBackLayer = eval("document.getElementById('menu" + i + "Back')");
			theBackLayer.style.top = menuThreshold + parseInt(theLayer.offsetHeight);
			theBackLayer.style.height = parseInt(theLayer.offsetHeight) + 30;
			theLayer.style.visibility = "hidden";
			theBackLayer.style.visibility = "hidden";
		}
	}
}

function stopMenus() {
	moveMenuDown('stop')
}

//use these variables for menu moving down
var downOne=0;
var tempMenuDown=0;

function moveMenuDown(whichMenu) {
	if(!goodToGo) {return}
	if(whichMenu==whichUpOne) {return}
	menuWhich=whichMenu;
	if (document.all) {
		if (whichMenu != "stop") {
			var downLayer=eval("document.all.menu" + whichMenu);
			var downLayerBack=eval("document.all.menu" + whichMenu + "Back");
			if (downLayer.style.pixelTop == menuThreshold - downLayer.clientHeight) {
				if ((downOne != 0)&&(whichMenu<6)){
					var upLayer = eval("document.all.menu" + downOne);
					upLayer.style.visibility = "hidden";
					upLayer.style.pixelTop = menuThreshold - upLayer.clientHeight;
					var upLayerBack = eval("document.all.menu" + downOne + "Back");
					upLayerBack.style.visibility = "hidden";
					upLayerBack.style.pixelTop = menuThreshold - upLayer.clientHeight;
					var upLayer3 = eval("document.all.menu" + 3);
					upLayer3.style.visibility = "hidden";
					upLayer3.style.pixelTop = menuThreshold - upLayer.clientHeight;
					var upLayer3Back = eval("document.all.menu" + 3 + "Back");
					upLayer3Back.style.visibility = "hidden";
					upLayer3Back.style.pixelTop = menuThreshold - upLayer.clientHeight;
				}
				/*if ((LastdownOne==3)&&(downOne != 0)&&(downOne>5)&&(whichMenu<5)){
				var upLayer = eval("document.all.menu" + downOne);
				upLayer.style.visibility = "hidden";
				upLayer.style.pixelTop = menuThreshold - upLayer.clientHeight;
				var upLayerBack = eval("document.all.menu" + downOne + "Back");
				upLayerBack.style.visibility = "hidden";
				upLayerBack.style.pixelTop = menuThreshold - upLayer.clientHeight;
				}*/
				downLayer.style.visibility = "visible";
				downLayerBack.style.visibility = "visible";
				downOne = whichMenu;
				ejs_mv3_action(1);
				ejs_mv5_action(1);
			}
			if (downLayer.style.pixelTop < menuThreshold) { 
				if (menuThreshold-downLayer.style.pixelTop > 9) {
					downLayer.style.pixelTop = downLayer.style.pixelTop + 10;
					downLayerBack.style.pixelTop = downLayer.style.pixelTop + 10;
				} else {
					downLayer.style.pixelTop = downLayer.style.pixelTop + (menuThreshold-downLayer.style.pixelTop);
					downLayerBack.style.pixelTop =  downLayerBack.style.pixelTop + (menuThreshold-downLayer.style.pixelTop);
				} 
				menuDown = setTimeout("moveMenuDown(menuWhich)", 10);
			}
		} else {
			getMenuHeight();
			ejs_mv3_action(1);
			ejs_mv5_action(1);
		}
	} else if (document.layers) {
		if (whichMenu != "stop") {
			var downLayer = eval("document.menu" + whichMenu);
			var downLayerBack = eval("document.menu" + whichMenu + "Back");
			if (downLayer.top == (menuThreshold - downLayer.clip.bottom)) {
				if (downOne != 0) {
					var upLayer = eval("document.menu" + downOne);
					upLayer.visibility = "hidden";
					upLayer.top = menuThreshold - upLayer.clip.bottom;
					var upLayerBack = eval("document.menu" + downOne + "Back");
					upLayerBack.visibility = "hidden";
					upLayerBack.top = menuThreshold - upLayer.clip.bottom;
				}
				downLayer.visibility = "visible";
				downLayerBack.visibility = "visible";
				downOne = whichMenu;
			}
			if (downLayer.top < menuThreshold) { 
				if (Math.abs(menuThreshold - downLayer.top) > 9) {
					downLayer.top = downLayer.top + 10;
					downLayerBack.top = downLayer.top + 10;
				} else {
					downLayer.top = downLayer.top + (menuThreshold - downLayer.top)+10;
					downLayerBack.top = downLayerBack.top + (menuThreshold - downLayer.top)+10;
				} 
				setTimeout("moveMenuDown(menuWhich)", 10);
			}
		} else {
			getMenuHeight();
			ejs_mv3_action(1);
			ejs_mv5_action(1);
		}
	} else if (document.getElementById) {
		if (whichMenu != "stop") {
			var downLayer = eval("document.getElementById('menu" + whichMenu + "')");
			var downLayerBack = eval("document.getElementById('menu" + whichMenu + "Back')");
			if (parseInt(downLayer.style.top) == (menuThreshold - downLayer.offsetHeight)) {
				if (downOne != 0) {
					var upLayer = eval("document.getElementById('menu" + downOne + "')");
					upLayer.style.visibility = "hidden";
					upLayer.style.top = menuThreshold - upLayer.offsetHeight;
					var upLayerBack = eval("document.getElementById('menu" + downOne + "Back')");
					upLayerBack.style.visibility = "hidden";
					upLayerBack.style.top = menuThreshold - upLayer.offsetHeight;
				}
				downLayer.style.visibility = "visible";
				downLayerBack.style.visibility = "visible";
				downOne = whichMenu;
			}
			if (parseInt(downLayer.style.top) < menuThreshold) { 
				if (Math.abs(menuThreshold - parseInt(downLayer.style.top)) > 9) {
					downLayer.style.top = parseInt(downLayer.style.top) + 10;
					downLayerBack.style.top = parseInt(downLayer.style.top) + 10;
				} else {
					downLayer.style.top = parseInt(downLayer.style.top) + (menuThreshold - parseInt(downLayer.style.top))+10;
					downLayerBack.style.top = parseInt(downLayerBack.style.top) + (menuThreshold - parseInt(downLayer.style.top))+10;
				} 
				setTimeout("moveMenuDown(menuWhich)", 10);
			}	
		} else {
			getMenuHeight();
			ejs_mv3_action(1);
			ejs_mv5_action(1);
		}
	}
}

var whichUpOne = 0;
var tempMenuUp=0;

function moveMenuUp(whichMenu) {
	if (tempMenuUp != 0 && whichMenu != whichUpOne) {
		return;
	} else {
		whichUpOne = whichMenu;
		if (document.all) {
			if (whichUpOne != 0) {
				var moveUpLayer=eval("document.all.menu" + whichUpOne);
				var moveUpLayerBack=eval("document.all.menu" + whichUpOne + "Back");
					
				if (moveUpLayer.style.pixelTop == menuThreshold) {
					steps = parseInt((moveUpLayer.style.pixelTop)/10);
					if ((moveUpLayer.style.pixelTop)%10 != 0) {
						steps++
						tempMenuDown = steps;
					}
				}
				if (moveUpLayer.style.pixelTop > menuThreshold-moveUpLayer.clientHeight) { 
					if (moveUpLayer.style.pixelTop > menuThreshold-moveUpLayer.clientHeight) {
						moveUpLayer.style.pixelTop = moveUpLayer.style.pixelTop - 10;
						moveUpLayerBack.style.pixelTop = moveUpLayer.style.pixelTop - 10;
					} else {
						UpLayer.style.pixelTop = UpLayer.style.pixelTop +((UpLayer.style.pixelTop + UpLayer.clientHeight) - menuThreshold);
						UpLayerBack.style.pixelTop = UpLayerBack.style.pixelTop+ ((UpLayerBack.style.pixelTop + UpLayerBack.clientHeight) - menuThreshold);
					}
					tempMenuDown--; 
					menuUp=setTimeout("moveMenuUp("+whichUpOne+")", 10);
				} else if (whichUpOne<7) {
				  	whichUpOne = 0;
					getMenuHeight();
					ejs_mv3_action(1);
					ejs_mv5_action(1);
				}
			}
		} else if (document.layers) {
			if (whichUpOne != 0) {
				var moveUpLayer=eval("document.menu" + whichUpOne);
				var moveUpLayerBack=eval("document.menu" + whichUpOne + "Back");
				if (moveUpLayer.top == menuThreshold) {
					steps = parseInt((moveUpLayer.top)/10);
					if ((moveUpLayer.top)%10 != 0) {
						steps++
						tempMenuDown = steps;
					}
				}
				if (moveUpLayer.top > menuThreshold - moveUpLayer.clip.bottom) { 
					if (moveUpLayer.top > menuThreshold - moveUpLayer.clip.bottom) {
						moveUpLayer.top = moveUpLayer.top - 10;
						moveUpLayerBack.top = moveUpLayer.top - 10;
					} else {
						moveUpLayer.top = moveUpLayer.top + ((moveUpLayer.top + moveUpLayer.clip.bottom) - menuThreshold);
						moveUpLayerBack.top = moveUpLayerBack.top + ((moveUpLayerBack.top + moveUpLayerBack.clip.bottom) - menuThreshold);
					}
					tempMenuDown--; 
					setTimeout("moveMenuUp(whichUpOne)", 10);
				} else {
					whichUpOne = 0;
					getMenuHeight();
					ejs_mv3_action(1);
					ejs_mv5_action(1);
				}
			}
		} else if (document.getElementById) {
			if (whichUpOne != 0) {
				var moveUpLayer = eval("document.getElementById('menu" + whichUpOne + "')");
				var moveUpLayerBack = eval("document.getElementById('menu" + whichUpOne + "Back')");
				if (parseInt(moveUpLayer.style.top) == menuThreshold) {
					steps = parseInt(parseInt(moveUpLayer.style.top)/10);
					if ((parseInt(moveUpLayer.style.top))%10 != 0) {
						steps++
						tempMenuDown = steps;
					}
				}
				if (parseInt(moveUpLayer.style.top) > (menuThreshold - parseInt(moveUpLayer.offsetHeight))) { 
					if (parseInt(moveUpLayer.style.top) > (menuThreshold - parseInt(moveUpLayer.offsetHeight))) {
						moveUpLayer.style.top = parseInt(moveUpLayer.style.top) - 10;
						moveUpLayerBack.style.top = parseInt(moveUpLayer.style.top) - 10;
					} else {
						moveUpLayer.style.top = parseInt(moveUpLayer.style.top) + ((parseInt(moveUpLayer.style.top) + parseInt(moveUpLayer.offsetHeight)) - menuThreshold);
						moveUpLayerBack.style.top = parseInt(moveUpLayerBack.style.top) + ((parseInt(moveUpLayerBack.style.top) + parseInt(moveUpLayerBack.offsetHeight)) - menuThreshold);
					}
					tempMenuDown--; 
					setTimeout("moveMenuUp(whichUpOne)", 10);
				} else {
					whichUpOne = 0;
					getMenuHeight();
					ejs_mv3_action(1);
					ejs_mv5_action(1);
				}
			}		
		}
	}
}


function popup(width,height){
	window.open("", "popUp", "resizable=yes,scrollbars=yes,toolbar=no,width="+width+",height="+height+"");
}
//-->

var menuThreshold;
if (isIE) {
	menuThreshold = 62;//134;	
} else if (isNav) {
	menuThreshold = 62;//121;
}
// you must include the number of parents for the rightNav
var parents = 6;

// this variable sets the height of the first rightNav option
var toolbarHeight = 235;

// End hiding from other browsers -->

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}