﻿// JScript 文件
function secBoard(n)
{
    var hs=document.getElementsByName("con");//内容的li的id
    var hi=document.getElementsByName("menu");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url()");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(images/b155.jpg);cursor:hand;font-weight: bold';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(images/b155.jpg)");
            }
        }
    }
}


function secBoard1(n)
{
    var hs=document.getElementsByName("con1");//内容的li的id
    var hi=document.getElementsByName("menu1");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url()");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(images/70.gif);cursor:hand;font-weight: bold';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(images/70.gif)");
            }
        }
    }
}

function secBoard2(n)
{
    var hs=document.getElementsByName("con2");//内容的li的id
    var hi=document.getElementsByName("menu2");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url()");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(images/b3.jpg);cursor:hand;font-weight: bold';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(images/b3.jpg)");
            }
        }
    }
}


function secBoard3(n)
{
    var hs=document.getElementsByName("con3");//内容的li的id
    var hi=document.getElementsByName("menu3");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url()");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(skin/skin1/1_37.jpg);cursor:hand;font-weight: bold';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(skin/skin1/1_37.jpg)");
            }
        }
    }
}

//function secBoard4(n)
//{
//    var hs=document.getElementsByName("con4");//内容的li的id
//    var hi=document.getElementsByName("menu4");//菜单的td
//    var i;
//    for( i = 0; i < hs.length; i++ )
//    {
//        //hi=document.getElementsByName(String("menu"+i));
//        if ( i != n )
//        {
//            try
//            {
//              hs[ i ].style.cssText = "display: none;";
//              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
//            }
//            catch(e)
//            {
//              hs[ i ].setAttribute("style", "display: none;");
//              hi[ i ].setAttribute("style", "background-image: url()");
//            }
//        }
//        else
//        {
//            try
//            {
//              hs[ n ].style.cssText = "display: block;";
//              hi[ i ].style.cssText = 'background-image: url(skin/skin1/126.jpg);cursor:hand;font-weight: bold';
//            }
//            catch(e)
//            {
//              hs[ i ].setAttribute("style", "display: block;");
//              hi[ i ].setAttribute("style", "background-image: url(skin/skin1/126.jpg)");
//            }
//        }
//    }
//}
function secBoard5(n)
{
    var hs=document.getElementsByName("con5");//内容的li的id
    var hi=document.getElementsByName("menu5");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url()");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(skin/skin1/1_37.jpg);cursor:hand;font-weight: bold';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(skin/skin1/1_37.jpg)");
            }
        }
    }
}
function secBoard6(n)
{
    var hs=document.getElementsByName("con6");//内容的li的id
    var hi=document.getElementsByName("menu6");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url();");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(images/67.gif);cursor:hand;font-weight: bold;background-repeat: no-repeat;height: 28px;width: 64px; color:#ffffff';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(images/67.gif);background-repeat: no-repeat;height: 28px; width: 64px;");
            }
        }
    }
}

function secBoard7(n)
{
    var hs=document.getElementsByName("con7");//内容的li的id
    var hi=document.getElementsByName("menu7");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url();");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(images/5.gif);cursor:hand;font-weight: bold;background-repeat: no-repeat;height: 39px;width: 197px; color:#ffffff';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(images/5.gif);background-repeat: no-repeat;height: 39px; width: 197px;");
            }
        }
    }
}

function secBoard8(n)
{
    var hs=document.getElementsByName("con8");//内容的li的id
    var hi=document.getElementsByName("menu8");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url()");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(allimages/g6.jpg);cursor:hand;font-weight: bold';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(allimages/g6.jpg)");
            }
        }
    }
}

function secBoard9(n)
{
    var hs=document.getElementsByName("con9");//内容的li的id
    var hi=document.getElementsByName("menu9");//菜单的td
    var i;
    for( i = 0; i < hs.length; i++ )
    {
        //hi=document.getElementsByName(String("menu"+i));
        if ( i != n )
        {
            try
            {
              hs[ i ].style.cssText = "display: none;";
              hi[ i ].style.cssText = 'background-image: url();cursor:hand;';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: none;");
              hi[ i ].setAttribute("style", "background-image: url()");
            }
        }
        else
        {
            try
            {
              hs[ n ].style.cssText = "display: block;";
              hi[ i ].style.cssText = 'background-image: url(allimages/g53.jpg);cursor:hand;font-weight: bold';
            }
            catch(e)
            {
              hs[ i ].setAttribute("style", "display: block;");
              hi[ i ].setAttribute("style", "background-image: url(allimages/g53.jpg)");
            }
        }
    }
}
