function DetectTheThing() { if (screen.width<=480) { location.href="../mobile/pag/trademark.htm"; } }