﻿$(document).ready(function() {
$("[rel=menu]").hover(
    function() {
        $(this).stop(true, true).find("[rel=submenu]")
        .css("left", $(this).position().left - parseInt($(this).css("margin-left")))
        .css("top", $(".menucontent").position().top + $(".menucontent").innerHeight())
        .css("min-width", $(this).outerWidth(true) + parseInt($(this).css("margin-left")))
        .show();
    },
    function() {
        $(this).stop(true, true).find("[rel=submenu]").hide();
    }
    );
});
