﻿/// <reference path="jquery-1.3.1.js" />

// hover effects for the landing page touts
$(document).ready
(
    function() {
        $(".tout-off").hover(
            function() {
                $(this).addClass("tout-on");
                $(this).removeClass("tout-off");
            },

            function() {
                $(this).addClass("tout-off");
                $(this).removeClass("tout-on");
            }
        );

    }
);

$(document).ready(
    function() {
        $("#img-products-classic").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-classic-rollover.png");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-classic.png");
                $(this).ifixpng();
            }
        );

        $("#img-products-fruitified").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-fruitified-rollover.png");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-fruitified.png");
                $(this).ifixpng();
            }
        );

        $("#img-products-dark").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-dark-rollover.png");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-dark.png");
                $(this).ifixpng();
            }
        );

        $("#img-products-snack").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-snack-rollover.png");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-snack.png");
                $(this).ifixpng();
            }
        );
        
        /*/ Rollover for Classic Landing Page */
        $("#img-cat-landing-chocolate-Almond-Biscotti").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-almond-biscotti-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-almond-biscotti.gif");
                $(this).ifixpng();
            }
        );
        $("#img-cat-landing-chocolate-coconut-crunch").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-coconut-crunch-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-coconut-crunch.gif");
                $(this).ifixpng();
            }
        );
        $("#img-cat-landing-chocolate-raspberry").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-raspberr-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-raspberry.gif");
                $(this).ifixpng();
            }
        );
        
        $("#img-cat-landing-chocolate-almond-raisin").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-almond-raisin-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-almond-raisin.gif");
                $(this).ifixpng();
            }
        );
        $("#img-cat-landing-chocolate-mint").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-mint-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-mint.gif");
                $(this).ifixpng();
            }
        );
        
        $("#img-cat-landing-cinnamon-roll").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/cinnamon-roll-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/cinnamon-roll.gif");
                $(this).ifixpng();
            }
        );
         $("#img-cat-landing-chocolate-caramel-cluster").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-caramel-cluster-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-caramel-cluster.gif");
                $(this).ifixpng();
            }
        );
        $("#img-cat-landing-chocolate-peanut-butter").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-peanut-butter-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/chocolate-peanut-butter.gif");
                $(this).ifixpng();
            }
        );
         $("#img-cat-landing-fudge-graham").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/fudge-graham-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/classic/fudge-graham.gif");
                $(this).ifixpng();
            }
        );
         /*/ End Rollover for Classic Landing Page */
          /* Rollover for Dark Chocolat Landing Page */
        $("#img-cat-landing-dark-chocolate-almond").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-almond-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-almond.gif");
                $(this).ifixpng();
            }
        );
         $("#img-cat-landing-dark-chocolate-strawberry").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-strawberry-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-strawberry.gif");
                $(this).ifixpng();
            }
        );
         $("#img-cat-landing-double-dark-chocolate").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/double-dark-chocolate-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/double-dark-chocolate.gif");
                $(this).ifixpng();
            }
        );
        $("#img-cat-landing-dark-chocolate-cookies").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-cookies-n-creme-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-cookies-n-creme.gif");
                $(this).ifixpng();
            }
        );
         $("#img-cat-landing-dark-chocolate-mocah").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-mocha-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-mocha.gif");
                $(this).ifixpng();
            }
        );
        $("#img-cat-landing-dark-chocolate-caramel-pecan").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-caramel-pecan-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/dark/dark-chocolate-caramel-pecan.gif");
                $(this).ifixpng();
            }
        );
        $("#img-cat-landing-fruitified-apple-cinnamon").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/fruitified/apple-cinnamon-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/fruitified/apple-cinnamon.gif");
                $(this).ifixpng();
            }
        );
         $("#img-cat-landing-fruitified-banana-nut").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/fruitified/banana-nut-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/fruitified/banana-nut.gif");
                $(this).ifixpng();
            }
        );
         $("#img-cat-landing-fruitified-strawberry-yougurt").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/fruitified/strawberry-yougurt-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/fruitified/strawberry-yougurt.gif");
                $(this).ifixpng();
            }
        );
          $("#img-cat-landing-fruitified-blueberry").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/fruitified/blueberry-rollover.gif");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/fruitified/blueberry.gif");
                $(this).ifixpng();
            }
        );
        
        $("#img-cat-landing-indulgence-caramel-toffee").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/indulgence/indulgence-caramel-toffee-rollover.png");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/indulgence/indulgence-caramel-toffee.png");
                $(this).ifixpng();
            }
        );
        
        $("#img-cat-landing-indulgence-mousse").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/indulgence/indulgence-chocolate-peanut-butter-mousse-rollover.png");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/indulgence/indulgence-chocolate-peanut-butter-mousse.png");
                $(this).ifixpng();
            }
        );
        $("#img-cat-landing-indulgence-german").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/indulgence/indulgence-german-chocolate-cheesecake-rollover.png");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/indulgence/indulgence-german-chocolate-cheesecake.png");
                $(this).ifixpng();
            }
        );
        $("#img-products-indulgence").hover(
            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-indulgence-rollover.png");
                $(this).ifixpng();
            },

            function() {
                $(this).attr("src", "/images/products/landing-pages/product-zone-indulgence.png");
                $(this).ifixpng();
            }
        );
        
        
    }
);