﻿$(document).ready(function() {
$("[rel=menu]").hover(
    function() {
        $(this).stop(true, true).find("[rel=submenu]")
        .css("left", $(this).parent().position().left)
        .css("top", $(this).parent().position().top + $(this).parent().outerHeight())
        .width($(this).parent().outerWidth() + "px")
        .show();
    },
    function() {
        $(this).stop(true, true).find("[rel=submenu]").hide();
    }
    );
});
