$j = jQuery.noConflict();
$j(document).ready(function() { 
	$j("ul#nav").supersubs({ 
        minWidth:    12,   // minimum width of sub-menus in em units 
        maxWidth:    27,   // maximum width of sub-menus in em units 
        extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                           // due to slight rounding differences and font-family 
    }).superfish({delay:       750,                            
            animation:   {opacity:'show'},  
            speed:       'fast',                         
            autoArrows:  false,                          
            dropShadows: false,
            onBeforeShow: function() {
                $j("#nav.nav-left").css("left",-250); // in this case shifts the last sub menu  to avoid extending beyond  main container
            }}); 
	$j("#chained").scrollable({circular: true, mousewheel: true}).navigator().autoscroll(5500);	
    
    $j("img[rel]").overlay();
    
    $j("#case").tooltip({

    	// place tooltip on the right edge
    	position: "top right",

    	// a little tweaking of the position
    	offset: [-5, 10],

    	// use the built-in fadeIn/fadeOut effect
    	effect: "fade",

    	// custom opacity setting
    	opacity: 0.9});
}); 
