var ns4 = (document.layers)? true:false;
var ie4 = ((document.all) && (!document.getElementById))? true:false;
var ns6 = ((document.getElementById) && (!ie4))? true:false;

var tto
var thisDiv

function gety(theitem){
        var obj =eval("document.getElementById('m_" + theitem + "')");
        var curleft = 0;
        if (obj.offsetParent){
                while (obj.offsetParent)
                {
                        curleft += obj.offsetLeft
                        obj = obj.offsetParent;
                }
        }
        else if (obj.x)
                curleft += obj.x;
        //return curleft;
        return(curleft);
}
function getx(theitem){
        var obj =eval("document.getElementById('m_" + theitem + "')");
        var curtop = 0;
        if (obj.offsetParent)
        {
                while (obj.offsetParent)
                {
                        curtop += obj.offsetTop
                        obj = obj.offsetParent;
                }
        }
        else if (obj.x)
                curtop += obj.x;
        //return curleft;
        return(curtop);
}



function showMenu(theItem){
   var y=gety(theItem) + 0;
   var x= getx(theItem)+ 28;
  clearTimeout(tto);
   if (ns4) {
      thisDiv = document.layers['mc_'+theItem];
           thisDiv.top=x;
      thisDiv.left=y;
      thisDiv.visibility="show";
           }
   if (ie4) {
      if ((thisDiv) &&(thisDiv!=document.layers['mc_'+theItem])){
                   thisDiv.visibility='hidden';
           }
      thisDiv = document.layers['mc_'+theItem];
           thisDiv.top=x;
      thisDiv.left=y;
      thisDiv.visibility="visible";
      }
   if (ns6) {
      if ((thisDiv) &&(thisDiv!=document.getElementById('mc_'+theItem).style)){
        thisDiv.visibility='hidden';
           }
           thisDiv = document.getElementById('mc_'+theItem).style;
        thisDiv.top=x;
      thisDiv.left=y;
      thisDiv.visibility="visible";
      }
}

function hideMenu(theItem){
   var thetime=400;
   if (ns4) {
      thisDiv = document.layers['mc_'+theItem];
      tto=setTimeout("thisDiv.visibility='hide'",thetime);
      }
   if (ie4) {
      thisDiv = document.layers['mc_'+theItem];
      tto=setTimeout("thisDiv.visibility='hidden'",thetime);
      }
   if (ns6) {
      thisDiv = document.getElementById('mc_'+theItem).style;
      tto=setTimeout("thisDiv.visibility='hidden'",thetime);
      }
}

function bgOn(something, nouv_class) {
        var t=document.getElementById(something);
        if (t.className == "nv-ab") {
                t.className = "nv-ab-h";
        } else if (t.className == "nv-rh") {
                t.className = "nv-rh-h";
        } else if (t.className == "nv-jn") {
                t.className = "nv-jn-h";
        } else {
                t.className = "nv-gr-h";
        }
        t.style.cursor='pointer';
}

function bgOff(something){
        var t=document.getElementById(something);
        if (t.className == "nv-ab-h") {
                t.className = "nv-ab";
        } else if (t.className == "nv-rh-h") {
                t.className = "nv-rh";
        } else if (t.className == "nv-jn-h") {
                t.className = "nv-jn";
        } else {
                t.className = "nv-gr";
        }
        t.style.cursor='auto';
}

function xt_clic(typecl,page,url,nvlle)
{
hsh = new Date();
hsd = document;
hsr = hsd.referrer.replace(/[<>]/g, '');
xt_img = new Image();
hsi = 'http://logc2.xiti.com/hit.xiti?s=43260';
hsi += '&p='+page+'&clic='+typecl+'&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion)>=4)
{Xiti_s=screen;hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;}
hsi += '&ref=' + hsr.replace(/&/g, '$');
xt_img.src = hsi;
if (url != null)
{ if ((nvlle=='')||(nvlle==null)) { hsd.location = url;} else {xfen = window.open(url,'xfen',''); xfen.focus();}}
else
{return;}
}