var navigation_initial_top = 260;

Shadowbox.init({
    // skip the automatic setup again, we do this later manually
    skipSetup: true
});


$("document").ready( function() {
  headline_interval = setInterval(scroll_navigation,1200);

  $('div#search_bar input').click(function() {
    $(this).attr('value', "");
  });

  $("a.more_link").click(function() {
    $(this).hide().parent().hide().parent().children("p.full").show();
    return false;
  });

  $("a").focus(function() { $(this).blur(); });


  $("abbr").Tooltip();

    // set up all anchor elements with a "movie" class to work with Shadowbox
    Shadowbox.setup("a.movie", {
        autoplayMovies:     true,
	width: 600,
	height: 400
    });


});


function scroll_navigation() {
    var foo = $(document).scrollTop();
    if (foo > navigation_initial_top) {
      targetPadding = foo - navigation_initial_top;
    } else {
      targetPadding = 0;
    }
    $("div#navigation").animate({paddingTop: targetPadding}, "fast");
}



