var name = "interstitial";

function ReadCookie(g) {
    var e = "" + document.cookie;
    var h = e.indexOf(g);
    if (h == -1 || g == "") {
        return ""
    }
    var f = e.indexOf(";", h);
    if (f == -1) {
        f = e.length
    }
    return unescape(e.substring(h + g.length + 1, f))
}
function WriteCookie(g) {
    var h = new Date();
    var e = new Date(h.getFullYear(), h.getMonth(), h.getDate() + 1, 0, 0, 0, 0);
var exp = new Date();
var one_week = exp.getTime() + (12 * 60 * 60 * 1000);
exp.setTime(one_week);
var q = exp;
    var f = "; expires=" + q.toUTCString();
    document.cookie = g + "=yes" + f + "; path=/; domain=.gamingeverything.com"
}
if (ReadCookie(name) != "yes" && window.location.host == "gamingeverything.com") {
    WriteCookie(name);
    window.location = "/interstitial.php?url=" + window.location
}
