@@ -1894,14 +1894,12 @@ function noneImg(noneSrc) {
*/
function cfnCheckMobileDevice() {
var mobileKeyWords = new Array('Android', 'iPhone', 'iPod', 'BlackBerry', 'Windows CE', 'SAMSUNG', 'LG', 'MOT', 'SonyEricsson');
- var device = "";
- for (var info in mobileKeyWords) {
- if (navigator.userAgent.match(mobileKeyWords[info]) != null) {
- device = "M";
- return device;
- } else{
- device = "P";
- }
+ var device = "P";
+ for (var info in mobileKeyWords) {
+ if (navigator.userAgent.match(mobileKeyWords[info])) {
+ device = "M";
+ return device;
+ }
}