/* スマートフォンサイトへ移動 */

if (document.referrer.indexOf('http://www.okuchimeiko.ac.jp/') == -1 && ((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0)) {
    if(confirm('大口明光学園のサイトにようこそ。\nこのサイトにはスマートフォン用のサイトがあります。\n表示しますか？')) {
        location.href = 'http://www.okuchimeiko.ac.jp/s';
    }
}

