/* ########## touchAttr (copyright e2see.de) ##########
<script>
$(document).ready(function(){
    $.touchAttr_connect();
});
</script>
*/

$.touchAttr_connect = function(){
    // $.touchAttr_connect();

    var bodyOB = $('body');

    var bindTouchHandler = true;

    try {
        if (typeof localStorage !== 'undefined') {
            if (typeof localStorage.getItem('e2_touchDevice') !== 'undefined' && localStorage.getItem('e2_touchDevice') == 'true'){
                bodyOB.attr('data-touch', 'on');
                bindTouchHandler = false;
            }
        }
    } catch(e) {
        // fehlerfall..
    }

    if(bindTouchHandler){

        $(window).one('touchstart MSPointerDown', function(){
            bodyOB.attr('data-touch', 'on');

            try {
                if (typeof localStorage !== 'undefined') {
                    localStorage.setItem('e2_touchDevice', 'true');
                }
            } catch(e) {
                // fehlerfall..
            }

            document.cookie = 'e2_touchDevice=true;path=/';

        });
    }

    return this;
}





/* cdn 0ms */