var imgCache = [];

$(window).ready(function() { CLL.init(); });

var CLL =
{
  init: function()
  {
    $('.jsshow').show();

    $('a.pu').click(function() { CLL.launchWindow($(this).attr('href')); return false; });
  },

  initHome: function()
  {
    var hidden = false;
    var timeout;

    $(window).ready(function()
    {
      $('#banner #slogan')
        .css('cursor', 'pointer')
        .hover(
          function() { $(this).find('a').css('text-decoration', 'underline') },
          function() { $(this).find('a').css('text-decoration', 'none') })
        .click(function()
        {
          $('#bigpic img').animate({ right: hidden ? 0 : 565 }, 550);
          hidden = !hidden;
        });
    });
  },

  launchWindow: function(url)
  {
    window.open(url, 'cll_window');
  },

  preLoadImage: function(src)
  {
    var img = document.createElement('img');
    img.src = src;
    imgCache.push(img);
  }
}
