function initNavi()
{
        SubGeneralInfoObj=new getObj('SubGeneralInfo');
        SubCausesofObj=new getObj('SubCausesof');
        SubTypesofObj=new getObj('SubTypesof');
        SubLocalisationObj=new getObj('SubLocalisation');
        SubTreatmentObj=new getObj('SubTreatment');

                MiddlePosi=document.all.body.offsetWidth/2;

                SubGeneralInfoObj.style.left=MiddlePosi-414;
                SubCausesofObj.style.left=MiddlePosi-275;
                SubTypesofObj.style.left=MiddlePosi-198;
                SubLocalisationObj.style.left=MiddlePosi-58;
                SubTreatmentObj.style.left=MiddlePosi+51;

        init=true;
}

function mousepos()
{
        document.onmousemove = mouseMove;
        if (document.layers) {document.captureEvents(Event.MOUSEMOVE)}
}

function mouseMove(e)
{
        if (document.layers)
        {
                x = e.pageX
                y = e.pageY
        }
    else
        {
                x = event.x
                y = event.y
        }

        if (x<parseInt(SubGeneralInfoObj.style.left)||x>parseInt(SubGeneralInfoObj.style.left)+200||y<150||y>405) {SubGeneralInfoObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubCausesofObj.style.left)||x>parseInt(SubCausesofObj.style.left)+170||y<112||y>345) {SubCausesofObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubTypesofObj.style.left)||x>parseInt(SubTypesofObj.style.left)+200||y<148||y>560) {SubTypesofObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubLocalisationObj.style.left)||x>parseInt(SubLocalisationObj.style.left)+170||y<75||y>425) {SubLocalisationObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubTreatmentObj.style.left)||x>parseInt(SubTreatmentObj.style.left)+165||y<115||y>440) {SubTreatmentObj.style.visibility="hidden";showText();}

//        window.status = "X Pos: "+x+" Y Pos "+y+"  LayerObj.name= "+LayerObj.name+" LayerObj.style.right= "+LayerObj.style.left+173;
}

function showLayer(layer)
{
        if(init)
        {
//                if(!LayerObj){document.images["img_intro"].src="common/spacer.gif";}else{LayerObj.style.visibility = "hidden";}
                if(LayerObj){LayerObj.style.visibility="hidden";}
                document.images["img_intro"].src="../common/spacer.gif";
                LayerObj=new getObj(layer);
                LayerObj.style.visibility="visible";
                mousepos();
        }
}

function showText()
{
        if(LayerObj.style.visibility=="hidden"){document.images["img_intro"].src="../common/imgintro/img_intro_eng.gif";}
}