﻿// JScript 文件
function getServiceOlympicMath(i)
    {
     //设置参数，并帮定脚本事件
      WebServiceOlympicMath.ReturnFBS_data_Title(i,GetOlympicMathIntroductionTitleValue);
      WebServiceOlympicMath.ReturnFBS_data_returnContent(i,GetOlympicMathIntroductionContentValue);
      WebServiceOlympicMath.ReturnFBS_data_returnSubjectContent(i,GetOlympicMathSubjectContentValue);
      switch(i)
      {
       case 1:
       //设置参数，并帮定脚本事件
       document.getElementById("OlympicMathThreeGrade").style.backgroundImage="url(images/lbj.gif)";
       document.getElementById("OlympicMathFourGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathFiveGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathSixGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathSevenGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathThreeGrade").className="font4";
       document.getElementById("OlympicMathFourGrade").className="font1";
       document.getElementById("OlympicMathFiveGrade").className="font1";
       document.getElementById("OlympicMathSixGrade").className="font1";
       document.getElementById("OlympicMathSevenGrade").className="font1";
       //介绍图片
       document.getElementById("OlympicMathIntroductionImage").style.backgroundImage="url(images/TrainSystem/tp17.gif)";
       document.getElementById("OlympicMathSubjectImage").style.backgroundImage="url(images/TrainSystem/tp28.gif)";
       document.getElementById("OlympicMathBackGroundImage").style.backgroundImage="url(images/zlksnjdbj.gif)";
       
       break;
       case 2:
       document.getElementById("OlympicMathThreeGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathFourGrade").style.backgroundImage="url(images/lbj.gif)";
       document.getElementById("OlympicMathFiveGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathSixGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathSevenGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathThreeGrade").className="font1";
       document.getElementById("OlympicMathFourGrade").className="font4";
       document.getElementById("OlympicMathFiveGrade").className="font1";
       document.getElementById("OlympicMathSixGrade").className="font1";
       document.getElementById("OlympicMathSevenGrade").className="font1";
        //介绍图片
       document.getElementById("OlympicMathIntroductionImage").style.backgroundImage="url(images/TrainSystem/tp25.gif)";
       document.getElementById("OlympicMathSubjectImage").style.backgroundImage="url(images/TrainSystem/tp11.gif)";
       document.getElementById("OlympicMathBackGroundImage").style.backgroundImage="url(images/zlksxdbj.gif)";
       
       break;
       case 3:
       document.getElementById("OlympicMathThreeGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathFourGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathFiveGrade").style.backgroundImage="url(images/lbj.gif)";
       document.getElementById("OlympicMathSixGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathSevenGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathThreeGrade").className="font1";
       document.getElementById("OlympicMathFourGrade").className="font1";
       document.getElementById("OlympicMathFiveGrade").className="font4";
       document.getElementById("OlympicMathSixGrade").className="font1";
       document.getElementById("OlympicMathSevenGrade").className="font1";
        //介绍图片
       document.getElementById("OlympicMathIntroductionImage").style.backgroundImage="url(images/TrainSystem/tp30.gif)";
       document.getElementById("OlympicMathSubjectImage").style.backgroundImage="url(images/TrainSystem/tp31.gif)";
       document.getElementById("OlympicMathBackGroundImage").style.backgroundImage="url(images/zlkwnjdbj.gif)";
       break;
       case 4:   
       document.getElementById("OlympicMathThreeGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathFourGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathFiveGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathSixGrade").style.backgroundImage="url(images/lbj.gif)";
       document.getElementById("OlympicMathSevenGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathThreeGrade").className="font1";
       document.getElementById("OlympicMathFourGrade").className="font1";
       document.getElementById("OlympicMathFiveGrade").className="font1";
       document.getElementById("OlympicMathSixGrade").className="font4";
       document.getElementById("OlympicMathSevenGrade").className="font1";
        //介绍图片
       document.getElementById("OlympicMathIntroductionImage").style.backgroundImage="url(images/TrainSystem/tp26.gif)";
       document.getElementById("OlympicMathSubjectImage").style.backgroundImage="url(images/TrainSystem/tp24.gif)";
       document.getElementById("OlympicMathBackGroundImage").style.backgroundImage="url(images/zlkwldbj.gif)";
       break;
       case 5:   
       document.getElementById("OlympicMathThreeGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathFourGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathFiveGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathSixGrade").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("OlympicMathSevenGrade").style.backgroundImage="url(images/lbj.gif)";
       document.getElementById("OlympicMathThreeGrade").className="font1";
       document.getElementById("OlympicMathFourGrade").className="font1";
       document.getElementById("OlympicMathFiveGrade").className="font1";
       document.getElementById("OlympicMathSixGrade").className="font1";
       document.getElementById("OlympicMathSevenGrade").className="font4";
        //介绍图片
       document.getElementById("OlympicMathIntroductionImage").style.backgroundImage="url(images/TrainSystem/tp32.gif)";
       document.getElementById("OlympicMathSubjectImage").style.backgroundImage="url(images/TrainSystem/tp33.gif)";
       document.getElementById("OlympicMathBackGroundImage").style.backgroundImage="url(images/SeniorHighSchoolBG.gif)";
       break;
      }
    }
    function GetOlympicMathIntroductionTitleValue(result)
    {
     //显示返回的值
       document.getElementById("OlympicMathIntroductionTitle").innerHTML=result;;
    }
    function GetOlympicMathIntroductionContentValue(result)
    {
       //显示返回的值
       document.getElementById("OlympicMathIntroductionContent").innerHTML=result;
    }
    function GetOlympicMathSubjectContentValue(result)
    {
       //显示返回的值           
       document.getElementById("OlympicMathSubjectContent").innerHTML=result;
    }