﻿// This makes the Logo clickable - and updates the statusbar
$(document).ready(function()
{
  //$("div#supersize").supersize();

  var logo = $("#logo");
  logo.click(function() { window.location = $(this).find("a:first").attr("href") } );
  //logo.hover(function() { window.status = $(this).find("a:first").attr("href") }, function() { window.status = "" });
  logo.hover(function() { window.status = "Hjem/Home/Start" }, function() { window.status = "" });
  
  // Setup alternate (zebra-stripes) row background on rating table
  $(".ratingtable tr:even").addClass("alt");
  
  sorttable.init();

  // Handler to clear default search-text in search bar.  
  $("#search-text").click(function()
  {
    if( $(this).val() == "Søg..." || $(this).val() == "Search..." )
      $(this).val("");
  });
  
  // Bueatify <pre class="code"><code class="cpp">...</code></pre> elements
  $.beautyOfCode.init({ brushes: ['Cpp'] });
});

// This makes the Logo clickable - and updates the statusbar
$(window).load(function()
{
  addCaps();
});

