// Slides

jQuery(document).ready(
    function() {

        var windowWidth = jQuery(window).width();

        if(windowWidth > 748) {
            jQuery("#slides").slides({
                play: 4000,
                hoverPause: true,
                pause: 1000
            });
        }

        var divHeight = jQuery("#slides div.slides_container div.slides_control div").height();

        jQuery("#slides").css("height",divHeight);
        jQuery("#slides div.slides_container").css("height",divHeight);
        jQuery("#slides div.slides_container div.slides_control").css("height",divHeight);

        jQuery(window).resize(
            function() {
                var divHeight = jQuery("#slides div.slides_container div.slides_control div").height();

                jQuery("#slides").css("height",divHeight);
                jQuery("#slides div.slides_container").css("height",divHeight);
                jQuery("#slides div.slides_container div.slides_control").css("height",divHeight);
            }
        );
    }
);