// JavaScript Document

var jump=function(e)
{
       //prevent the "normal" behaviour which would be a "hard" jump
       e.preventDefault();
       //Get the target
       var target = $(this).attr("href");
       //perform animated scrolling
       $('html,body').animate(
       {
               //get top-position of target-element and set it as scroll target
               scrollTop: '0'
       //scrolldelay: 2 seconds
       },500,function()
       {
               //attach the hash (#jumptarget) to the pageurl
               location.hash = target;
       });

}

 
jQuery(window).bind("load", function(){
$('a[rel=tipsy]').tipsy({fade: false, html:true, gravity: 'se'});
$('div[rel=tipsy]').tipsy({fade: false, html:true, gravity: 'se'});
$('a[href*=#]').bind("click", jump);
$('textarea').autogrow();
jQuery(document).ready(function($) {
  $('a[rel*=facebox]').facebox() 
})
});


