function mobile_detection() {
    if((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/Fennec/i))||(navigator.userAgent.match(/Android/i))){
        var question = confirm("Souhaitez-vous naviguer sur le site optimisé pour mobile?")
        if (question){
            var lien = $("a#lien_version_texte").attr("href");
            window.location = lien;
        } else {
        }
    }
}