// Mobile View
function Client(){
}
// Search string matched against navigator.userAgent text.  Can be Client, Browser or any part of the string.
Client.prototype.mobileClients = ["midp", "240x320", "blackberry", "netfront", "nokia", "panasonic", "portalmmm", "sharp", "sie-", "sonyericsson", "symbian", "windows ce", "benq", "mda", "mot-", "opera mini", "philips", "pocket pc", "sagem", "samsung", "sda", "sgh-", "vodafone", "xda", "iphone", "android"];
Client.prototype.isMobileClient = function(userAgent){
    userAgent = userAgent.toLowerCase();
    for (var i in this.mobileClients) {
        if (userAgent.indexOf(this.mobileClients[i]) != -1) {
            return true; }
    } return false;
}
var client = new Client();
var isMobile = client.isMobileClient(navigator.userAgent);
if(isMobile===true){}else{isMobile=false;}
// Disables all CSS StyleSheets declared prior to this function then creates a new mobile stylesheet.
if (isMobile) {
    for (var i = 0, ii = document.styleSheets.length; i < ii; i++) {
        document.styleSheets[i].disabled = true;
    }
    putFileInHead('/global/css/mobile.css');
}

