/*var slideshow = new Array()
slideshow[0] = ["images/slideshow/0.jpg", "", ""]
slideshow[1] = ["images/slideshow/1.jpg", "", ""]
slideshow[2] = ["images/slideshow/2.jpg", "", ""]

var sponsors = new Array()
sponsors[0] = ["images/logos/sponsors/0.bmp", "", ""]
sponsors[1] = ["images/logos/sponsors/1.bmp", "", ""]
*/

jQuery(document).ready(
function()
{
   jQuery(".topMenuItem").hover(
   function()
   {
      jQuery(this).find('ul:first').fadeIn('fast');
   },
   function()
   {
      jQuery(this).find('ul:first').fadeOut('slow');
   });
});

jQuery(document).ready(
function()
{
   jQuery("li.topMenuItem").each(
   function ()
   {
      var width = jQuery(this).width();
      jQuery(this).width(width);
   });
});

jQuery(document).ready(
function()
{
   jQuery("ul.topSubmenu").each(
   function ()
   {
      var length = 0;
      jQuery(this).find("a.topSubmenuItem").each(
      function ()
      {
         if (jQuery(this).text().length > length)
            length = jQuery(this).text().length;
      });
      jQuery(this).width(Math.round(length*8));
   });
});


jQuery(document).ready(function() {
	jQuery('.boardtitle').click(function() {
	  jQuery(this).next('.boardmembers').slideToggle('slow');
	});
});

/*BACKUP!

jQuery(document).ready(
   function()
   {
      jQuery(".topMenuItem").hover(
      function()
      {
         jQuery(this).find('ul:first').fadeIn('fast');
      },
      function()
      {
         jQuery(this).find('ul:first').fadeOut('slow');
      });
   });

jQuery(document).ready(
   function()
   {
      jQuery("li.topMenuItem").each(
      function ()
      {
         var width = jQuery(this).width();
         jQuery(this).width(width);
      });
   });

jQuery(document).ready(
   function()
   {
      jQuery("ul.topSubmenu").each(
      function ()
      {
         var length = 0;
         jQuery(this).find("a.topSubmenuItem").each(
         function ()
         {
            if (jQuery(this).text().length > length)
               length = jQuery(this).text().length;
         });
         jQuery(this).width(Math.round(length*8));
      });
   });*/