
// Redirect Mobile Endgeraete

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

// Funktionen

function MobileClient(userAgent) {
try {
userAgent=userAgent.toLowerCase();
for (var i=0; i < MobileClients.length; i++)
if (userAgent.indexOf(MobileClients[i]) != -1)
return true;
}
catch (e) {
}
return false;
}
function RedirectMobileClient() {
try {
if (BrowserMobileClient()) {
if (document.location.href.indexOf('#nomobil') != -1) {
document.cookie='nomobil';
return;
}	
if (document.cookie && document.cookie.indexOf('nomobil') != -1) 
return;
document.location.href="http://www.ndr.de/pda/index.htm?redir=1";
}
}
catch (e) { 
}
}
function BrowserMobileClient() {
return MobileClient(navigator.userAgent);
}

// Ende JS