/*	A MODIFIER : */
var theURLBase = 'http://www.rayfresh.com/';
var theURLiPhone = 'http://iphone.rayfresh.com/';

/*	FIN DE LA PARTIE A MODIFIER */
/*
			TEXT ENCODED : UTF-8 !!!!!!
*/
var WebKitDetect = {  };
WebKitDetect.isWebKit = function isWebKit()
{
    return RegExp(" AppleWebKit/").test(navigator.userAgent);
}
WebKitDetect.isMobile = function isMobile()
{
    return WebKitDetect.isWebKit() && RegExp(" Mobile/").test(navigator.userAgent);
}
WebKitDetect.mobileDevice = function mobileDevice()
{
    if (!WebKitDetect.isMobile())
        return null;
        
    var fields = RegExp("(Mozilla/5.0 \\()([^;]+)").exec(navigator.userAgent);
    if (!fields || fields.length < 3)
        return null;
    return fields[2];
}
function detectiPodOrComputer() {
    var isMobile = WebKitDetect.isMobile();
    if (isMobile) {
        return true;
    } else {
        return false;
    }
}
function loadBestPageForDevice() {
    if (detectiPodOrComputer() == true) {
        window.location.replace(theURLiPhone);
    }
}
