// Detect mobile browsers and redirect accordingly:

if  ( navigator.userAgent.toLowerCase().indexOf('iphone') > -1 ||      // iPhone
    navigator.userAgent.toLowerCase().indexOf('ipod') > -1 ||      // iPod
    navigator.userAgent.toLowerCase().indexOf('android') > -1 ||    // Android
    navigator.userAgent.toLowerCase().indexOf('blackberry') > -1 ||    // BlackBerry
    navigator.userAgent.toLowerCase().indexOf('windows phone') > -1 )  // Windows Phone (7)
  {
    var mobileCookie = readCookie('www.bgcco.orgMobileCookie');
    if (!mobileCookie) {
      window.location.href = 'http://www.bgcco.org/mobile/';
    }
  }
