if(
  (navigator.userAgent.match(/iPhone/i)) ||
  (navigator.userAgent.match(/iPod/i)) ||
  (navigator.userAgent.match(/Android/i)) ||
  (navigator.userAgent.match(/webOS/i))) {  
  for (var k=0;k < document.styleSheets.length; k++) {
    if (document.styleSheets[k].href != null && document.styleSheets[k].href.lastIndexOf("webkit") == -1) {
      document.styleSheets[k].disabled = true;
    }
  }
  window.scrollTo(0,1);
}

jQuery(function($){
  // add outgoing clicks to GA
  $("a[href*='http://']:not([href*='"+location.hostname+"'])").click(function(){
    _gaq.push(['_trackEvent', 'UserAction','External Link',$(this).attr('href')]);
  });

//  $("a[href*='http://register.tannadoonah.org']").click(function(){
//    _gaq.push(['_trackEvent', 'UserAction','External Link',$(this).attr('href')]);
//    _gaq.push(['_trackPageview', '/register.tannadoonah.org')]);
//  });

});
