var mobile = function (host) {
	'use strict';
	var ui = {
		prompt: function (msg) {
			if (typeof (msg) === 'undefined') {
				msg = "Would you like to view our mobile site?";
			}
			if (typeof (host) !== 'undefined' && confirm(msg)) {
				this.redirect();
			}
		},
		redirect: function () {
			if (typeof (host) !== 'undefined') {
				window.location = window.location.href.replace(window.location.host, host);
			}
		}
	};
	return ui;
};
