// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

// execute when the DOM is ready
$(document).ready(function() {

    // select all desired input fields and attach tooltips to them
	
    $("#container :input").tooltip({

        // use single tooltip element for all tips
        tip: '#dynatip',

        // tweak the position
        offset: [10, 2],

        // use "slide" effect
        effect: 'fade'

    // add dynamic plugin
    }).dynamic( {

        // customized configuration on bottom edge
        bottom: {

            // slide downwards
            direction: 'down',

            // bounce back when closed
            bounce: true
        }
    });

    $("#header a[title]").tooltip({

        // use single tooltip element for all tips
        tip: '#dynatip',

        // tweak the position
        offset: [10, 2],

        // use "slide" effect
        effect: 'fade'

    // add dynamic plugin
    }).dynamic( {

        // customized configuration on bottom edge
        bottom: {

            // slide downwards
            direction: 'down',

            // bounce back when closed
            bounce: true
        }
    });


     $(".admin_menu a[title]").tooltip({

        // use single tooltip element for all tips
        tip: '#dynatip',

        // tweak the position
        offset: [10, 2],

        // use "slide" effect
        effect: 'fade'

    // add dynamic plugin
    }).dynamic( {

        // customized configuration on bottom edge
        bottom: {

            // slide downwards
            direction: 'down',

            // bounce back when closed
            bounce: true
        }
    });


});
