// JavaScript Document
    IamChrome = 0;
    

    $(document).ready(function(){
    var userAgent = navigator.userAgent.toLowerCase();
    $.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); 
    // Is this a version of Chrome?
    if($.browser.chrome){
    
    IamChrome = 1;
    
    $('body').addClass('browserChrome');    
    //Add the version number
    userAgent = userAgent.substring(userAgent.indexOf('chrome/') +7);
    userAgent = userAgent.substring(0,1);
    $('body').addClass('browserChrome' + userAgent);
    // If it is chrome then jQuery thinks it's safari so we have to tell it it isn't
    $.browser.safari = false;    }
    });

    // Checks the browser and adds classes to the body to reflect it.
    if(IamChrome ==0){
    $(document).ready(function(){
    var userAgent = navigator.userAgent.toLowerCase();
    $.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()); 
    // Is this a version of Safari?
    if($.browser.safari){
        $('body').addClass('browserSafari');
        // Add the version number
        userAgent = userAgent.substring(userAgent.indexOf('version/') +8);
        userAgent = userAgent.substring(0,1);
        $('body').addClass('browserSafari' + userAgent);
    }
    });    
    }

