$(document).ready(function(){
    

    // Linux Notes query result over and out
    $('fieldset.summaryContainer').mouseover(function(){
        $(this).css({"cursor":"pointer", "background-color":"#1C1C1C"});
    }).mouseout(function(){
        $(this).css({"cursor":"none", "background-color":"#171717"});
    });


    // Over and Out functions for any area where a user types in text
    $('.textField').focus(function(){
        $(this).css({"border":"1px solid #F93"});
    }).blur(function(){
        $(this).css({"border":"1px solid #999"});
    });

    // Over and Out functions for submit buttons
    $('.submit').mouseover(function(){
        $(this).css({"cursor":"pointer", "border":"1px solid #F93"});
    }).mouseout(function(){
        $(this).css({"cursor":"none", "border":"1px solid #1E90FF"});
    });

    // Over and Out functions for art
    $('.artItemContainer').mouseover(function(){
        $(this).css({"cursor":"pointer", "background-color":"#222"});
    }).mouseout(function(){
        $(this).css({"cursor":"none", "background-color":"#171717"});
    });

    // Submit form if a text area has focus when enter is pressed
    $(function() {
        $("form input").keypress(function (e) {
            if (((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) && $(".textField").focus() == true) {
                $('.submit').click();
                return false;
            } else {
                return true;
            }
        });
    });


});
