$(document).ready(function() {
/*
$('a').each(function() {
    var a = new RegExp('/' + window.location.host + '/');
    if(!a.test(this.href)) {
  $(this).click(function(event) {
      event.preventDefault();
      event.stopPropagation();
      window.open(this.href, '_blank');
  });
    }
});
*/


$('#shortnews').hover(
    function () {
  $('#container').animate({opacity:0.2},'fast',function(){});
  $('#shortnews').css("background-color","#ffffff");
  $('#shortnews').animate({height:'335px',borderBottomWidth:'2px'}, 'fast', function(){});
    },
    function () {
  $('#shortnews').animate({height:'52px',borderBottomWidth:'0px'}, 'fast', function(){});
  $('#container').animate({opacity:1.0},'fast',function(){});
    }
);

$('.newsline').mouseover(function(){
  $('#shortteaser').html($(this).next().html());
});

$('#keyimageredres').hover(
    function () {
  $('#rightcontainer').animate({opacity:0.0},'fast',function(){});
  $('#keyimagered').animate({height:'200px'},'fast',function(){});
    },
    function () {
  $('#rightcontainer').animate({opacity:1.0},'fast',function(){});
  $('#keyimagered').animate({height:'72px'},'fast',function(){});
    }
);

});

function eventopener(uid)
  {
    if($('#eventmore'+uid).is(":hidden"))
    {
      $('.moreinfo').hide('slow', function() {});
      $('#eventmore'+uid).show('slow', function() {});
    }
    else
      $('#eventmore'+uid).hide('slow', function() {});
  }
