$(function(){var a=0;$("#btn span").mouseover(function(){a=$("#btn span").index(this);showImg(a)});$(".focuspic").hover(function(){if(b){clearInterval(b)}},function(){b=setInterval(function(){showImg(a);a++;if(a==5){a=0}},5600)});var b=setInterval(function(){showImg(a);a++;if(a==5){a=0}},5600)});function showImg(a){$("#focus_img img").eq(a).stop(true,true).fadeIn(800).parent().siblings().find("img").hide();$("#msg li").eq(a).stop(true,true).fadeIn(800).siblings().hide();$("#btn span").eq(a).addClass("hov").siblings().removeClass("hov")}$(document).ready(function(){$("#focus_img img:eq(0)").css("display","block");$("#msg a:eq(0)").css("display","block")});

$(document).ready(function(){	
/*单行文字滚动*/
$("#head_lwdt li:not(:first)").css("display","none");
var B=$("#head_lwdt li:last");
var C=$("#head_lwdt li:first");
setInterval(function(){
if(B.is(":visible")){
C.fadeIn(500).addClass("in");B.hide()
}else{
$("#head_lwdt li:visible").addClass("in");
$("#head_lwdt li.in").next().fadeIn(500);
$("li.in").hide().removeClass("in")}
},3000) //每3秒钟切换一条，你可以根据需要更改
/*切换标签*/
$("#mtitler1").hover(function(){$(this).removeClass("mtitle3_n").addClass("mtitle3_s");$("#mtitler2").removeClass("mtitle3_s").addClass("mtitle3_n");$("#zywd").show();$("#zx").hide()});
$("#mtitler2").hover(function(){$(this).removeClass("mtitle3_n").addClass("mtitle3_s");$("#mtitler1").removeClass("mtitle3_s").addClass("mtitle3_n");$("#zywd").hide();$("#zx").show()});
$("#mtitler3").hover(function(){$(this).removeClass("mtitle3_n").addClass("mtitle3_s");$("#mtitler4").removeClass("mtitle3_s").addClass("mtitle3_n");$("#zjtd").show();$("#lwdt1").hide()});
$("#mtitler4").hover(function(){$(this).removeClass("mtitle3_n").addClass("mtitle3_s");$("#mtitler3").removeClass("mtitle3_s").addClass("mtitle3_n");$("#zjtd").hide();$("#lwdt1").show()});
/*咨询*/
$("#zywd a[id='zywd_ask']").click(function(){$("#mtitler2").removeClass("mtitle3_n").addClass("mtitle3_s");$("#mtitler1").removeClass("mtitle3_s").addClass("mtitle3_n");$("#zywd").hide();$("#zx").show()});
/*我们能做什么*/
$("#do1").addClass("do_s");
$("#do1").hover(function(){$("#do_left a").removeClass("do_s");$(this).addClass("do_s");$("#do_right li").hide();$("#do_right li[class='doc1']").show()});
$("#do2").hover(function(){$("#do_left a").removeClass("do_s");$(this).addClass("do_s");$("#do_right li").hide();$("#do_right li[class='doc2']").show()});
$("#do3").hover(function(){$("#do_left a").removeClass("do_s");$(this).addClass("do_s");$("#do_right li").hide();$("#do_right li[class='doc3']").show()});
$("#do4").hover(function(){$("#do_left a").removeClass("do_s");$(this).addClass("do_s");$("#do_right li").hide();$("#do_right li[class='doc4']").show()});
$("#do5").hover(function(){$("#do_left a").removeClass("do_s");$(this).addClass("do_s");$("#do_right li").hide();$("#do_right li[class='doc5']").show()});
/*图片水印*/
$("#content").css("overflow","hidden");
$("#content img").each(function(i){
   this.id = "hey" + i;
 });  
$("img[id^=hey]").wrap("<div id='subpic1' style='position:relative;overflow:hidden;width:100%;text-align:center;float:left'></div>"); 
$("div[id^=subpic]").append("<div style='position:absolute;left:0;top:0'><img src='http://www.lwcj.com/p/img/piclogo.gif' style='filter:alpha(opacity=10);-moz-opacity:0.1;opacity: 0.1;' /></div>"); 
});

var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
       xmlhttp.Open("POST", "/Templet/FirstLwdt.ashx", false); 
       xmlhttp.Send("<timesheet>An impossibly useless timesheet fragment</timesheet>"); 
       document.getElementById('lwdt').innerHTML = xmlhttp.responseText;
        
       xmlhttp1 = new ActiveXObject("Microsoft.XMLHTTP");
        xmlhttp1.Open("POST", "/Templet/hotkey.ashx", false); 
       xmlhttp1.Send("<timesheet>An impossibly useless timesheet fragment</timesheet>"); 
       document.getElementById('hotkey').innerHTML = xmlhttp1.responseText;
       
