$(function()
{
  $('.clickable').each(function()
  {
    var links = $('a', this);

    if (links.length)
    {
      $(this).bind('click', function()
      {
        document.location = links[0].href;
      });

      $(this).hover(function()
      {
        $(this).addClass('clickable-hover');
        window.status = links[0].href;
      }, function()
      {
        $(this).removeClass('clickable-hover');
        window.status = " ";
      });
    }
  });

  $('#block-faq li').each(function()
  {
    var jself = $(this);
    jself.css('cursor', 'pointer');

    $(this).click( function(){ jself.toggleClass('active'); });
    $(this).hover( function(){ jself.addClass('hover'); },
                   function(){ jself.removeClass('hover'); });
  });

  $('a.dialog').each(function()
  {
    $(this).jqm(
    {
      ajax: this.href
    });

  });

  // IE6 down only:

  if ( typeof document.body.style.maxHeight == "undefined" )
  {
    // hovery
    $('#sidelinks li, #box-newsletter button').hover( function()
    {
      $(this).addClass('hover');
    }, function()
    {
      $(this).removeClass('hover');
    });
  }
  /* }}} */
  
    
	$('input[@type=submit]').each(function()
    { 
      this.oldVal = $(this).val();
      $(this).val("").click(function(e){ this.value = this.oldVal; });
    });


});


document.write('<style type="text/css">'+
  '.jshide { display: none; }'+
'</style>');
