var webdir="/en/"; function loadCSS() { if((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|wOSBrowser|BrowserNG|WebOS)/i))) { location.replace(" /wap ") } else { } } loadCSS();