 $(document).ready(function(){ 

				//Caption Sliding (Partially Hidden to Visible)
				$('.boxgrid.caption').hover(function(){
						$(".cover", this).stop().animate({top:'90++-px'},{queue:false,duration:150});
				}, function() {
						$(".cover", this).stop().animate({top:'119px'},{queue:false,duration:150});
				});
	
		});
$(function() {

    var $el, topPos, newheight;
      
    
    /* Add Magic Line markup via JavaScript, because it ain't gonna work without */
    $("#menu").append("<li id='magic-line'></li>");
    
    /* Cache it */
    var $magicLine = $("#magic-line");
    
    $magicLine
        .height($(".current_page_item").height())
        .css("top", $(".current_page_item a").position().top)
        .data("origtop", $magicLine.position().top)
        .data("origheight", $magicLine.height());
        
    $("#menu li").find("a").hover(function() {
        $el = $(this);
        topPos = $el.position().top;
        newheight = $el.parent().height();
        
        $magicLine.stop().animate({
            top: topPos,
            height: newheight
        });
    }, function() {
        $magicLine.stop().animate({
            top: $magicLine.data("origtop"),
            height: $magicLine.data("origheight")
        });    
    });
	
	$("ul#sub-level li").hover(function() {
                $magicLine.stop().animate();
                $("#magic-line").css('visibility', 'visible');

         }, function() {
                $("a.suba").css('color', '#fff'); 
                $("#magic-line").css('visibility', 'visible');
                leftPos = $el.position().left;
        newheight = $el.parent().width();

        });

    /* Kick IE into gear */
    $(".current_page_item_two a").mouseenter();
    
});										
