Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.85520057.com/func.php:230) in /www/wwwroot/www.85520057.com/js.php on line 27
document.addEventListener("touchstart", function(){}, true);
var $$ = document.querySelectorAll.bind(document);
Element.prototype.on = Element.prototype.addEventListener;
Element.prototype.off = Element.prototype.removeEventListener;
var ForEach = function (array, fn) {
[].forEach.call(array, fn);
};
function disableScroll(e){e.preventDefault();}
// slide
if (typeof TouchSlide == "function") {
TouchSlide({slideCell:"#focusvideo", mainCell:".bd", effect:"leftLoop", autoPlay:true, delayTime: 500, interTime:5000});
};
// end slide
document.addEventListener("DOMContentLoaded", function(){
});
function callSidemenu() {
var $$html = document.querySelector("html");
var sidemenu = document.getElementById("sidemenu");
if ($$html.classList.contains("show_sidemenu")) {
$$html.classList.remove("show_sidemenu");
$$html.off("touchmove", disableScroll);
} else {
$$html.classList.add("show_sidemenu");
$$html.on("touchmove", disableScroll);
sidemenu ? sidemenu.on("touchmove", function(e) {
e.stopPropagation()
}) : 0;
}
}
function hideSidemenu() {
var $$html = document.querySelector("html");
$$html.classList.remove("show_sidemenu");
$$html.off("touchmove", disableScroll);
}
$(function() {
var $div_li = $(".sidemenu .sidemenulist li");
$div_li.click(function() {
$(this).addClass("on")
.siblings().removeClass("on");
var index = $div_li.index(this);
$("div.tab_box > div")
.eq(index).show()
.siblings().hide();
}).hover(function() {
$(this).addClass("bg");
}, function() {
$(this).removeClass("bg");
});
});
function callSidemenu(){
var $$html = document.querySelector("html");
var sidemenu = document.getElementById("sidemenu");
if($$html.classList.contains("show_sidemenu")){
$$html.classList.remove("show_sidemenu");
$$html.off("touchmove", disableScroll);
}else{
$$html.classList.add("show_sidemenu");
$$html.on("touchmove", disableScroll);
sidemenu ? sidemenu.on("touchmove", function(e){e.stopPropagation()}) : 0;
}
}
function hideSidemenu(){
var $$html = document.querySelector("html");
$$html.classList.remove("show_sidemenu");
$$html.off("touchmove", disableScroll);
}
$(function() {
$('#phones_search').click(function() {
$('#search').slideToggle();
});
$(".nheader").hover(function(){
if($(this).hasClass("scrolltop") == false ){
$(this).find(".head>a img").attr('src','img/logo2.png');
}
},function(){
if($(this).hasClass("scrolltop") == false ){
$(this).find(".head>a img").attr('src','img/logo.png');
}
})
$(".sidemenulist li").hover(function(){
$(this).find(">a").addClass("cur-active");
$(this).has("ul").children("ul").fadeIn();
},function(){
$(this).find(">a").removeClass("cur-active");
$(this).has("ul").children("ul").fadeOut();
})
$(".sidemenulist li").click(function(){
$(this).find(">a").addClass("cur-active");
$(this).has("ul").children("ul").fadeIn();
})
$("#search").click(function(){
$(".pc-search").slideToggle();
})
$(".wapi").click(function(){
$(".wap-search").slideToggle();
})
$(".machinelist ul li").click(function(){
$(this).parent().find("li").eq($(this).index()).addClass("on").siblings().removeClass("on");
$(".machine").find('.machinebox').eq($(this).index()).show(300).siblings().hide(300);
})
$(window).scroll(function(){
if($(this).scrollTop() >10) {
$(".nheader").addClass("scrolltop");
$(".nheader").find(".head>a img").attr('src','img/logo2.png');
$(".headwbc").addClass("headbg");
$(".headlogo").attr('src','img/logo2.png');
}else {
$(".nheader").removeClass("scrolltop");
$(".nheader").find(".head>a img").attr('src','img/logo.png');
$(".headwbc").removeClass("headbg");
$(".headlogo").attr('src','img/logo.png');
}
})
});
if(typeof $ != "undefined") {;
$(function() {
var width = $(window).width();
var win = $(window);
var isIE = !!window.ActiveXObject;
var isIE6 = isIE && !window.XMLHttpRequest;
var isIE8 = isIE && !!document.documentMode;
var isIE7 = isIE && !isIE6 && !isIE8;
// ftool
(function() {
var ftool = $("#ftool"),
ftoolTop = $("#ftoolTop");
ftoolTop.click(function(e) {
e.preventDefault();
$("html,body").animate({
scrollTop: 0
}, 500);
});
$(window).on("DOMContentLoaded scroll resize", function() {
$(this).scrollTop() == 0 ? ftoolTop.stop(true, true).fadeOut() : ftoolTop.fadeIn();
$(this).scrollTop() < 320 ? ftool.stop(true, true).fadeOut() : ftool.fadeIn();
});
// ie6
if(isIE6) {
$(window).scroll(function() {
$("#ftool").css({
"top": $(this).scrollTop() + 200
});
});
};
})();
// end ftool
});
};
$(function() {
$(".nav>li").hover(function() {
$(this).addClass("li-on").siblings().removeClass("li-on");
$(this).find(".navlist").stop().slideDown();
},function(){
$(this).removeClass("li-on");
$(this).find(".navlist").stop().slideUp();
});
})