﻿$(document).ready(function () {

  $('ul#news').innerfade({
    speed: 500,
    timeout: 5000,
    type: 'sequence',
    containerheight: '50px'
  });


  $('#block1click').toggle(function () {
    $('#block1').animate({ height: '380px' }, 500);
    $('div.#block1click').html('[close]');
  }, function () {
    $('#block1').animate({ height: '120px' }, 500);
    $('div.#block1click').html('[read more]');
  });

  $('#block2click').toggle(function () {
    $('#block2').animate({ height: '700px' }, 500);
    $('div.#block2click').html('[close]');
  }, function () {
    $('#block2').animate({ height: '120px' }, 500);
    $('div.#block2click').html('[read more]');
  });

  $('#block3click').toggle(function () {
    $('#block3').animate({ height: '440px' }, 500);
    $('div.#block3click').html('[close]');
  }, function () {
    $('#block3').animate({ height: '120px' }, 500);
    $('div.#block3click').html('[read more]');
  });

  $('#block4click').toggle(function () {
    $('#block4').animate({ height: '700px' }, 500);
    $('div.#block4click').html('[close]');
  }, function () {
    $('#block4').animate({ height: '120px' }, 500);
    $('div.#block4click').html('[read more]');
  });

  $('#block5click').toggle(function () {
    $('#block5').animate({ height: '340px' }, 500);
    $('div.#block5click').html('[close]');
  }, function () {
    $('#block5').animate({ height: '120px' }, 500);
    $('div.#block5click').html('[read more]');
  });

  $('#block6click').toggle(function () {
    $('#block6').animate({ height: '400px' }, 500);
    $('div.#block1click').html('[close]');
  }, function () {
    $('#block6').animate({ height: '120px' }, 500);
  });

});