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
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
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 6
var isTouch = Modernizr.touchevents,
ismobiles = false,
mobiles= false,
win_width = 0,
win_height = 0,
navItem = 0,
serachItem=0,
scrollH=0,
atH=50,
danNum=0,
pageNH=50,
$menuBtn=jQuery('.menu-handler'),
$menuBox=jQuery(".menuBox"),
$menumobiles=jQuery("#navmobiles"),
$serachToggle=jQuery(".serach-icon"),
$serachBox=jQuery(".box-Serach");
var pageInit = {
init: function () {
win_width = $(window).width();
win_height = $(window).height();
menuboxW = win_width -atH;
if (win_width <= 1024) {
ismobiles = true;
} else if (win_width > 1024) {
ismobiles = false;
danNum=0;
jQuery(".footList .t").unbind("click");
jQuery(".cpnav").unbind("click");
jQuery(".cpnav").next(".cpnavbox").stop(false,false).fadeIn();
};
if(jQuery(".pagenav").length>=1){
pageNH=jQuery(".pagenav").height();
}
if (win_width <= 640) {
mobiles = true;
menuboxW = win_width -atH;
$menuBox.width(menuboxW);
} else if (win_width > 640) {
mobiles = false;
};
},
setImgMax: function(img, imgW, imgH, tW, tH) {
var tWidth = tW || win_width;
var tHeight = tH || win_height;
var coe = imgH / imgW;
var coe2 = tHeight / tWidth;
if (coe < coe2) {
var imgWidth = tHeight / coe;
img.css({ height: tHeight, width: imgWidth, left: -(imgWidth - tWidth) / 2, top: 0 });
} else {
var imgHeight = tWidth * coe;
img.css({ height: imgHeight, width: tWidth, left: 0, top: -(imgHeight - tHeight) / 2 });
};
}
},
nav={
init:function(){
jQuery("#nav li").hover(function () {
if (jQuery(this).find(".subnav").length > 0) {
$(this).children("a").addClass("hov");
$(this).children(".subnav").stop(false, false).animate({top:50,"opacity":"show"},300);
};
}, function () {
$(this).children("a").removeClass("");
$(this).children(".subnav").stop(false, false).fadeOut(250,function(){jQuery(this).css("top","0");})
});
}
},
menu = {
init: function(){
$menuBtn.bind("click", function () {
$serachToggle.removeClass("active");
$serachBox.removeClass("open-box");
serachItem = 0;
if (navItem == 0 && !mobiles) {
jQuery(this).addClass("active");
$menuBox.width(570);
$menuBox.css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
jQuery(".pusher").css({ "transform": "translate(-570px,0px)" ,"-webkit-transform": "translate(-570px,0px)" });
jQuery(".top").css({ "transform": "translate(-570px,0px)" ,"-webkit-transform": "translate(-570px,0px)" });
jQuery("html").addClass("menuOpen");
navItem = 1;
} else if (navItem == 1 && !mobiles) {
jQuery(this).removeClass("active");
jQuery("html").removeClass("menuOpen");
$menuBox.css({ "transform": "translate(570px,0px)" ,"-webkit-transform": "translate(570px,0px)" });
jQuery(".pusher").css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
jQuery(".top").css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
navItem = 0;
} else if (navItem == 0 && mobiles) {
jQuery(this).addClass("active");
$menuBox.width(menuboxW);
jQuery("html").addClass("menuOpen");
$menuBox.css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
jQuery(".pusher").css({ "transform": "translate(-" + menuboxW + "px,0px)" ,"-webkit-transform": "translate(-" + menuboxW + "px,0px)" });
jQuery(".top").css({ "transform": "translate(-" + menuboxW + "px,0px)" ,"-webkit-transform": "translate(-" + menuboxW + "px,0px)"});
navItem = 1;
} else if (navItem == 1 && mobiles) {
jQuery(this).removeClass("active");
jQuery("html").removeClass("menuOpen");
$menuBox.css({ "transform": "translate(" + menuboxW + "px,0px)" ,"-webkit-transform": "translate(" + menuboxW + "px,0px)" });
jQuery(".pusher").css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
jQuery(".top").css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
navItem = 0;
};
});
jQuery(".pusher-black").bind("click", function () {
if (navItem == 1 && !mobiles) {
$menuBtn.removeClass("active");
jQuery("html").removeClass("menuOpen");
$menuBox.css({ "transform": "translate(570px,0px)" ,"-webkit-transform": "translate(570px,0px)" });
jQuery(".pusher").css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
jQuery(".top").css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
navItem = 0;
} else if (navItem == 1 && mobiles) {
$menuBtn.removeClass("active");
jQuery("html").removeClass("menuOpen");
$menuBox.css({ "transform": "translate(" + menuboxW + "px,0px)" ,"-webkit-transform": "translate(" + menuboxW + "px,0px)" });
jQuery(".pusher").css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
jQuery(".top").css({ "transform": "translate(0px,0px)" ,"-webkit-transform": "translate(0px,0px)" });
navItem = 0;
};
});
$(document).on("click", ".navmobiles .nav-link", function (e) {
var mnavcur = $(this);
var mnavbox = $(this).parents("li");
if (mnavbox.find(".subnav").size() > 0) {
if (mnavbox.hasClass("active")) {
mnavbox.find(".subnav").stop(false, false).slideUp();
mnavbox.removeClass("active");
} else {
jQuery(".navmobiles li").removeClass("active");
jQuery(".subnav").stop(false, false).slideUp();
mnavbox.find(".subnav").stop(false, false).slideDown();
mnavbox.addClass("active");
e.preventDefault();
}
}
});
}
},
serachBox={
init:function(){
$serachToggle.bind("click", function () {
if (serachItem == 0) {
jQuery(this).addClass("active");
$serachBox.addClass("open-box");
serachItem = 1;
}else{
jQuery(this).removeClass("active");
$serachBox.removeClass("open-box");
serachItem = 0;
}
});
}
},
userLoginBox={
init:function(){
jQuery(".login-toggle,.signin-toggle").hide();
jQuery(".user-toggle,.usernews-toggle").show();
}
},
noLoginBox={
init:function(){
jQuery(".login-toggle,.signin-toggle").show();
jQuery(".user-toggle,.usernews-toggle").hide();
}
},
dock={
init: function(){
var dock=0;
jQuery(".dockCon li").mouseenter(function(){
jQuery(this).find(".mobCon").stop(false,false).animate({right:0,"opacity":"show"},300);
}).mouseleave(function(){
jQuery(this).find(".mobCon").stop(false,false).animate({right:0,"opacity":"hide"},300);
});
jQuery(".dockCon li").mouseenter(function(){
jQuery(this).find(".weixinCon").stop(false,false).animate({right:130,"opacity":"show"},300);
}).mouseleave(function(){
jQuery(this).find(".weixinCon").stop(false,false).animate({right:130,"opacity":"hide"},300);
});
}
};
jQuery(window).resize(function () {
pageInit.init();
});
function getHash() {
var hash = location.href.split("#")[1];
if (hash) {
jQuery("html,body").delay(300).animate({ scrollTop: jQuery("#" + hash).offset().top - atH }, 0);
}
};
function setScroll(anchorCur) {
jQuery("html,body").delay(300).animate({ scrollTop: jQuery(anchorCur).offset().top - atH }, 800, 'easeInOutExpo');
};
load();
window.onload = function () {
if(jQuery(".pagenav").length>=1){
scrollH=jQuery(".pagenav").offset().top-atH;
}
}
jQuery(window).resize(function () {
pageInit.init();
pageBanner();
});
function pageBanner() {
if(!ismobiles){
jQuery('.pBanner').css("height",jQuery(".pBanner img.vt").height());
}else{
jQuery('.pBanner').css("height","auto");
}
};
function load() {
var maxNum = $(".pBanner img.vt").size();
var curNum = 0;
jQuery(".pBanner img.vt").each(function () {
$(this).attr("src", $(this).attr("_src"));
jQuery(this).load(function () {
curNum++;
if (curNum == maxNum) {
pageBanner();
if(jQuery(".pagenav").length>=1){
scrollH=jQuery(".pagenav").offset().top-atH;
}
}
});
});
};
$(document).ready(function() {
pageInit.init();
nav.init();
menu.init();
serachBox.init();
dock.init();
jQuery(".cpnav").bind("click",function(){
if(danNum==0){
jQuery(this).next(".cpnavbox").stop(false,false).fadeIn();
danNum=1;
}else{
jQuery(this).next(".cpnavbox").stop(false,false).fadeOut();
danNum=0;
}
});
//jQuery(".backTop").bind("click", function() {
// jQuery(this).addClass("enterBack");
// jQuery('html, body').stop().animate({scrollTop: 0}, 800,'easeInOutExpo',function(){
// jQuery(".backTop").removeClass("enterBack");
// });
// });
jQuery(".backTop").bind("click", function() {jQuery('html, body').stop().animate({scrollTop: 0}, 800,'easeInOutExpo');});
jQuery(".box-slist .liradio").click(function () {
jQuery(".box-slist .liradio").removeClass("active");
jQuery(this).addClass("active");
});
jQuery(".ssxianlu .sradio").click(function () {
jQuery(".ssxianlu .sradio").removeClass("active");
jQuery(this).addClass("active");
});
jQuery(".serach-slider").click(function(){
jQuery(".slider-search").animate({top:0,"opacity":"show"},600);
});
jQuery(".btnclosess").click(function(){
jQuery(".slider-search").animate({top:"-100%","opacity":"hide"},600);
});
jQuery(window).scroll(function () {
var windowTop=jQuery(window).scrollTop();
if(navItem==1&&windowTop>nmH){
scrollNav=false;
}else{
scrollNav=true;
}
if(windowTop>100){
$(".backTop").stop(false,false).fadeIn();
}else{
$(".backTop").stop(false,false).fadeOut();
}
if (windowTop < win_height && !ismobiles) {
jQuery('.pBanner .img').css('transform',"translate(0px,"+(windowTop) / 1.5+"px)");
}
if(windowTop>scrollH){
jQuery(".pagenav").addClass("fixed");
}else if(windowTop=1){
// setTimeout(function() {
// $pBanner.addClass('trans-1');
// $pBanner.removeClass('picw');
// }, 100);
// setTimeout(function() {
// $pBanner.removeClass('trans-1');
// }, 600);
// };
jQuery(".footList p.t").bind("click",function(){
jQuery(this).next(".c").slideToggle();
jQuery(this).toggleClass("active");
});
var sliderdt=jQuery(".pageDbox-dt"),
sliderdd=jQuery(".pageDbox-dc");
sliderdt.click(function () {
var classname=$(this).parent().attr("class");
if(classname=="pageDbox-dl active"){
jQuery(this).parent().removeClass("active");
jQuery(this).next(".pageDbox-dc").stop(false,false).slideUp("normal");
}else{
sliderdt.parent().removeClass("active");
jQuery(this).parent().addClass("active");
sliderdd.slideUp("normal");
jQuery(this).next(".pageDbox-dc").stop(false,false).slideDown("normal");
}
});
if(jQuery(".toolBox .user-toggle").length>=1){
jQuery(".toolBox .user-toggle").mouseenter(function(){
jQuery(this).children(".user-nav").stop(false,false).fadeIn();
}).mouseleave(function(){
jQuery(this).children(".user-nav").stop(false,false).fadeOut();
});
};
jQuery(document).on('mouseenter', '.xzy-share-btn2', function () {
if (jQuery(".xzy-share-box").length > 0) { jQuery(".xzy-share-box").remove() };
var optL = jQuery(this).offset().left;
var optT = jQuery(this).offset().top + jQuery(this).outerHeight();
var sharpWeixin = jQuery(this).attr("sharpWeixin");
var shareTsina = jQuery(this).attr("shareTsina");
var outW = jQuery(this).outerWidth();
jQuery("body").append('');
if (outW > 80) {
jQuery(".xzy-share-box").css({ width: outW, left: optL, top: optT, "display": "block" });
} else {
jQuery(".xzy-share-box").css({ width: "118px", "marginLeft": "-50px", left: optL, top: optT, "display": "block" });
jQuery(".xzy-share-box .zwbox").css({ width: "50%", left: "25%" });
}
jQuery(".xzy-share-box .zwbox").css({ height: jQuery(this).outerHeight(), top: -jQuery(this).outerHeight() });
jQuery(".xzy-share-box").mouseleave(function () {
$(this).stop(false, false)
.animate({ "opacity": 0 }, 300, function () {
$(this).remove();
});
});
})
jQuery(".xzy-yh .b-close").click(function(){
jQuery(".xzy-yh").fadeOut();
})
});
function openshowImg(num) {
$('html').addClass('openImg');
jQuery("body").append('');
for(var i = 0 ; i < imgList.length ; i++){
$('.imgShowDemo').append('')
var imgurl = imgList.eq(i).attr('data-img');
var imgtitle = imgList.eq(i).attr('data-title');
$('.imgShowDemo .item').eq(i).find(".img").attr("src",imgurl);
$('.imgShowDemo .item').eq(i).find('.i').html(imgtitle);
}
$(".imgShowBox").css({ height: win_height });
$('.imgShowDemo').css({ height: win_height });
$('.imgShowDemo .item').css({ height: win_height });
jQuery(window).resize(function(){
$(".imgShowBox").css({ height: win_height });
$('.imgShowDemo').css({ height: win_height });
$('.imgShowDemo .item').css({ height: win_height });
});
var imgowl=jQuery(".imgShowDemo").owlCarousel({
items: 1,
slideSpeed : 600,
autoPlay: false,
navigation: true,
pagination: false,
singleItem: true,
rewindNav: false,
afterMove: function () {
$(".ovnum").html(this.owl.currentItem + 1);
},
afterAction: function () {
$(".ovnum").html(1);
$(".maxNum").html(this.owl.owlItems.length);
}
});
imgowl.data('owlCarousel').jumpTo(num);
$('.imgShowBox').addClass('img-show');
}
function xzybox(htmlAddress){
if(jQuery(".md-modal").length>=1){
jQuery('html').removeClass('md-show');
jQuery('.md-modal').remove();
};
$.ajax({
url: htmlAddress,
dataType: "html",
success: function (data) {
if (data == "" || data == null) {
return;
}
else {
$(".pusher").after('');
$('.vertical-inner').append(data);
setTimeout(function(){$("html").addClass("md-show");},50);
jQuery('.user-close').bind('click',function(e){//back
jQuery('html').removeClass('md-show');
setTimeout(function(){jQuery('.md-modal').remove();},400);
});
jQuery('.blackBox').bind('click',function(){//back
jQuery('html').removeClass('md-show');
setTimeout(function(){jQuery('.md-modal').remove();},400);
});
jQuery('.vertical-inner').bind('click', function (e) {
if ($(e.target).hasClass('vertical-inner')) {
jQuery('html').removeClass('md-show');
setTimeout(function(){jQuery('.md-modal').remove();},400);
}
});
if(!placeholderSupport()){ // 判断浏览器是否支持 placeholder
$('[placeholder]').focus(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
input.removeClass('placeholder');
}
}).blur(function() {
var input = $(this);
if (input.val() == '' || input.val() == input.attr('placeholder')) {
input.addClass('placeholder');
input.val(input.attr('placeholder'));
}
}).blur();
};
}
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
jQuery('html').removeClass('md-show');
jQuery('.md-modal').remove();
}
});
};
function ismobiles() {
if (/androids/i.test(navigator.userAgent)) {
//document.write("This is androids'browser.");//这是androids平台下浏览器
return true;
}
if (/(iphoness|ipads|ipods|ioses)/i.test(navigator.userAgent)) {
//document.write("This is ioses'browser.");//这是ioses平台下浏览器
return true;
}
if (/Linux/i.test(navigator.userAgent)) {
//document.write("This is Linux'browser.");//这是Linux平台下浏览器
return true;
}
if (/Linux/i.test(navigator.platform)) {
//document.write("This is Linux operating system.");//这是Linux操作系统平台
return true;
}
if (/MicroMessenger/i.test(navigator.userAgent)) {
//document.write("This is MicroMessenger'browser.");//这是微信平台下浏览器
return true;
}
return false;
}
function pageBox() {
w_width = $(window).width();
w_height = $(window).height();
$mtoph = $('.mtop').height();
if (w_width <= 1024) {
ismobiles = true;
} else if (w_width > 1024) {
ismobiles = false;
};
if (w_width <= 640) {
mobiles = true;
} else if (w_width > 640) {
mobiles = false;
};
/*changeHeader();*/
/* abnav */
if( w_width < 861 ){
$('.abnav .lnav li').removeClass('act');
$('.abnav .lnav').bind('click',function(){
if($('.abnav .lnav').hasClass('show')){
$('.abnav .lnav').removeClass('show');
$('.abnav .lnav ul').stop().fadeOut();
}else{
$('.abnav .lnav').addClass('show');
$('.abnav .lnav ul').stop().fadeIn();
}
})
}else{
$('.abnav .lnav').unbind('click');
$('.abnav .lnav li').each(function() {
if( $(this).hasClass('cnav') ){
$(this).addClass('act');
};
});
}
if( w_width > 1024 ){
clik = "mouseenter";
isStretch = 'fill';
}else{
clik = "click";
isStretch = 'normal';
}
};
pageBox();
$(window).resize(function () {
pageBox();
});
$('.solute-list').owlCarousel({
items: 4,
slideSpeed: 1000,
navigation: true,
pagination: false,
controls: true,
itemsDesktop: [1199, 4],
itemsDesktopSmall: [1024, 3],
itemsTablet: [860, 2],
itemsTabletSmall: false,
itemsmobiles: [480, 1]
});
function changeSelect() {
stx = $('.ipselects ul li').eq($sItem).text();
$('.ipselects .ipsee .txx').html(stx);
$('.ipnav').hide().eq($sItem).fadeIn(600, function () {
$(this).addClass('show').siblings().removeClass('show');
});
};
changeSelect();
$('.ipselects ul li').click(function () {
$sItem = $(this).index();
changeSelect();
$('.ipnav:eq(' + $sItem + ') a').eq(0).addClass('act').siblings().removeClass('act');
gotoIxEng($('.ipnav:eq(' + $sItem + ') a').eq(0), $('.ipnav:eq(' + $sItem + ') a').eq(0).attr("chref"));
});