/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
var fsGetDeviceType = (function(){
    var ua = navigator.userAgent;
    if(ua.indexOf('iPhone') > 0 || ua.indexOf('iPod') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0){
        return 1;
    }else if(ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0){
        return 2;
    }else{
        return 3;
    }
})();