$(document).ready(function(){

  $('#viesti-info-dialog').removeClass('static');

  // ei näytetä näytetä uutisen tekstiä suoraan
  $('#little-news li div').css("display", "none");
  // asetetaan otsikko linkittämään sisältöön
  $('#little-news h4 a:not(.no-colorbox)').each(function() {
    var href = $(this).attr('rel');
    $(this).attr('href', href);
  });

  $('#little-news li h4 a:not(.no-colorbox)').colorbox({ 'opacity' : 0.1, 'width': "400px" });

  $('a#viesti-help').colorbox({ 'opacity' : 0.1, 'width': "400px" });

  // jos javascript käytössä ei näytetä hr
  $('#ratkaisut hr').detach();
  $('#ratkaisut').accordion({ 'active' : false, 'collapsible' : true });

  $('#referenssit a.refimg').colorbox({ 'opacity' : 0.5 });

  $('.hilight').effect("highlight",{},1500);

  $('#message_form textarea').resizable({ handles: 's', minHeight: 325 });
  
  $('#content > .inner').addClass('maincontainer');

});
