includes/clientside/static/sliders.js
changeset 57 b354deeaa4c4
parent 1 fe660c52c48f
equal deleted inserted replaced
56:eb8eacb056d1 57:b354deeaa4c4
     6 var sliders_initted = false;
     6 var sliders_initted = false;
     7       
     7       
     8 function initSliders()
     8 function initSliders()
     9 {
     9 {
    10   sliders_initted = true;
    10   sliders_initted = true;
       
    11   if ( KILL_SWITCH )
       
    12     return false;
    11     // detect whether the user has ie or not, how we get the height is different 
    13     // detect whether the user has ie or not, how we get the height is different 
    12     var useragent = navigator.userAgent.toLowerCase();
    14     var useragent = navigator.userAgent.toLowerCase();
    13     var ie = ((useragent.indexOf('msie') != -1) && (useragent.indexOf('opera') == -1) && (useragent.indexOf('webtv') == -1));
    15     var ie = ((useragent.indexOf('msie') != -1) && (useragent.indexOf('opera') == -1) && (useragent.indexOf('webtv') == -1));
    14     
    16     
    15     if(ie)
    17     if(ie)
    60 }
    62 }
    61 
    63 
    62 function toggle(t)
    64 function toggle(t)
    63 {
    65 {
    64   if(IE)
    66   if(IE)
       
    67     return false;
       
    68   if ( KILL_SWITCH )
    65     return false;
    69     return false;
    66   if ( !sliders_initted )
    70   if ( !sliders_initted )
    67     initSliders();
    71     initSliders();
    68     // reset our inertia base and interval
    72     // reset our inertia base and interval
    69     inertiabase = inertiabaseoriginal;
    73     inertiabase = inertiabaseoriginal;