Yes, your dropdownmenu is passing a reference to the image object that is being hovered over. Use that reference to find the parent div. Since you have not supplied the code for your dropdownmenu function, I will assume that this reference is named obj.
function dropdownmenu(obj, e, p, px) {...