if (document.images) {

    ft_1 = new Image();
    ft_1.src = "/images/trailmix/footer/footer_1_out.jpg";
    ft_1_over = new Image();
    ft_1_over.src = "/images/trailmix/footer/footer_1_on.jpg";

    ft_2 = new Image();
    ft_2.src = "/images/trailmix/footer/footer_2_out.jpg";
    ft_2_over = new Image();
    ft_2_over.src = "/images/trailmix/footer/footer_2_on.jpg";

    ft_3 = new Image();
    ft_3.src = "/images/trailmix/footer/footer_3_out.jpg";
    ft_3_over = new Image();
    ft_3_over.src = "/images/trailmix/footer/footer_3_on.jpg";

    ft_4 = new Image();
    ft_4.src = "/images/trailmix/footer/footer_4_out.jpg";
    ft_4_over = new Image();
    ft_4_over.src = "/images/trailmix/footer/footer_4_on.jpg";

    ft_5 = new Image();
    ft_5.src = "/images/trailmix/footer/footer_5_out.jpg";
    ft_5_over = new Image();
    ft_5_over.src = "/images/trailmix/footer/footer_5_on.jpg";

    ft_6 = new Image();
    ft_6.src = "/images/trailmix/footer/footer_6_out.jpg";
    ft_6_over = new Image();
    ft_6_over.src = "/images/trailmix/footer/footer_6_on.jpg";

}


variety = 0;
category = "z";

function getTMLocator() {
    w = "http://www.kraftfoods.com/main.aspx?s=product&m=product/product_results&SearchType=Search&PageNo=1&u1=CATALOG&u2=trail%20mix&u3=**simple****trail%20mix**";
    winopen(w,'Locator','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,WIDTH=700,HEIGHT=500');
}

function getTMSweeps() {
    window.location.href = "/promotions/wellness/";
}

function getMixPage(thevar, cat) {
        if (!(cat)) {
        cat = category;
    }
    window.location.href = "/trailmix/details.aspx?variety=" + thevar + "&cat=" + cat;
}

function getCat(which) {
    if (which == "z") { // no specific header on varieties
        variety = "0";
    }
    if (which == "c") { // no specific header on stories
        variety = "0";
    }
        if (which == "e") {
        // open product locator window
        getTMLocator();
    } else {
        if ( which == category )
            variety = "0";
        window.location.href = "/trailmix/details.aspx?variety=" + variety + "&cat=" + which;
    }
}