$(document).ready(function(){

// Add class to checkboxes and radios
$('input:checkbox, input:radio').addClass("checkbox");

// Add class to text inputs
$('input:text').addClass("textbox");

// Add an asterisk to all required form labels
$('form label.required').append("<span class='ast'>*</span>");

// Input and textarea field value (disappear and re-appear)
$('input, textarea').each(function() {
    var default_value = this.value;
    $(this).focus(function() {
        if(this.value == default_value) {
            this.value = '';
            $(this).toggleClass("value-color");
        }
    });
    $(this).blur(function() {
        if(this.value == '') {
            this.value = default_value;
            $(this).toggleClass("value-color");
        }
    });
});

// Zebra stripe table rows
$('#internal .content tbody tr:even').addClass('even');

// Rollovers
$("#selector").mouseover(function () {
$(this).stop(true, true).animate({bottom: "2px"}, "fast");
});

$("#selector").mouseleave(function () {
$(this).stop(true, true).animate({bottom: "0px"}, "fast");
});

});
