$(document).ready(function() {


$('[title]').mouseover(function(event) {
  var ww = getWW();
  x = event.pageX;
  if (x+220 > ww)
  x = ww - 220;
  y = event.pageY+20;
  tit = this.title;
  $(this).attr('title','');
  $('#hintcontainer').css('left',x).css('top',y);
  $('#hintcontainer').html(tit);
}).mousemove(function(event) {
  var ww = getWW();
  x = event.pageX;
  if (x+220 > ww)
  x = ww - 220
  y = event.pageY+20;
  $('#hintcontainer').css('left',x).css('top',y);
}).mouseout(function() {
  $('#hintcontainer').css('left',-1000).css('top',-1000);
  $(this).attr('title',tit);
});

$('#teaser').click(function(event) {
  var ww = getWW();
  x = ww - 300;
  y = event.pageY-15;
  $('#teaser').hide();
  $('#teaser_inh').hide();
  $('#teaser_inh').css('left',x).css('top',y);
  $('#teaser_inh').slideDown();
  return false;
});

$('#click').click(function() {
  $('#teaser_inh').hide();
  $('#teaser').show();
})

}); 
