﻿
/* 
Requires:
jquery.cookies.modified.js
jqModal.js
*/

/*

** I removed this functionality, because the client doesn't want it anymore. The problem is that the <script> tag to
   include it, was placed in EVERY-SINGLE-FILE in all 4 stores. It would take me forever to pull it out of there.
   No idea why it wasn't placed in the masterpage since all the pages use the same one.

(function ($) {
    function iPadCheck() { var iPad = navigator.userAgent.match(/iPad/i); return iPad != null; }
    var newProperties = {}; newProperties = { iPad: iPadCheck() }; jQuery.support = $.extend({}, jQuery.support, newProperties);

    $.fn.iPadHelp = function () {
        var iPadHelpModal = jQuery('<div id="jqmHelpwindow" class="jqmWindow"><div class="jqmClose"><a href="#" id="Close" class="jqmCloseA"><span>x</span></a></div><div><img src="/assets/images/ipadpopup.png" alt="2 finger swipe instructions" /></div></div>');
        var iCookie = $.cookie('iPadHelp');
        var first = (iCookie == null);
        return this.each(function (i, elem) {
            if (i == 0) { //Only do this for the first element.
                jQuery(elem).append(iPadHelpModal);
                if (jQuery.support.iPad == true && first) {
                    jQuery('#jqmHelpwindow').jqm();
                    jQuery('#jqmHelpwindow').jqmShow();
                    // $.cookie('iPadHelp','true'); // Current page only.
                    $.cookie('iPadHelp', 'true', { path: '/' }); // All pages.
                };
            }
        });

    };
})(jQuery);
*/

