$(document).ready(function(){

    $("#cart").corner();
    $("#mm a").corner();
    
    //$("#mmul").accordion();
	$(".thickbox ").click(function(){
                var largePath = $(this).attr("href");
                var largeAlt = $(this).attr("title");
				var newlink = $(this).attr("href").split('-large');
                $("#bigpic").attr({ src: largePath, alt: largeAlt });
				$("#shblink").attr({ href: newlink[0]+'.jpg'});
				//$("#it_right a").attr({"href": });
                Shadowbox.setup($("#shblink"));
				
                return false;});

	if($("#topcatshow").val()==22 || $("#topcatshow").val()==35)
	{
		$("#mmul li").hide(); 
		$("#cat_"+$("#topcatshow").val()).show();
		$("#cat_"+$("#topcatshow").val()+" li").show();
	}
	else
	{
		$("#cat_22").hide();
		$("#cat_35").hide();
	}
// menu sliding

    // hide all subs
    $("#mm ul ul ul").hide();

    // show selected and underlaying
    $("#mm a.selected").parent().parent().show();
    $("#mm a.selected").parent().find('>ul').show();
    $("#mm a.selected").parent().parent().parent().parent().show();

/*
    // Toggle on click
    $("#mm ul ul a").click(function() {
        if( $(this).parent().find('ul').length > 0 ) {
            $(this).next().slideToggle();
            return false;
        }
    });
*/

// menu sliding end

});

