Hmm... I dont get it. Ive started two threads here, but nobody answers me...
Anyway; regarding the menus issue mentioned above: here is part of the solution:
I edited the avia.js file like this;
// -------------------------------------------------------------------------------------------
// Avia Menu
// -------------------------------------------------------------------------------------------
(function($)
{
$.fn.avia_menu_helper = function(variables)
{
var defaults =
{
modify_position:true,
delay:300
};
var options = $.extend(defaults, variables);
return this.each(function()
{
var menu = $(this),
menuItems = menu.find(">li"),
dropdownItems = menuItems.find(">ul").parent(),
parentContainerWidth = menu.parent().width(),
delayCheck = {};
menuItems.each(function()
{
var item = $(this),
normalDropdown = item.find("li>ul").css({display:"none"});
//if we got a mega menu or dropdown menu add the arrow beside the menu item
if(normalDropdown.length)
{
normalDropdown.parent('li').addClass('submenu_available');
}
});
// bind events for dropdown menu
dropdownItems.find('li').andSelf().each(function()
{
var currentItem = $(this),
sublist = currentItem.find('ul:first'),
showList = false;
if(sublist.length)
{
sublist.css({display:'none', opacity:0, visibility:'hidden'});
var currentLink = currentItem.find('>a'),
timeout = "";
currentLink.bind('mousedown', function()
{
sublist.stop().css({visibility:'visible', display:'block'}).animate({opacity:1});
var other_lists = currentItem.siblings().find('ul');
other_lists.each(function()
{
var list = $(this);
if(list.css('opacity') > 0)
{
list.stop().animate({opacity:0},100, function()
{
list.css({visibility:'hidden'});
});
}
});
});
currentItem.bind('mouseenter', function()
{
clearTimeout(timeout);
});
currentItem.bind('mouseleave', function()
{
timeout = setTimeout(function()
{
sublist.stop().animate({opacity:0}, function()
{
sublist.css({visibility:'hidden', display:'none'});
});
},500);
});
}
});
});
};
})(jQuery);
And modified the css like this:
#top .main_menu .menu ul {
box-shadow: 0px;
cursor: pointer;
display: none;
left: 0px;
margin: 0;
padding: 2px 0;
position: relative;
top: -1px;
width: auto;
z-index: 200;
}
#top .main_menu .menu li ul a {
float: none;
font-size: 10px;
height: auto;
line-height: 18px;
max-width: none;
min-height: 24px;
padding: 2px 0;
text-align: left;
width: auto;
}
#top .main_menu .menu ul {
box-shadow: 0 0 0 0 transparent;
}
#top .main_menu .menu ul {
background: none repeat scroll 0 0 #FFFFFF;
border: 0 none;
}
To achive what I was looking for. Now the dropdown menu unfolds when I click on the parent menu item. But the problem is that when I do that, besides of unfolding the sub-menu, it takes me to the parent item page. I would like to add an arrow or something next to the parent menu item which indicates that this menu item can be unfolded. And when you click that arrow the sub-menu unfolds. It would be really nice if you pointed me in the right direction!
Cmon guys! Please answe me!