function menu_show() 
{
	var x,y,ox,bx,oy,p,tx,k,d,da,e,el,tw,q0,xx,yy,w1;
	
	var pa='px';
	var args = menu_show.arguments;
	
	var a=-1;
	var b=24;

    if (document.layers || window.opera) { pa = ''; }

        for(k=0;k<(args.length);k+=4){
            if ((g = getObject(args[k])) != null) {
                if((el=getObject(args[k+1]))!=null){
                    x=0;y=0;ox=0;oy=0;p="";tx=1;
                    da = "document.all['" + args[k] + "']";
                    
                    if(document.getElementById){
                        d = "document.getElementsByName('" + args[k] + "')[0]";
                            if(!eval(d)){
                                d = "document.getElementById('" + args[k] + "')";
                                if (!eval(d)) { d = da; }
                                }
	                        } else
	                            if (document.all)
	                            { d = da; }
	                            if (document.all || document.getElementById) {
	                                while (tx == 1) {
	                                    p += ".offsetParent";
	                                    if (eval(d + p)) {
	                                	    x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
	                                	}
	                                	else {
	                                	    tx = 0;
	                                	}
	                            }
	                            ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);tw=x+ox+y+oy;
	                            if (tw == 0 || (navigator.appVersion.indexOf("MSIE 4") > -1 && navigator.appVersion.indexOf("Mac") > -1))
	                            {
	                                ox = 0; oy = 0;
	                                if (g.style.left) {
	                                    x = parseInt(g.style.left); y = parseInt(g.style.top);
	                                } 
	                                else {
	                                    w1 = parseInt(el.style.width); bx = (a < 0) ? -5 - w1 : -10;
	                                    x = document.body.scrollLeft + event.clientX + bx; y = document.body.scrollTop + event.clientY;
	                                }
	                            }
	                        }
	                        else
	                            if (document.layers) {
	                                x = g.x; y = g.y; q0 = document.layers, dd = "";
	                                for (var s = 0; s < q0.length; s++) {
	                                    dd = 'document.' + q0[s].name;
	                                    if (eval(dd + '.document.' + args[k])) {
	                                	    x+=eval(dd+'.left');y+=eval(dd+'.top');
	                                	    break;
	                                	}
	                             }
	                         }
	                         e = (document.layers) ? el : el.style; xx = parseInt(x + ox + a), yy = parseInt(y + oy + b);
	                         if (navigator.appVersion.indexOf("MSIE 5") > -1 && navigator.appVersion.indexOf("Mac") > -1) {
	                             xx += parseInt(document.body.leftMargin); yy += parseInt(document.body.topMargin);
	                         }
	                         if (isNaN(xx))
	                             return;
	                         e.left = xx + pa; e.top = yy + pa;
	                     }
	                 }
	             }
	                         
	
	g.onmouseout=menu_startTime;
		
	menu_hideAll();
	menu_showLayer(args[1]); 
	menu_stopTime();
}

function menu_mouseover( item , section )
{
	item.className = "popmenu_" + section + "_over";
	menu_stopTime();
}

function menu_mouseout( item )
{
	item.className = "popmenu_item";
	menu_startTime();	
}

var menu_timerID = null;
var menu_timerOn = false;
var menu_timeCount = 1000;
var menu_what = null;
var newbrowser = true;
var menu_check = false;

function menu_init()
{
	if (document.layers) 
	{
		layerRef="document.layers";
		styleSwitch="";
		visibleVar="show";
		screenSize = window.innerWidth;
		menu_what ="ns4";
	}
	else if(document.all)
	{
		layerRef="document.all";
		styleSwitch=".style";
		visibleVar="visible";
		screenSize = document.body.clientWidth + 18;
		menu_what = "ie";
	}
	else if(document.getElementById)
	{
		layerRef="document.getElementByID";
		styleSwitch=".style";
		visibleVar="visible";
		menu_what = "moz";
	}
	else
	{
		menu_what="none";
		newbrowser = false;
	}
	window.status='Oricom';
	menu_check = true;
}

function menu_showLayer(layerName)
{
	if(menu_check)
	{
		if (menu_what =="none")
		{
			return;
		}
		else if (menu_what == "moz")
		{
			document.getElementById( layerName ).style.visibility="visible";
		}
		else
		{
			eval( layerRef + '["' + layerName + '"]' + styleSwitch + '.visibility="visible"' );
		}
	}
	else
	{
		return;
	}
}

function menu_hideLayer()
{
	if( !menu_check || menu_what == "none" )
	{
		return;
	}

	var args = menu_hideLayer.arguments;
	var layerName;
	for( var i=0; i<args.length; i++ )
	{
		if (menu_what =="none")
		{
			return;
		}
		else if (menu_what == "moz")
		{
			document.getElementById(args[i]).style.visibility="hidden";
		}
		else
		{
			eval(layerRef+'["'+args[i]+'"]'+styleSwitch+'.visibility="hidden"');
		}
	}
}


function menu_hideAll()
{
	menu_hideLayer('layerconnexion','layerhebergement','layertelephonie','layersansfil','layerequipements','layerassistance','layerentreprise', 'layertelaffaires');
}


function menu_startTime()
{
	if( menu_timerOn == false )
	{
		menu_timerID=setTimeout( "menu_hideAll()" , menu_timeCount);
		menu_timerOn = true;
	}
}


function menu_stopTime()
{
	if( menu_timerOn )
	{
		clearTimeout(menu_timerID);
		menu_timerID = null;
		menu_timerOn = false;
	}
}