﻿
function PageLoad(CheckSecure) {
    F4U_preloadImages();
    if (CheckSecure == 'true') {
        CheckSecurity();
    }
}

function CheckSecurity() {
    var CurrentUrl = location.href;

    if (CurrentUrl.substr(0, 5) != "https") {
        location.href = "http://www.filters4u.net/SessionExpired.aspx";
    }
}

function Redirection(RedirectionLocation) {
    location.href = RedirectionLocation;
}

function ContentCellMouseOver(CellReference) {
    CellReference.style.cursor = "Hand";
    CellReference.style.color = "#000066";
    CellReference.style.backgroundImage = "url('images/SelectedMenuBar.png')"
}

function ContentCellMouseOut(CellReference) {
    CellReference.style.cursor = "Arrow";
    CellReference.style.color = "White";
    CellReference.style.backgroundImage = "url('images/NormalMenuBar.png')"
}

function F4U_preloadImages() { 
    var d = document; if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length, a = F4U_preloadImages.arguments; for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
    }
}