﻿
//------------------------------------------滚动新闻-------------------------------------//
//-----------参数-------//
var ntime = 3;          //滚动延时，单位 秒
var nlineheight = 33;   //滚动行高，单位 px




//-----------参数-------//
var nsize = 0;
function news_next() {
    if ((nsize * nlineheight) + parseInt($(".ntn").children("li").css("top").split("px")[0]) - nlineheight <= 0) {
        nmove(0);
    } else {
        nmove(parseInt($(".ntn").children("li").css("top").split("px")[0]) - nlineheight);
    }
}
function news_pre() {
    if (parseInt($(".ntn").children("li").css("top").split("px")[0]) + nlineheight <= 0) {
        nmove(parseInt($(".ntn").children("li").css("top").split("px")[0]) + nlineheight);
    } else {
        nmove(-((nsize - 1) * nlineheight));
    }
}


function nmove(e) {
    nmh(e);
}
function nmh(e) {

    $(".ntnt").fadeIn("slow", function () {
        $(".ntn").children("li").css("top", e);
        $(".ntnt").fadeOut("slow");
    });
    
}
function nmt(e) {
    $(".ntn").children("li").fadeOut("fast", function () {
        $(".ntn").children("li").css("top", e);
        $(".ntn").children("li").fadeIn("fast"); 
    });
}

//------------------------------------------滚动新闻  结束-------------------------------------//


//------------------------------------------选项卡1       -------------------------------------//
function pagetabsc(e) {
    $('.TabCenter').removeClass('show');
    var x ="."+ $(e).attr('href').split("#")[1];
    $(x).addClass('show')
    $('.tab-active').addClass("tab");
    $('.tab-active').removeClass("tab-active");
    $(e).parent().removeClass();
    $(e).parent().addClass("tab-active");
    $(e).blur(); 
    return false;
}
//------------------------------------------选项卡1   结束-------------------------------------//



//------------------------------------------选项卡2       -------------------------------------//
function netsysc(e) {

    $(e).parent().parent().find('.ptabs').removeClass('pcur');
    $(e).addClass("pcur");
    $(e).parent().parent().find('.ptabr').removeClass('show');
    var x = "." + $(e).attr('href').split("#")[1];
    $(e).parent().parent().find(x).addClass('show')
    $(e).blur();
    return false;
}


//------------------------------------------选项卡2   结束-------------------------------------//

//------------------------------------------语言   -------------------------------------//

function lgmu() {
    $("#lgmenu").slideToggle("slow"); 
}





//------------------------------------------语言   结束-------------------------------------//






