//=== viewid:dh_style_28_1682472668544 ===//

/*pc,手机显示隐藏*/
function is_mobile(){
	return window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767);
}
var is_mobile_boolean = is_mobile();
$(function(){
    /*pc,手机显示隐藏*/
    
})


//=== viewid:dh_style_28_1682472668544 ===//

function navSwtich(obj) {
	$(obj).siblings(".menuUlCopy").slideToggle(200);
	$(obj).toggleClass('ontoggle');
	$(obj).parent().siblings().find(".menuUlCopy").slideUp(200);
	$(obj).parent().siblings().find(".fa-angle-down").removeClass('ontoggle');
}
function subLeft_dh_style_28_1682472668544(){
	$("#dh_style_28_1682472668544 .menuUl>li").each(function(){
		$(this).find(".menuUl03").css("left",'100%');
	})
}
$(window).resize(function() {
	subLeft_dh_style_28_1682472668544();
})
$(function(){
    
	$("#dh_style_28_1682472668544 .fa-navicon").click(function(){
        $("#dh_style_28_1682472668544").addClass('clearTransform');
		$("#dh_style_28_1682472668544 .menuUlCopy").each(function(){
			$(this).siblings(".fa").show();
		})
	})
	subLeft_dh_style_28_1682472668544();
		$("#dh_style_28_1682472668544 .subBox").css("top",$("#dh_style_28_1682472668544 .menuUl_box").height());
		
	if($("#dh_style_28_1682472668544 .menuUl").hasClass("noHover")){
		var tabNum = 0;
		$("#dh_style_28_1682472668544 .menuUl>li").find(".Onsub").each(function(){
			tabNum += 1;
			$(this).parent().attr("tabNum",tabNum)
		})
		$("#dh_style_28_1682472668544 .menuUl>li .Onsub").mouseover(function(){
			$("#dh_style_28_1682472668544 .subBox").show();
			var index = $(this).parent().attr("tabNum");
			$("#dh_style_28_1682472668544 .subBox .subItems").eq(index-1).fadeIn(100).siblings().hide();
							$("#dh_style_28_1682472668544 .subBox .subMenuImgArea .subMenuImgCon").eq(0).fadeIn(100).siblings().hide();
					})
						$("#dh_style_28_1682472668544 .subBox").mouseleave(function(){
			$(this).hide();
		});
		$("#dh_style_28_1682472668544 .menuUl>li .Nosub").mouseover(function(){
			$("#dh_style_28_1682472668544 .subBox").hide();
		})
		
		//风格41 42
					
		
		
	}
})
	var color = $('#dh_style_28_1682472668544 .menuStyle_28 .menuUl02 .subMenu02').css('background-color');
	$('#dh_style_28_1682472668544 .menuStyle_28').append(`<style>#dh_style_28_1682472668544 .menuStyle_28 .menuUl .rflex .menuUl02::before{border-bottom-color:${color}!important;}</style>`);
	$('#dh_style_28_1682472668544 .menuStyle_28 .menuUl02 .subMenu02').mouseover(function(){
		let that = $(this);
		setTimeout(function(){
			var hoverColor = that.css('background-color');
			$('#dh_style_28_1682472668544 .menuStyle_28').append(`<style>#dh_style_28_1682472668544 .menuStyle_28 .menuUl02 .arrow:hover::before{border-left-color:${hoverColor}!important;}</style>`);
		},100);
	});


//=== viewid:qqol_style_08_1683636143490 ===//

	$(function(){
		if($('body').width() < 640){
            // 是否苹果safari浏览器 
            var ua = navigator.userAgent.toLowerCase();
            if (ua.indexOf('applewebkit') > -1 && ua.indexOf('mobile') > -1 && ua.indexOf('safari') > -1 && ua.indexOf('linux') == -1 && ua.indexOf('android') == -1) {
                $('#qqol_style_08_1683636143490 .qq_view>a').each(function(){
                    let mobileHref = $(this).attr('mobilehref');
                    $(this).attr('href',mobileHref);
                });
            }else if(ua.indexOf('baidu') > -1){
            // PS：百度浏览器无法跳转qq的，因为百度内部屏蔽了跳转协议，为的是不让百度自己的流量窜到敌站。除非百度自己开放接口，否则无法解决。
                $('#qqol_style_08_1683636143490 .qq_view>a').each(function(){
                    $(this).attr('href','javascript:;');
                });
            }
            // 选择颜色
			$('#qqol_style_08_1683636143490 .info_view').each(function(){
				$(this).click(function(){
					$(this).find('.menu_con').toggle();
					$(this).siblings().find('.menu_con').hide();
					if($(this).find('.menu_ico').hasClass('mobile_ico_cur')){
						$(this).find('.menu_ico').addClass('mobile_ico_notcur').removeClass('mobile_ico_cur');
					}else{
						$(this).find('.menu_ico').addClass('mobile_ico_cur').removeClass('mobile_ico_notcur');
					}
					$(this).siblings().find('.menu_ico').addClass('mobile_ico_notcur').removeClass('mobile_ico_cur');
				});
			});
            // 选择颜色
            $('#qqol_style_08_1683636143490 .link_view').each(function(){
            	$(this).on('touchstart',function(){
            		$(this).siblings().find('.menu_con').hide();
                    $(this).find('.menu_ico').addClass('mobile_ico_cur').removeClass('mobile_ico_notcur');
					$(this).siblings().find('.menu_ico').addClass('mobile_ico_notcur').removeClass('mobile_ico_cur');
            	});
                $(this).on('touchend',function(){
                    $(this).find('.menu_ico').addClass('mobile_ico_notcur').removeClass('mobile_ico_cur');
                });
            });
            
		}else{
			$('#qqol_style_08_1683636143490 .main_li').hover(function(){
				$(this).find('.menu_con').show();
				$(this).siblings().find('.menu_con').hide();
			},function(){});
			$('#qqol_style_08_1683636143490 .main_li .menu_con').hover(function(){
				$(this).show();
			},function(){
				$(this).hide();
			});
		}
	})


//=== viewid:qqol_style_08_1683636143490 ===//

    //购物车
    if(typeof showcart !== 'function'){
        function showcart(){
            var langid = 0;
            if (langid==0 && BodyIsFt) langid = 1;
            if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767)){
            location.href = "//s143js.nicebox.cn/exusers/u_cart.php?idweb=42505&act=show&lang="+langid+"&ismobile=1";
            }else{
            document.getElementById("boxName").innerHTML="查看购物车";
            if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×"; 
            document.getElementById("showiframe").src="//s143js.nicebox.cn/exusers/u_cart.php?idweb=42505&act=show&lang="+langid+"&v=9";
            box.Show({width:'1000px', height:'600px'});
            }
        }
    }
    //判断是否是手机,用于处理QQ电脑端及手机端链接不一致问题
    var mobile_flag = isMobile();
    if(mobile_flag){
                $('#qqol_style_08_1683636143490 .qq_pc').hide();
        $('#qqol_style_08_1683636143490 .qq_mobile').show();
            }
    function isMobile() {
        var userAgentInfo = navigator.userAgent;
        var mobileAgents = [ "Android", "iPhone", "SymbianOS", "Windows Phone", "iPad","iPod"];
        var mobile_flag = false;
        //根据userAgent判断是否是手机
        for (var v = 0; v < mobileAgents.length; v++) {
            if (userAgentInfo.indexOf(mobileAgents[v]) > 0) {
                mobile_flag = true;
                break;
            }
        }
        var screen_width = window.screen.width;
        var screen_height = window.screen.height;

        //根据屏幕分辨率判断是否是手机
        if(screen_width < 500 && screen_height < 800){
            mobile_flag = true;
        }
        return mobile_flag;
    }


//=== viewid:qqol_style_08_1683636143490 ===//

    // 对输入内容中的尖括号、引号等进行转义
    function html_encode(str) {
        var s = "";
        if (str.length == 0) return "";
        s = str.replace(/&/g, "&amp;");
        s = s.replace(/</g, "&lt;");
        s = s.replace(/>/g, "&gt;");
        s = s.replace(/ /g, "&nbsp;");
        s = s.replace(/\'/g, "&#39;");
        s = s.replace(/\"/g, "&quot;");
        s = s.replace(/\n/g, "<br>");
        return s;
    }
    function html_decode(str) {
        var s = "";
        if (str.length == 0) return "";
        s = str.replace(/&amp;/g, "&");
        s = s.replace(/&lt;/g, "<");
        s = s.replace(/&gt;/g, ">");
        s = s.replace(/&nbsp;/g, " ");
        s = s.replace(/&#39;/g, "\'");
        s = s.replace(/&quot;/g, "\"");
        s = s.replace(/<br>/g, "\n");
        return s;
    }



//=== viewid:newsList_style_09_1683252723556 ===//
var sys_url_newsList_style_09_1683252723556="viewid=newsList_style_09_1683252723556&name=newsList&style=style_09&langid=0&pageid=526493&viewCtrl=newsList";

//=== viewid:newsList_style_09_1683252723556 ===//

				var subpage = 0;
				$('#newsList_style_09_1683252723556 #page_set').blur(function(){
					if($(this).val() > 7){
						subpage = 7;
						$(this).val(7);
					}else if( $(this).val() <= 0){
						$(this).val(1);
						subpage = 1;
					}else{
						subpage = $(this).val();
					}
					$('#newsList_style_09_1683252723556 #page_set').next('.page_submit').attr('onclick',"RequestURL('newsList_style_09_1683252723556', sys_url_newsList_style_09_1683252723556, 'News_page="+subpage+"&')");
				});	
				

//=== viewid:newsList_style_09_1683252723556 ===//
//--
				$(function(){
					var viewid="newsList_style_09_1683252723556";
					var sys_url="viewid=newsList_style_09_1683252723556&name=newsList&style=style_09&langid=0&pageid=526493&viewCtrl=newsList&isfb=1";
					var moreParams='';
					if(typeof(history.pushState) != 'undefined'){
						var hstate=JSON.stringify(history.state);
						if(hstate!='null'&& hstate!=null){
							eval('var hjson = ' + hstate);
							moreParams=hjson.moreParamsnewsList_style_09_1683252723556;
						}
					}
					RequestURL(viewid,sys_url,moreParams);
				});
			//--

//=== viewid:copyright_style_01_1660990229104 ===//

	


//=== viewid:footerCustom_textlist_01_1682501590449 ===//

    if(typeof showcart !== 'function'){
        function showcart(){
            var langid = 0;
            if (langid==0 && BodyIsFt) langid = 1;
            if(window.screen.width<767 || ($('body').width() > 0 && $('body').width() < 767)){
                location.href = "https://s143js.nicebox.cn/exusers/u_cart.php?idweb=42505&act=show&lang="+langid+"&ismobile=1";
            }else{
                document.getElementById("boxName").innerHTML="";
                if(document.getElementById("boxClose")) document.getElementById("boxClose").innerHTML="×";
                document.getElementById("showiframe").src="https://s143js.nicebox.cn/exusers/u_cart.php?idweb=42505&act=show&lang="+langid+"&v=9";
                box.Show({width:'1000px', height:'600px'});
            }
        }
    }