﻿// JScript 文件
   function getService(i)
    {
      WebService.ReturnFBS_data_Title(i,GetTitleValue);
      WebService.ReturnFBS_data_returnContent(i,GetContentValue);
      WebService.ReturnFBS_data_returnSubjectContent(i,GetSubjectContentValue)
      switch(i)
      {
       case 1:
       //设置参数，并绑定脚本事件
       document.getElementById("SmallSchoolChinese").style.backgroundImage="url(images/lbj.gif)";
       document.getElementById("SmallSchoolMath").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("SmallSchoolEnglish").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("SmallSchoolChinese").className="font4";
       document.getElementById("SmallSchoolMath").className="font1";
       document.getElementById("SmallSchoolEnglish").className="font1";
        //介绍图片
       document.getElementById("SmallSchoolIntruductionImage").style.backgroundImage="url(images/TrainSystem/tp19.gif)";
       document.getElementById("SmallSchoolSubjectImage").style.backgroundImage="url(images/TrainSystem/tp22.gif)";
       document.getElementById("SmallSchoolBackground").style.backgroundImage="url(images/zlksnjdbj.gif)";
       break;
       case 2:
       //设置参数，并绑定脚本事件
       document.getElementById("SmallSchoolChinese").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("SmallSchoolMath").style.backgroundImage="url(images/lbj.gif)";
       document.getElementById("SmallSchoolEnglish").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("SmallSchoolChinese").className="font1";
       document.getElementById("SmallSchoolMath").className="font4";
       document.getElementById("SmallSchoolEnglish").className="font1";
       //介绍图片
       document.getElementById("SmallSchoolIntruductionImage").style.backgroundImage="url(images/TrainSystem/tp20.gif)";
       document.getElementById("SmallSchoolSubjectImage").style.backgroundImage="url(images/TrainSystem/tp13.gif)";
       document.getElementById("SmallSchoolBackground").style.backgroundImage="url(images/zlksxdbj.gif)";
       break;
       case 3:
       //设置参数，并绑定脚本事件
       document.getElementById("SmallSchoolChinese").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("SmallSchoolMath").style.backgroundImage="url(images/hbj.gif)";
       document.getElementById("SmallSchoolEnglish").style.backgroundImage="url(images/lbj.gif)";
       document.getElementById("SmallSchoolChinese").className="font1";
       document.getElementById("SmallSchoolMath").className="font1";
       document.getElementById("SmallSchoolEnglish").className="font4";
       //介绍图片
       document.getElementById("SmallSchoolIntruductionImage").style.backgroundImage="url(images/TrainSystem/tp27.gif)";
       document.getElementById("SmallSchoolSubjectImage").style.backgroundImage="url(images/TrainSystem/tp21.gif)";
       document.getElementById("SmallSchoolBackground").style.backgroundImage="url(images/zlkwnjdbj.gif)";
      }
        
    }
    function GetTitleValue(result)
    {
     //显示返回的值
       document.getElementById("ChineseIntroductionTitle").innerHTML=result;;
    }
    function GetContentValue(result)
    {
       //显示返回的值
       document.getElementById("ChineseIntroductionContent").innerHTML=result;
    }
    function GetSubjectContentValue(result)
    {
       //显示返回的值
       document.getElementById("SmallShoolSubjectContent").innerHTML=result;
    }
    
    function start()
    {
       getService(1); 
       getServiceMiddleSchool(1);
       getServiceOlympicMath(1);
       getServiceCompeteWindow(1);
    }