$(document).ready(function(){ 
    $("ul.sf-menu").supersubs({ 
        minWidth:    16,   // minimum width of sub-menus in em units 
        maxWidth:    20,   // 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:       100,  // one second delay on mouseout 
		animation:   {height: 'show'},  // fade-in and slide-down	
		speed:       1,                          // faster animation speed 
		autoArrows:  true,                           // disable generation of arrow 
		dropShadows: true                            // disable drop shadows
	
});  
});
$(function() {
	$( ".accordion" ).accordion({ 
		
		collapsible: true,
		active: false
		
		});
});
$(function() {
	$( "#tabs" ).tabs({ 
		spinner: 'Retrieving data...', 
		fx: { opacity: 'toggle' }
		});
});
$(function() {
    $('img[data-hover]').hover(function() {
        $(this).attr('tmp', $(this).attr('src')).attr('src', $(this).attr('data-hover')).attr('data-hover', $(this).attr('tmp')).removeAttr('tmp');
    }).each(function() {
        $('<img />').attr('src', $(this).attr('data-hover'));
    });;
});
