//---------------------------------------------------------------------------------------

/* News-Links */

$(document).ready(function (){
 $("#news-archiv li a").hover(function() {
    $(this).hoverFlow('mouseenter', { 
	    left: '-=8px',
		}, 200);
  }, function() {
    $(this).hoverFlow('mouseleave', {
	    left: '+=8px',
		}, 300);
  });
});

$(document).ready(function (){
 $("#news-archiv li a:odd").css("background-color", "#f7f7f7");
});

//---------------------------------------------------------------------------------------

/* Subnavi-Links */

$(document).ready(function (){
 $("#content-subnavi li a").hover(function() {
    $(this).hoverFlow('mouseenter', { 
	    left: '-=8px',
		}, 200);
  }, function() {
    $(this).hoverFlow('mouseleave', {
	    left: '+=8px',
		}, 300);
  });
});

//---------------------------------------------------------------------------------------

/* Media-List */

$(document).ready(function (){
 $("#media-list li:odd").css("background-color", "#f7f7f7");
});

//---------------------------------------------------------------------------------------

/* Openings-Animation */


$(document).ready(function (){
 $(".openings .data").animate({
    top: '-=380',
  }, 20000);
});

//---------------------------------------------------------------------------------------

/* Token */

function show_token (){
 $("#wrapper-site").prepend('<div id="site-shadow"></div>');
 $("#site-shadow").fadeIn("slow");
 $("#site-shadow").prepend('<div id="token"></div>');
 $("#token").fadeIn("slow").animate({opacity: 1, top: "50px"}, 1000 );
 $("#token").load("includes/token.inc.php");
}

function close_token (){
 $("#token").animate({top: "-50px"}, 1500 ).fadeOut("slow");
 $("#site-shadow").fadeOut("slow");
}
