﻿/// <reference path="jquery-1.4.1-vsdoc.js" />

var imageHeight = 120;

// JavaScript functions for ploughmains main page
$(function() {

    $("#NewsTeasers .TeaserBox").each(function() {
        var minHeight = $(this).height();
        var maxHeight = minHeight * 2 + 15;
        var imageContainer = $(".Image", this)
        $(this).hover(function() {
            $(this)
                .css("z-index", "200")
                .animate({ height: maxHeight }, 300);
            imageContainer.animate({ height: imageHeight }, 300);
        },
        function() {
            $(this)
                .stop()
                .css("z-index", "100")
                .height(minHeight);
            imageContainer
                .stop()
                .height(0);
        });
    });
});
