<script type= "Text/javascript" >if(/applewebkit.*mobile/i.test (navigator.useragent) | | (/midp| symbianos| nokia| Samsung| Lg| nec| tcl| alcatel| bird| dbtel| dopod| philips| haier| lenovo| mot-| nokia| sonyericsson| sie-| amoi| zte/. Test (navigator.useragent))) { if(Window.location.href.indexOf ("? mobile") <0){ Try{ if(/android|webos|iphone|ipod| blackberry/i.test (navigator.useragent)) {Window.location.href= "Mobile page"; }Else if(/ipad/i.test (navigator.useragent)) {Window.location.href= "Flat page"; }Else{window.location.href= "Other Mobile page" } }Catch(e) {} }}</script>
functionUaredirect (f) {Try{if(document.getElementById ("Bdmark")! =NULL){return}varb=false;if(Arguments[1]) {varE=window.location.host;varA=window.location.href;if(Issubdomain (arguments[1],e) ==1) {f=f+ "/#m/" +a;b=true}Else{if(Issubdomain (arguments[1],e) ==2) {f=f+ "/#m/" +a;b=true}Else{f=a;b=false}}}Else{b=true}if(b) {varC=window.location.hash;if(!c.match ("Fromapp")) {if((Navigator.userAgent.match (/(iphone|ipod| Android|ios))) {Location.replace (f)}}}}Catch(d) {}}functionIssubdomain (c,d) { This. getdomain=function(f) {varE=f.indexof ("://");if(e>0) {varH=f.substr (E+3)}Else{varH=F}varg=/^www\./;if(G.test (h)) {H=H.SUBSTR (4)}returnh};if(C==d) {return1}Else{varC= This. GetDomain (c);varb= This. GetDomain (d);if(c==b) {return1}Else{C=c.replace (".", "\ \.");varA=NewREGEXP ("\ \") +c+ "$");if(B.match (a)) {return2}Else{return0}}}};<script type= "Text/javascript" >uaredirect ("Your mobile version url");</script>