/**
	Please note:
	This script was written by bebel.
	You can use it for your non commercial procjects.
    However, for commercial use, you have to get in contact with us first: http://thebebel.com
    (commercial use includes themeforest.)

	This script is an easy to use navigation script. see default options to know how to use it.
    enhances css script.

*/
(function($){

	$.fn.bnavigation = function(options) {

    $(this).find('li ul').hide();

    $(this).find('li ul').parent().hover(
      function () {
       $(this).find('ul:first').stop(true, true).fadeIn(400);
       $(this).find('ul:first').append('<li class="firstLast"></li>');
      },
      function () {
        $(this).find('ul:first').stop(true, true).hide();
        $(this).find('ul:first').children().last().remove();
      }

    );

	}
})(jQuery);
