﻿/*
*   This is used to do special things to mobile 
*   devices that acesses the normal page
*
*   Dependencies: jquery.browser.mobile.js
*/


if (window.Moderna == undefined) {

    Moderna = {};
}


Moderna.MobileScripts = {

    init: function() {

        if (jQuery.browser.mobile) {
            this.showMobileTip();
        }

    },

    
    /*
    *   Puts a link to the mobile version at the top of the page
    */
    showMobileTip: function() {
        var tipHtml = this.getTipHtml();
        jQuery("body").prepend(tipHtml);
    },


    getTipHtml: function() {

    return '<div style="background: #fff; font-size: 32px; height: 90px; line-height: 85px; text-align:center"> \
                 <a href="http://mobil.modernamuseet.se" style="font-weight: bold; font-size: 32px;">Till mobilversion av Moderna Museet</a> \
            </div>';
    }
}


jQuery(function() {
    Moderna.MobileScripts.init();
});
