/*
 * jQuery Plugin : jConfirmAction
 * 
 * by Hidayat Sagita
 * http://www.webstuffshare.com
 * Licensed Under GPL version 2 license.
 *
 */
(function($) {

    jQuery.fn.jConfirmAction = function(options) {

        // Some jConfirmAction options (limited to customize language) :
        // question : a text for your question.
        // yesAnswer : a text for Yes answer.
        // cancelAnswer : a text for Cancel/No answer.
        var theOptions = jQuery.extend({
            question: "Create Combination of Artiste & Movies. Filter by Genre & Year",
            yesAnswer: "",
            cancelAnswer: "Cancel"
        }, options);

       return this.each(function() {
            $(this).bind('mouseout', function(e) {
            //alert('Hello');
            //$('#divquestion').remove();
            $('.question').delay(2000).fadeOut(300, function() {
            $('.question').remove();
            });
            
            
            });

            $(this).bind('mouseover', function(e) {

                e.preventDefault();
                thisHref = $(this).attr('href');

                if ($(this).next('.question').length <= 0)
                    $(this).after('<div class="question"   >' + theOptions.question + '<br/><br/> </div>');

                $(this).next('.question').animate({ opacity: 1 }, 300);

             

            });


        });


    }

})(jQuery);
