if ((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('ipad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || (navigator.userAgent.indexOf('Android') > 0 && navigator.userAgent.indexOf('Mobile') > 0)) {

			location.href ='./smart/';

} else if ((navigator.userAgent.indexOf('iPad') > 0 || navigator.userAgent.indexOf('Android') > 0 )) {

			location.href ='tablet.php';
}
