var QVPL= {}; var pl = navigator.platform.toLowerCase(); var ipad = pl.match(/ipad/); if (ipad) { QVPL._clientPlatform = "ipad"; return true; } var iphone = pl.match(/iphone/); if (iphone) { QVPL._clientPlatform = "iphone"; return true; } var ipod = pl.match(/ipod/); if (ipod) { QVPL._clientPlatform = "ipod"; return true; } return false;