﻿$(function(){
  makeRounded();
  
  $("#topTul").hover( toptulHoverIn, toptulHoverOut );
});

function makeRounded( ){
  $(".corners").each( function(index){
    var innerHtml = $(this).html();
    $(this).html( "<div class='tl'></div><div class='tr'></div>"
        + "<div class='bl'></div><div class='br'></div>" + innerHtml );
  });
}

function toptulHoverIn( object ){
  $(this).find(".menu").slideDown();
  return 0;
}

function toptulHoverOut( object ){
  $(this).find(".menu").slideUp();
  return 0;
}