//
//
//SOF: MobileLoader.js
if (!window.WBXMOBILE) (function() {
       WBXMOBILE = {
            check : function(fid) {
                if(window.top == window.self &&
                        (navigator.userAgent.match(/iphone/i) ||
                        navigator.userAgent.match(/ pre\//i))) {
                    window.location = 'http://m.wbx.me/' + fid;
                }
            },
            loadApp : function(fid) {
                if(window.top == window.self &&
                        (navigator.platform.match(/iphone/i) ||
                        navigator.userAgent.match(/ pre\//i))) {
                    window.location = 'http://wbxapp.com/' + fid;
                }
            },
            detect : function(url) {
                if(window.top == window.self &&
                        (navigator.platform.match(/iphone/i) ||
                        navigator.userAgent.match(/ pre\//i))) {
                    if (url.indexOf("http") != 0) {
                        url = "http://" + url;
                    }

                    window.location = url;
                }
            },
            init : function() { }
       };
    var self = WBXMOBILE;
    self.init();
})();//EOF: MobileLoader.js

