Hello Everyone,

First of all i'd like to thank you for this wonderful forum, you people have helped me..

Now, i'm back here because i have this problem...i have a website built with drupal, www.plus-demo.info/drupal

If you see the second menu, when you hover there is a submenu which pops out...what i want for this popup menu is to display in a fixed position...it shouldn't get out of the borders of the website...there is the code which has to do with it... Please help me...

function muchomenu_display() {
if (hoverParent) {
hoverParent.addClass('hovering');
hoverBin = hoverParent.find('.muchomenu-bin');
/* display position */
//hoverBin.css('top', 'auto');
/* display position end */
animateIn(hoverBin);
}
}


function muchomenu_close(){

if (hoverParent) {
oldParentIdx = $('.muchomenu-parent').index(hoverParent);
}
for ( var i=0 ; i < megaParents.length ; i++ ) {
megaParents.eq(i).removeClass('hovering');
}
animateOut(hoverBin);
}

function checkHorizontalPosition(item) {
var parentOffset = item.parents('.muchomenu-parent').offset();
var screenWidth = $(document).width();
var itemPosition = item.position();
var padding = 30;

var p = item.width() + itemPosition.left + parentOffset.left + padding;
if (p > screenWidth) {
var newOffset = screenWidth - p;
item.css('left', newOffset + 'px');
}

}