



$(document).ready(
    function(){



DD_roundies.addRule('#primary * li a', '8px');

$(".ie7 #primary * li a").parent().css({
              paddingBottom:"8px"
            });
$(".ie8 #primary * li a").parent().css({
              marginBottom:"-2px"
            });

$(".ie6 #primary * li a").parent().css({
              paddingBottom:"6px"
            });


    $("#primary * li a").hover(
    function() {

        $(this).parent().css({
          backgroundImage:"url(http://miracletheatre.co.uk/themes/zen/images/miracle/menu_bg_bottom.gif)",
          backgroundRepeat:"no-repeat",
          backgroundPosition:"bottom center",
          height:"31px",
          opacity:0.3
        });

        $(this).css({
          backgroundColor:"#d80d89",
          opacity:0.3
        });

      $(this).animate({
        opacity: 1
      }, 200 );

      $(this).parent().animate({
        opacity: 1
      }, 200 );



      // $(this).corner();

    }, function() {

        $(this).css({
          backgroundColor:"transparent"
        });
        $(this).parent().css({
          backgroundImage:"none"
        });

        $("#primary * li .active").css({
           backgroundColor:"#d80d89"
         });
        $("#primary * li .active").parent().css({
              backgroundImage:"url(http://miracletheatre.co.uk/themes/zen/images/miracle/menu_bg_bottom.gif)",
              backgroundRepeat:"no-repeat",
              backgroundPosition:"bottom center",
              height:"31px"
            });

    });

    $("#primary * li .active").css({
      backgroundColor:"#d80d89"
    });
    $("#primary * li .active").parent().css({
          backgroundImage:"url(http://miracletheatre.co.uk/themes/zen/images/miracle/menu_bg_bottom.gif)",
          backgroundRepeat:"no-repeat",
          backgroundPosition:"bottom center",
          height:"31px"
        });
})