function initNavi()
{
        SubGeneralInfoObj=new getObj('SubGeneralInfo');
        SubFactorsObj=new getObj('SubFactors');
        SubPreventionObj=new getObj('SubPrevention');
        SubTypesofObj=new getObj('SubTypesof');
        SubTreatmentObj=new getObj('SubTreatment');
        SubKidsObj=new getObj('SubKids');

                MiddlePosi=document.all.body.offsetWidth/2;
                SubGeneralInfoObj.style.left=MiddlePosi-344;
                SubFactorsObj.style.left=MiddlePosi-283;
                SubPreventionObj.style.left=MiddlePosi-183;
                SubTypesofObj.style.left=MiddlePosi-92;
                SubTreatmentObj.style.left=MiddlePosi+18;
                SubKidsObj.style.left=MiddlePosi+205;

        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)+127||y<160||y>354) {SubGeneralInfoObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubFactorsObj.style.left)||x>parseInt(SubFactorsObj.style.left)+175||y<96||y>483) {SubFactorsObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubPreventionObj.style.left)||x>parseInt(SubPreventionObj.style.left)+185||y<125||y>408) {SubPreventionObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubTypesofObj.style.left)||x>parseInt(SubTypesofObj.style.left)+205||y<60||y>372) {SubTypesofObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubTreatmentObj.style.left)||x>parseInt(SubTreatmentObj.style.left)+203||y<120||y>372) {SubTreatmentObj.style.visibility="hidden";showText();}
        if (x<parseInt(SubKidsObj.style.left)-8||x>parseInt(SubKidsObj.style.left)+105||y<143||y>340) {SubKidsObj.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.gif";}
}