pageTipsFun();
function pageTipsFun() {
var browser = navigator.appName;
var b_version = navigator.appVersion;
var version = b_version.split(";");
if(version[1] === undefined) return;
var trim_Version = version[1].replace(/[ ]/g, "");
if (browser == "Microsoft Internet Explorer") {
if(/*trim_Version == "MSIE9.0" || trim_Version == "MSIE8.0" ||*/ trim_Version == "MSIE7.0" || trim_Version == "MSIE6.0" || trim_Version == "MSIE5.0"){
document.write('
鎶辨瓑锛屾垜浠笉鍐嶆敮鎸佹偍鐨勬祻瑙堝櫒銆傝鍗囩骇鎮ㄧ殑Internet Explorer锛圛E锛夋祻瑙堝櫒鍒版渶鏂扮増鏈? IE 8浠ヤ笂鐗堟湰)锛屾垨灏嗘悳鐙椼€?60銆丵Q 绛夋祻瑙堝櫒鍒囨崲鍒版瀬閫熸ā寮忥紝鎮ㄨ繕鍙互涓嬭浇瀹夎璋锋瓕娴忚鍣ㄤ互杈惧埌鏈€浣宠鐪嬫ā寮忋€侟/div>
')
}
}
}
$(function(){
/*浜岀骇瀵艰埅*/
var timer = null,
funH = function(){
timer = window.setTimeout(function(){
$(".nav_yj>li").removeClass("on");
$(".nav_ej").hide();
}, 500);
}; //寤舵椂璁℃椂鍣
var timer1 = null,
funS = function(){
timer1 = window.setTimeout(function(){
$(".nav_ej>li").removeClass("on");
$(".nav_sj").hide();
}, 500);
}; //寤舵椂璁℃椂鍣
$(".nav_yj>li").mouseenter(function(){
window.clearTimeout(timer);
$(".nav_yj>li").removeClass("on");
$(this).addClass("on");
$(".nav_yj>li>.nav_ej").stop().hide("800");
$(this).children(".nav_ej").stop().show("800");
}).mouseleave(funH);
$(".nav_ej>li").mouseenter(function(){
window.clearTimeout(timer1);
$(".nav_ej>li").removeClass("on");
$(this).addClass("on");
$(".nav_ej>li>.nav_sj").stop().hide("800");
$(this).children(".nav_sj").stop().show("800");
}).mouseleave(funS);
$(".nav_ej>li").each(function(){
if($(this).find(".nav_sj").length>0){
$(this).addClass("has");
}
});
//list鏂伴椈鍒楄〃宸︿晶閫夋嫨
var _href=window.location.pathname;
var h2 = $(".local>a:last-child").attr("href");
$(".menu>ul>li").each(function(){
var h = $(this).children("a").attr("href");
var h3="https://"+ window.location.host + h;
/*alert(h3);*/
if(_href==h || h3==h2 ){
$(".menu>ul>li").removeClass("on");
$(this).addClass("on");
}
});
var w=document.body.clientWidth;
var wideScreen = false;
//澶у浘杞挱
$(".banner-bg").css("height",w*0.237);
var H1=$(".xyxw li").width();
$(".xyxw ul.slides li .sy_img").css("height",H1*0.62);
$(".xyxw li").css("padding-top",H1*0.62);
//瀛﹂櫌鏂伴椈
$(".xyxw ul.slides li:last-child").addClass("last");
//閾炬帴1
var H2=$(".zt").width();
$(".zt").css("height",H2*0.575);
if( w<=1300 ){
var H3=$(".list_item2 li").width();
//$(".list_item2 li").css("height",H3*1.4);
$(".list_item2 li img").css("height",H3*1.4*0.83);
$(".list_item2 li div").css("height",H3*1.4*0.83);
$(".list_item2 li div").css("padding-top",H3*1.4*0.83-38);
$(".footer div div").css("margin-left",(w*0.9-610)/2);
}
if( w<=800 ){
var H4=$(".xyxw").width()-44;
$(".xyxw ul.slides li .sy_img").css("height",H4*0.62);
$(".xyxw li").css("padding-top",H4*0.62);
$(".footer div>a img").css("margin-left",(w-30-25)/2);
$(document).ready(function(){
$('.box_one .xyxw').flexslider({
animation: 'fade',
animationLoop: true,
slideshowSpeed: 4000, //灞曠ず鏃堕棿闂撮殧ms
animationSpeed: 400, //婊氬姩鏃堕棿ms
touch: true //鏄惁鏀寔瑙﹀睆婊戝姩
});
$('.flex-direction-nav a').each(function(e){
var $this =$(this)
$this.addClass('iconfont');
$this.text('');
if($this.hasClass('flex-prev')){
$(this).addClass('icon-arrow')
}else if($this.hasClass('flex-next')){
$(this).addClass('icon-arrow1')
}
})
});
}
//鎵嬫満绔鑸
$(".index").click(function () {
$(".fh_dh").show();
$(".fh_dh").animate(
{ right: "0px" }, 800
)
$(".fh_bc").show();
});
$(".fh_bc").click(function () {
$(".fh_dh").animate(
{ right: "-180px", display: "none" }, 800
);
$(this).hide();
});
$(".fh_dh ul .yj_li").click(function () {
$(".fh_dh ul .yj_li").removeClass("on");
$(this).addClass("on");
$(this).siblings().children(".yj_a").removeClass("up");
$(this).children(".yj_a").toggleClass("up");
$(this).siblings().children(".ej").hide();
$(this).children(".ej").toggle();
});
});