jQuery(function($) {                    
    $(document).ready(function(){       
 
        $("#content #team img").each(function () {    
            rollsrc = $(this).attr("src");
            rollON = rollsrc.replace(/.jpg$/gi, "-hover.jpg");
            $("<img>").attr("src", rollON);
        });
 
        $("#content #team a").mouseover(function () { 
            imgsrc = $(this).children("img").attr("src");
            matches = imgsrc.match(/-hover/);
            if (!matches) {
                imgsrcON = imgsrc.replace(/.jpg$/gi, "-hover.jpg");
                $(this).children("img").attr("src", imgsrcON);
            }
        });
 
        $("#content #team a").mouseout(function () {  
            $(this).children("img").attr("src", imgsrc);
        });
 
    });
});



// Content Toggle
jQuery(document).ready(function($){
 // Initial state of toggle (hide)
 $(".slide_toggle_content").hide();
 // Process Toggle click (http://api.jquery.com/toggle/)
 $("h4.slide_toggle").toggle(function(){
 $(this).addClass("clicked");
 }, function () {
 $(this).removeClass("clicked");
 });
 // Toggle animation (http://api.jquery.com/slideToggle/)
 $("h4.slide_toggle").click(function(){
 $(this).next(".slide_toggle_content").slideToggle();
 });
});
// Content Toggle
jQuery(document).ready(function($){
 // Initial state of toggle (hide)
 $(".slide_toggle_compact_content").hide();
 // Process Toggle click (http://api.jquery.com/toggle/)
 $("h4.slide_toggle_compact").toggle(function(){
 $(this).addClass("clicked_compact");
 }, function () {
 $(this).removeClass("clicked_compact");
 });
 // Toggle animation (http://api.jquery.com/slideToggle/)
 $("h4.slide_toggle_compact").click(function(){
 $(this).next(".slide_toggle_compact_content").slideToggle();
 });
});
