﻿(function (window, doc, undefined) {
    var className = 'js';
    var isSafari = navigator.userAgent.match(/safari/i) != null;
    var isiPadDevice = navigator.userAgent.match(/iPad/i) != null;
    var isiPhoneDevice = navigator.userAgent.match(/iPhone/i) != null;
    window.isAppleDevice = false;
    if (isiPadDevice) {
        className += ' ipad-device';
        window.isiPadDevice = true;
    }
    if (isiPhoneDevice) {
        className += ' iphone-device';
        window.isiPhoneDevice = true;
    }
    if (isiPadDevice || isiPhoneDevice) {
        className += ' apple-device';
        window.isAppleDevice = true;
    }
    doc.documentElement.className = className;
    document.write('<style type="text/css">.lit { position: absolute; top: -9999em; }</style>');
})(this, this.document);

