$(document).ready(function ()
  {
    $(document).pngFix();

    $('div#titles').show();
    
    $('div#titles').cycle(
    {
      timeout:       2000,  // milliseconds between slide transitions (0 to disable auto advance)
      speed:         2000,  // speed of the transition (any valid fx speed value)
      next:          null,  // id of element to use as click trigger for next slide
      prev:          null,  // id of element to use as click trigger for previous slide
      before:        null,  // transition callback (scope set to element to be shown)
      after:         null,  // transition callback (scope set to element that was shown)
      height:       'auto', // container height
      sync:          true,  // true if in/out transitions should occur simultaneously
      fit:           0,     // force slides to fit container
      pause:         0,     // true to enable "pause on hover"
      delay:         0,     // additional delay (in ms) for first transition (hint: can be negative)
      slideExpr:     null  // expression for selecting slides (if something other than all children is required)
    });

    $('a[rel=colorbox]').colorbox({width:"500px", height:"80%", iframe:true});

    $('ul#menulist img').hover(function()
    {
      src = $(this).attr('src');
      newsrc = src.replace(/_a/, '_b');
      $(this).attr('src', newsrc);
    }, function()
    {
      $(this).attr('src', src);
    });

    $('ul#toplinks a, a#newsarchivelink').hover(function()
    {
      $(this).css("background-image", "url('/img/arrow_right_active.gif')");
    }, function()
    {
      $(this).css("background-image", "url('/img/arrow_right.gif')");
    });

  });
