﻿var searchCurr = 'product';
/****************************************************************************/
function webService(url, callback, pars) {
    $.ajax({
        data: pars,
        url: url,
        type: "POST",
        contentType: "application/json;utf-8",
        dataType: 'json',
        cache: false,
        success: function(json) {
            callback(json.d);
        },
        error: function(xml, status) {
            if (status == 'error') {
                try {
                    var json = eval('(' + xml.responseText + ')');
                    alert(json.Message + '\n' + json.StackTrace);
                } catch (e) { }
            } else {
                alert(status);
            }
        },
        beforeSend: function(xml) {
            if (!pars) xml.setRequestHeader("Content-Type", "application/json;utf-8")
        }
    });
}

/********************************************************************/
$(function () {
   
$('.GQXX').jCarouselLite({
    speed: 600,
    auto: 5000,
    vertical: true,
    visible: 6
});
    //图片新闻导航
//    $('#newsNavigationTitle ul li').mouseover(
//		    function() {
//		        $(this).css({ 'backgroundColor': '#FFFCDF' });
//		    }).mouseout(
//		    function() {
//		        $(this).css({ 'backgroundColor': '#ffffff' });
//		    });
//    $('.newsImage').jCarouselLite({
//        speed: 200,
//        auto: 6000,
//        visible: 1,
//        btnGoMode: 'mouseover',
//        btnGoEffect: true,
//        btnGo: $('#newsNavigationTitle>ul>li')
//    });
    // alert($('#CGXX').text());
   

    // 合作伙伴
    setTimeout(function() {
        $('#partner').load('/htmlContent/partner.html', function() {
            $(this).jCarouselLite({
                speed: 200,
                auto: 5000,
                visible: 3,
                vertical: false,
                scroll: 1
            });
        });
    }, 2000)
  
    $('.tbProductCategory tr:odd').css({backgroundColor:'#FFFCF4'}); 
});