$(document).ready(function () {
    // Homepage Slider:
    $('#feature-slider').anythingSlider({
        resizeContents: true,
        delay: 4000,
        animationTime: 600,
        hashTags: false,
        buildArrows: true
    }
	);


    // Disappearing Input text
    $('.default-value').each(function () {
        // normally the default_value is the same value as the Text field
        var default_value = this.value;
        $(this).focus(function () {
            // sometimes to prevent preset form fields from keeping their form
            // information as the default value we set an attribute called resetValue
            // this won't be done until after the document is ready so we have to check it
            // when we get focus on the textbox
            if ($(this).attr("resetValue") != undefined) {
                default_value = $(this).attr("resetValue");
            }

            if (this.value == default_value) {
                this.value = '';
            }
        });
        $(this).blur(function () {
             if (this.value == '') {
                this.value = default_value;
            }
        });
    });

    // Alternating Row Colors
    $('.data-table tbody tr:odd').addClass('alt');


    // Tabs
    $('#tabs').tabs();


    
});


