function doClear(theText) {
	if (theText.value == theText.defaultValue) theText.value = "";
}

// TRX jquery stuff
jQuery.noConflict();

jQuery(document).ready(function($) {

	// on load, hide "to top" link
	$('#totop').fadeOut(0);
  var totop_visible = false;
	      
  var const_showatfraction = 0.5;
  var const_fadetime = 1000;
      
	// show "to top" link when content is scrolled
	$(window).scroll(function () {
      
    var winheight = $(window).height();
    var scrolltop = $(window).scrollTop();
    
    if (scrolltop > winheight*const_showatfraction) {
      if (!totop_visible) $('#totop').fadeIn(const_fadetime );
      totop_visible = true;
    } else {
      if (totop_visible) $('#totop').fadeOut(const_fadetime );
      totop_visible = false;
    }
      
  });
  
  // modify 'continue reading' link
  $('a.more-link').addClass('rounded-corners').html('Weiterlesen &raquo;');

});

