var Pishrovan = function () {
	var $ = jQuery;
	return {
		init: function() {
			var instance = this;

			instance.dropDownMenu();
		},

		dropDownMenu: function() {
			$(".parent-nav-item").hoverIntent(
				{
					interval: 25,
					timeout: 0,
					over: function () {
						var instance = $(this);
						var child = $('.child-menu', this);

						instance.addClass("init");
						child.slideDown(100);
					},
					out: function () {
						var instance = $(this);
						var child = $('.child-menu', this);
						child.slideUp(50);
						instance.removeClass("init");
					}
				}
			),
			$(".parent-menu").hoverIntent(
				{
					interval: 25,
					timeout: 0,
					over: function () {
						var instance = $(this);
						var child = $('.child-menu2', this);

						instance.addClass("init");
						child.slideDown(100);
					},
					out: function () {
						var instance = $(this);
						var child = $('.child-menu2', this);
						child.slideUp(50);
						instance.removeClass("init");
					}
				}
			),
			$(".parent-menu2").hoverIntent(
				{
					interval: 25,
					timeout: 0,
					over: function () {
						var instance = $(this);
						var child = $('.child-menu3', this);

						instance.addClass("init");
						child.slideDown(100);
					},
					out: function () {
						var instance = $(this);
						var child = $('.child-menu3', this);
						child.slideUp(50);
						instance.removeClass("init");
					}
				}
			);
		}
	};
}();

jQuery(document).ready(
	function() {
		Pishrovan.init();
	}
);

Liferay.Portlet.ready(

	/*
	This function gets loaded after each and every portlet on the page.

	portletId: the current portlet's id
	jQueryObj: the jQuery wrapped object of the current portlet
	*/

	function(portletId, jQueryObj) {
	}
);

jQuery(document).last(

	/*
	This function gets loaded when everything, including the portlets, is on
	the page.
	*/

	function() {
	}
);


