var mobileClients=[
"midp",
"blackberry",
"netfront",
"nokia",
"panasonic",
"portalmmm",
"sharp",
"sie-",
"sonyericsson",
"symbian",
"windows ce",
"benq",
"mda",
"mot-",
"opera mini",
"philips",
"pocket pc",
"sagem",
"samsung",
"sda",
"sgh-",
"vodafone",
"xda",
"iphone",
"ipod"
];

function isMobileClient() {
  try {
    userAgent = navigator.userAgent.toLowerCase();
    for ( var i = 0; i < mobileClients.length; i++ ) {
      if ( userAgent.indexOf( mobileClients[i] ) != -1 ) {
        return true;
      }
    }
  }
  catch (e) {
  }
  return false;
}

function redirectIfMobileClient() {
  try {
    if ( isMobileClient() ) {
      document.location.href = "http://mobile.schneider-webanwendungen.de";
    } else {
      return;
    }
  }
  catch (e) {
  }
}
