
$(document).ready(function() {

  $("ul.sf-menu").supersubs({ 
	  minWidth:    12,   // minimum width of sub-menus in em units 
	  maxWidth:    24,   // 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:         '0',
	  speed:         'fast',
	  onShow:             function() {     $(this).parent('li').addClass('hover');   }, 
	  onHide:             function() {  $(this).parent('li').removeClass('hover');  }
  });  // call supersubs first, then superfish, so that subs are 
					 // not display:none when measuring. Call before initialising 
					 // containing tabs for same reason. 
	$('#banner_rotate').crossSlide({
	  sleep: 5,
	  fade: 1
	}, [
	  { src: '/images/header-bg1.gif' },
	  { src: '/images/header-bg2.gif' },
	  { src: '/images/header-bg3.gif' },
	  { src: '/images/header-bg4.gif' },
	  { src: '/images/header-bg5.gif' }
	]);
});
