/* Lazyload */
/*jQuery(document).ready(function($){
  jQuery(".story-single img").lazyload({
    effect:"fadeIn",
    placeholder: "<?php bloginfo('template_directory'); ?>/scripts/white.gif"
  });
}); */
/* Image Fades */
$(document).ready(function(){
	$("#content a img, #footer a img").hover(function(){
	$(this).fadeTo("slow", 0.8);
	},function(){
	$(this).fadeTo("slow", 1.0);
	});
});
/* Searchfield Clearfix */
function clearField(fld) {
  if (fld.value == "Suche") fld.value = "";
}
/* scroll to top */
$(document).ready(function() {
	$('a.top').addClass('hidden');
	$('#placeholder-top').waypoint(function(event, direction) {
		/*alert("Element wurde erreicht.");*/
		$('a.top')/*.fadeTo("slow", 1.0)*/.toggleClass('hidden', direction === "up")
	}, {
		offset: '-100%'
	});
});


