var mobileClients=[
'iphone',
'midp',
'240x320',
'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',
// Ergänzungen
'htc'
];
function isMobileClient(userAgent){
	try{
		userAgent=userAgent.toLowerCase();
		for (var i=0; i < mobileClients.length; i++){
			if (userAgent.indexOf(mobileClients[i]) != -1){
				return true;
			}
		}
	}
	catch(err){}
	return false;
}
function isBrowserMobileClient(){
	return isMobileClient(navigator.userAgent);
}
function redirectMobile(){
	try{
		if (isBrowserMobileClient())
		{
			document.location.href = 'http://mobile.glashaus-events.ch';
		}
		
		else if (navigator.userAgent.toLowerCase().indexOf('ipad') != -1)
		{
			document.location.href = 'http://www.glashaus-events.ch/default.aspx?navid=159';
		}
		
		else
		{
			document.location.href = '/intros/intro-glashaus.html';
		}
	}
	catch(err){}
}

