//var browser_class = navigator.userAgent;
//var browser_class_name1 = browser_class.match("Mobile");
//var browser_class_name2 = browser_class.match("mobile");
//var location_url = window.location.href;
//if (browser_class_name1 != null || browser_class_name2 != null) {
// if (location_url.match("wap") == null) {
// window.location.href = "http://m.bnwerc.com";
// }
//} else {
// if (location_url.match("3g") != null || location_url.match("wap") != null) {
// window.location.href = "http://m.bnwerc.com";
// }
//}
/////////////////////////////////////////////////////////////
//function detectOS() { var sUserAgent = navigator.userAgent;
// var isWin = (navigator.platform == "Win32") || (navigator.platform == "Windows");
//var isMac = (navigator.platform == "Mac68K") || (navigator.platform == "MacPPC") || (navigator.platform == "Macintosh") || (navigator.platform == "MacIntel");
//if (isMac) return "Mac";
//var isUnix = (navigator.platform == "X11") && !isWin && !isMac;
//if (isUnix) return "Unix";
//var isLinux = (String(navigator.platform).indexOf("Linux") > -1);
//var bIsAndroid = sUserAgent.toLowerCase().match(/android/i) == "android";
//if (isLinux) { if(bIsAndroid) return "Android";
//else return "Linux";
// } if (isWin) { var isWin2K = sUserAgent.indexOf("Windows NT 5.0") > -1 || sUserAgent.indexOf("Windows 2000") > -1;
// if (isWin2K) return "Win2000";
// var isWinXP = sUserAgent.indexOf("Windows NT 5.1") > -1 || sUserAgent.indexOf("Windows XP") > -1;
// if (isWinXP) return "WinXP";
// var isWin2003 = sUserAgent.indexOf("Windows NT 5.2") > -1 || sUserAgent.indexOf("Windows 2003") > -1;
// if (isWin2003) return "Win2003";
// var isWinVista= sUserAgent.indexOf("Windows NT 6.0") > -1 || sUserAgent.indexOf("Windows Vista") > -1;
// if (isWinVista) return "WinVista";
// var isWin7 = sUserAgent.indexOf("Windows NT 6.1") > -1 || sUserAgent.indexOf("Windows 7") > -1;
// if (isWin7) return "Win7";
// } return "other"; }
////d_Value = window.location.host;
//var hrefValue =window.location.href;
//hrefValue=hrefValue.replace(d_Value,"")
//hrefValue=hrefValue.replace("/html/pg/web/","/html/pg/web/wap/")
//hrefValue=hrefValue.replace("http://","")
//document.writeln(hrefValue); alert(hrefValue);
//if (detectOS()=="other"){
//if (hrefValue!="m.bnwerc.com" && hrefValue!="m.517px.cn" && hrefValue!="m.517px.com.cn"){
//window.location = 'http://m.bnwerc.com/'+hrefValue;}
//}
//else if (detectOS()=="Android"){
//if (hrefValue!="m.bnwerc.com" && hrefValue!="m.517px.cn" && hrefValue!="m.517px.com.cn"){
//window.location = 'http://m.bnwerc.com/+hrefValue';}
//}
//else if (detectOS()=="Linux"||detectOS()=="Win2000"||detectOS()=="WinXP"||detectOS()=="Win2003"||detectOS()=="WinVista"||detectOS()=="Win7"){
//if (hrefValue!="bnwerc.com" && hrefValue!="www.bnwerc.com" && hrefValue!="517px.cn" && hrefValue!="www.517px.cn" && hrefValue!="517px.com.cn" && hrefValue!="www.517px.com.cn"){
//window.location = 'http://www.bnwerc.com/+hrefValue';}
//}
//else
//{
//if (hrefValue!="m.bnwerc.com" && hrefValue!="m.517px.cn" && hrefValue!="m.517px.com.cn"){
//window.location = 'http://m.bnwerc.com/+hrefValue';}
//}