function initNavi()
{
        SubGeneralInfoObj=new getObj('SubGeneralInfo');
        SubTypesofObj=new getObj('SubTypesof');
        SubSpecLocalisationObj=new getObj('SubSpecLocalisation');
        SubTreatmentObj=new getObj('SubTreatment');
        SubCasereportObj=new getObj('SubCasereport');

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

                SubGeneralInfoObj.style.left=MiddlePosi-414;
                SubTypesofObj.style.left=MiddlePosi-304;
                SubSpecLocalisationObj.style.left=MiddlePosi-142;
                SubTreatmentObj.style.left=MiddlePosi-85;
                SubCasereportObj.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>410) {SubGeneralInfoObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubTypesofObj.style.left)||x>parseInt(SubTypesofObj.style.left)+200||y<112||y>455) {SubTypesofObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubSpecLocalisationObj.style.left)||x>parseInt(SubSpecLocalisationObj.style.left)+150||y<75||y>385) {SubSpecLocalisationObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubTreatmentObj.style.left)||x>parseInt(SubTreatmentObj.style.left)+190||y<75||y>445) {SubTreatmentObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubCasereportObj.style.left)||x>parseInt(SubCasereportObj.style.left)+165||y<115||y>440) {SubCasereportObj.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_ger.gif";}
}