﻿var n = 1, f = 2, g = 3, h = 4;
var str = new Array();
var str1 = new Array();

$(document).ready(function() {

    $("#msgqywh").everyTime(6000, function(i) {

        if (i == n) {

            $("#qywhgd4").hide();
            $("#qywhgd2").hide();
            $("#qywhgd3").hide();
            $("#qywhgd1").show("slow");
            n += 4;
        }
        if (i == f) {

            $("#qywhgd1").hide();
            $("#qywhgd3").hide();
            $("#qywhgd4").hide();
            $("#qywhgd2").show("slow");

            f += 4;

        }
        if (i == g) {

            $("#qywhgd1").hide();
            $("#qywhgd2").hide();
            $("#qywhgd4").hide();
            $("#qywhgd3").show("slow");

            g += 4;
        }

        if (i == h) {

            $("#qywhgd1").hide();
            $("#qywhgd2").hide();
            $("#qywhgd3").hide();
            $("#qywhgd4").show("slow");
            h += 4;
        }
    });

    //质量管理
    $("#wz_zlgl").hover(
          function() {

              $.ajax({
                  type: "POST",
                  url: "js/swxx.aspx",
                  data: 'type=57',
                  success: function(msg) {
                      $('#wz_glmsg').html("");
                      $('#wz_glmsg').html(msg);
                  }
              });
          },
          function() {

          }
);

    //质量管理
    $("#wz_xhgl").hover(
          function() {

              $.ajax({
                  type: "POST",
                  url: "js/swxx.aspx",
                  data: 'type=56',
                  success: function(msg) {
                      $('#wz_glmsg').html("");
                      $('#wz_glmsg').html(msg);
                  }
              });
          },
          function() {

          }
);

    //大学生论文
    $("#lt_dxs").hover(
          function() {

              $.ajax({
                  type: "POST",
                  url: "js/gslt.aspx",
                  data: 'type=1',
                  success: function(msg) {
                      $('#ltmsg').html("");
                      $('#ltmsg').html(msg);
                  }
              });
          },
          function() {

          }
);

    //职工文采
    $("#lt_zgwc").hover(

          function() {
              $.ajax({
                  type: "POST",
                  url: "js/gslt.aspx",
                  data: 'type=2',
                  success: function(msg) {
                      $('#ltmsg').html("");
                      $('#ltmsg').html(msg);
                  }
              });
          },
          function() {

          }
);
  
    $("#xx_spyj").hover(

          function() {
              $.ajax({
                  type: "POST",
                  url: "js/qylj.aspx",
                  data: 'type=1',
                  success: function(msg) {
                      $('#yqljmsg').html("");
                      $('#yqljmsg').html(msg);
                  }
              });
          },
          function() {

          }
);

    $("#xx_tjsj").hover(

          function() {
              $.ajax({
                  type: "POST",
                  url: "js/qylj1.aspx",
                  data: 'type=2',
                  success: function(msg) {
                      $('#yqljmsg').html("");
                      $('#yqljmsg').html(msg);
                  }
              });
          },
          function() {

          }
);


    //建言献策
    $("#lt_jyxc").hover(
          function() {

              $.ajax({
                  type: "POST",
                  url: "js/gslt.aspx",
                  data: 'type=3',
                  success: function(msg) {
                      $('#ltmsg').html("");
                      $('#ltmsg').html(msg);
                  }
              });
          },
          function() {

          }
);
          //影视作品
          $("#ys").hover(
          function() {
              $('#yymsg').html("");
              $('#yymsg').html("<marquee onmouseover=\"this.stop();\" onmouseout=\"this.start();\" scrollamount=\"2\" scrolldelay=\"2\"><table><tr><td><img src=\"images/ys001.gif\" width=\"88\" height=\"145\"/></td><td><img src=\"images/ys002.gif\" width=\"88\" height=\"145\"/></td><td><img src=\"images/ys003.gif\" width=\"88\" height=\"145\"/></td><td><img src=\"images/ys004.gif\" width=\"88\" height=\"145\"/></td> </tr></table></marquee>")
          }
);
    
    //音乐
    $("#yy").hover(
          function() {
              $('#yymsg').html("");
              $('#yymsg').html("<marquee onmouseover=\"this.stop();\" onmouseout=\"this.start();\" scrollamount=\"2\" scrolldelay=\"2\"><table><tr><td><img src=\"images/yy001.gif\" width=\"88\" height=\"145\"/></td><td><img src=\"images/yy002.gif\" width=\"88\" height=\"145\"/></td><td><img src=\"images/yy003.gif\" width=\"88\" height=\"145\"/></td><td><img src=\"images/yy004.gif\" width=\"88\" height=\"145\"/></td> </tr></table></marquee>")
          }
);

    //软件
    $("#rj").hover(
            function() {
                $('#yymsg').html("");
                $('#yymsg').html("<marquee onmouseover=\"this.stop();\" onmouseout=\"this.start();\" scrollamount=\"2\" scrolldelay=\"2\"><table><tr><td><a href=\"images/矿级消耗系统缓存清除工具.exe\"><img src=\"images/rj001.gif\" width=\"88\" height=\"145\" style=\"text-decoration: none; border: none;\" /></td><td><img src=\"images/rj002.gif\" width=\"88\" height=\"145\"/></a></td><td><img src=\"images/rj003.gif\" width=\"88\" height=\"145\"/></td><td><img src=\"images/rj004.gif\" width=\"88\" height=\"145\"/></td> </tr></table></marquee>")
            }
);





});


