$(document).ready(
  function()
  {
    $('.piece#tl').animate({
      left: '417px',
      top: '219px'
    },1500)
    $('.piece#tr').animate({
      right: '405px',
      top: '218px'
    },1500)
    $('.piece#bl').animate({
      left: '417px',
      bottom: '134px'
    },1500)
    $('.piece#br').animate({
      right: '405px',
      bottom: '108px'
    },1500)
    $('.feature').hover(
    function()
    {
      $(this).find('span').stop().animate({
        top:'0'
      });
    },
    function()
    {
      $(this).find('span').stop().animate({
        top:'110px'
      })
    }
    );
    $('#ntc .nav').newsticker();
    $('.linkspage li a').fancybox({
      'type'          :   'iframe',
      'height'        :   '80%',  
      'width'         :   '50%'
    });
    $('.fb-image').fancybox();
    $('.person').hide();
    $('.phead:first').nextAll().each(function() {
        if ($(this).hasClass('phead')) {
          return false; // stop execution
        }
        $(this).show();
    });
    $('.phead').click(function() {
      $('.person').animate({height: '0px'});
      $(this).nextAll().each(function() {
        if ($(this).hasClass('phead'))
        {
          return false; // stop execution
        }
        $(this).show('fast',function(){
          $(this).animate({height: '275px'});
        });
      });
    });
    $('.ccm-block>.person').css({display: 'block'});
  }
);
