


$(document).ready(function () {
    $(".top_nav li img").hover(function () {
        this.src = this.src.replace("_off", "_on")
    }, function () {
        this.src = this.src.replace("_on", "_off")
    });
	 $(".social img").hover(function () {
        this.src = this.src.replace("_on", "_off")
    }, function () {
        this.src = this.src.replace("_off", "_on")
    });
	 	$(".facebookAd img").hover(function () {
        this.src = this.src.replace("_off", "_on")
    }, function () {
        this.src = this.src.replace("_on", "_off")
    });
	 /*$(".savethebucks img").hover(function () {
        this.src = this.src.replace("_on", "_off")
    }, function () {
        this.src = this.src.replace("_off", "_on")
    });*/
	  $(".social_sub img").hover(function () {
        this.src = this.src.replace("_on", "_off")
    }, function () {
        this.src = this.src.replace("_off", "_on")
    });
	 /*$(".savethebucks_sub img").hover(function () {
        this.src = this.src.replace("_on", "_off")
    }, function () {
        this.src = this.src.replace("_off", "_on")
    });*/
	  $(".hiw_reasons_buttons img").hover(function () {
        this.src = this.src.replace("_on", "_off")
    }, function () {
        this.src = this.src.replace("_off", "_on")
    });
 
});
function MaskEmail(b, a) {
    if (b) {
        if (b.keyCode == 8) {
            return
        }
    }
    str = a.value;
    str2 = stripCharsInList(str, "/'\\ \";:?!()[]{}^|%$^*+=#");
    if (str != str2) {
        a.value = str2
    }
}
function MaskAlphaNumeric(b, a) {
    if (b) {
        if (b.keyCode == 8) {
            return
        }
    }
    str = a.value;
    str2 = stripCharsInList(str, "!@#$%^&*()-_+=|}{[];:.>,</?~`'");
    if (str != str2) {
        a.value = str2
    }
}
function stripCharsInList(e, d) {
    var b;
    var a = "";
    for (b = 0; b < e.length; b++) {
        var f = e.charAt(b);
        if (d.indexOf(f) == -1) {
            a += f
        }
    }
    return a
}
function MM_reloadPage(init) {
    if (init == true) {
        with(navigator) {
            if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {
                document.MM_pgW = innerWidth;
                document.MM_pgH = innerHeight;
                onresize = MM_reloadPage
            }
        }
    } else {
        if (innerWidth != document.MM_pgW || innerHeight != document.MM_pgH) {
            location.reload()
        }
    }
}
MM_reloadPage(true);

function MM_swapImgRestore() {
    var d, b, c = document.MM_sr;
    for (d = 0; c && d < c.length && (b = c[d]) && b.oSrc; d++) {
        b.src = b.oSrc
    }
}
function MM_preloadImages() {
    var f = document;
    if (f.images) {
        if (!f.MM_p) {
            f.MM_p = new Array()
        }
        var e, c = f.MM_p.length,
            b = MM_preloadImages.arguments;
        for (e = 0; e < b.length; e++) {
            if (b[e].indexOf("#") != 0) {
                f.MM_p[c] = new Image;
                f.MM_p[c++].src = b[e]
            }
        }
    }
}
function MM_findObj(f, e) {
    var c, b, a;
    if (!e) {
        e = document
    }
    if ((c = f.indexOf("?")) > 0 && parent.frames.length) {
        e = parent.frames[f.substring(c + 1)].document;
        f = f.substring(0, c)
    }
    if (!(a = e[f]) && e.all) {
        a = e.all[f]
    }
    for (b = 0; !a && b < e.forms.length; b++) {
        a = e.forms[b][f]
    }
    for (b = 0; !a && e.layers && b < e.layers.length; b++) {
        a = MM_findObj(f, e.layers[b].document)
    }
    if (!a && e.getElementById) {
        a = e.getElementById(f)
    }
    return a
}
function MM_swapImage() {
    var e, d = 0,
        b, c = MM_swapImage.arguments;
    document.MM_sr = new Array;
    for (e = 0; e < (c.length - 2); e += 3) {
        if ((b = MM_findObj(c[e])) != null) {
            document.MM_sr[d++] = b;
            if (!b.oSrc) {
                b.oSrc = b.src
            }
            b.src = c[e + 2]
        }
    }
}
function MM_openBrWindow(c, a, b) {
    window.open(c, a, b)
}
function GetLocation() {
    var a = document.getElementById("txtZipCode1").value;
    if (((a == "") || (a == null))) {
        alert("Please enter a 5 digit zip code");
        return
    }
    myUrl = "http://loc.checkintocash.com/searchLocations.aspx?click=locselect&zipcode=" + a;
    window.location = myUrl;
    return ConversionCount()
}
/*function sendForm(c) {
    valid = true;
    var b;
    var a = document.getElementById("strState").value;
    if (a == "") {
        alert("Please select your State.");
        valid = false
    }
    if (valid == true) {
        b = "https://online.checkintocash.com?click=stateselect&state=" + a;
        try {
            b += _7BP.Utils.linkSiteParams(true)
        } catch (d) {}
        window.location = b
    }
};*/
function Redirect(state) {
	
    
     var state = document.getElementById("strState").value;
 	var querystring = '&AddressState=' + state;
 
		switch (state) {
			case "AZ":
			case "AK":
			case "CO":
			case "CT":
			case "DC":
			case "FL":
			case "HI":
			case "IL":
			case "IA":
			case "KY":
			case "ME":
			case "MA":
			case "MN":
			case "MT":
			case "NE":
			case "NH":
			case "ND":
			case "NJ":
			case "NY":
			case "PA":
			case "RI":
			case "VT":
			case "VA":
				window.location.href = "/bonus/bonus.html";
				break;
			case "GA":
			case "NC":
			case "WV":
			case "MD":
			case "AR":
				window.location.href = "/bonus/bonus_no-loan.html";
				break;
			default:
			 

			window.location.href = "https://online.checkintocash.com/new_customer.html?rqs=1" + querystring;
				break;
				
		}
	}

	

