﻿// JScript 文件
jQuery(function($){
    var replys=$(".c_m_r_m_zxly_replycontent");
    replys.each(function(i){
        if(replys.eq(i).text()=="")
        {
            $(this).parent().hide();
        }
    })   
});

var type=0, pos,str;
str=window.location.href;
pos=str.indexOf("=");
if(pos>0)
{
    type=str.substring(pos+1);
}

function TypeChang()
{
    switch (type-0)   
          {   
              case 1:   
              DivHide();
              ClearListCss();
              $("#c_m_l_m_lxfs").addClass("c_m_l_igsjjover");
              $("#c_m_r_m_lxfs").show();
              break  
              case 2:  
              DivHide();
              ClearListCss();
              $("#c_m_l_m_zxly").addClass("c_m_l_igsjjover");
              $("#c_m_r_m_zxly").show();
              break                           
          }   
}

jQuery(function($){
    TypeChang();
})

function ClearListCss()
{
    $("#c_m_l_m_lxfs").removeClass("c_m_l_igsjjover");
    $("#c_m_l_m_zxly").removeClass("c_m_l_igsjjover");    
}

function DivHide()
{
    $("#c_m_r_m_lxfs").hide();
    $("#c_m_r_m_zxly").hide();  
    $("#c_m_r_m_qly").hide();  
}

jQuery(function(){
    TypeChang();
})

jQuery(function($){
    $("#c_m_l_m_lxfs").click(function(){
        if(type!=1)
        {
            type=1;
            location.href="ContactUs.aspx?type=1";
        }
    });
})
jQuery(function($){
    $("#c_m_l_m_zxly").click(function(){
        if(type!=2)
        {
            type=2;
            location.href="ContactUs.aspx?type=2";
        }
    });
})

jQuery(function(){
    $("#c_m_r_m_qlyimg").click(function(){
        DivHide();
        $("#c_m_r_m_qly").show();
        type=3;
    });
})
