// JavaScript Document

jQuery.noConflict();

jQuery(document).ready(function($){
	
	$("a#ie-warning-anchor").colorbox({
		inline           : true,
		fixed            : true,
		width            : 600,
		opacity          : 0.7,
		open             : true
	});
	
	$(".avm-colorbox").colorbox({
		opacity          : 0.75,
		current          : "{current} of {total}"
	});
	
	// Add last-child class to last child elements of li
    // Helpful for old browsers that do not support the last-child pseudo-class
	$("ul li:last-child").addClass('last-child'); 
	
	// top navigation drop-down menu
    jQuery("ul.sf-menu").supersubs({ 
        minWidth:    12,                                // minimum width of sub-menus in em units 
        maxWidth:    27,                                // maximum width of sub-menus in em units 
        extraWidth:  2                                  // extra width can ensure lines don't sometimes turn over 
                                                        // due to slight rounding differences and font-family 
    }).superfish({ 
        delay:       400,                               // delay on mouseout 
        animation:   {height:'show'},                   // slide-down animation 
        speed:       'fast',                            // faster animation speed 
        autoArrows:  true,                              // enable generation of arrow mark-up 
        dropShadows: false                              // disable drop shadows 
    });
	
});
