$(function(){
    // teaser handling
    $(".mt1 .linkBox, .mt2 .linkBox, .mt7 .linkBox").hover(
      function () {
	$(this).stop().animate({
	    left: "0px"
	  }, 400 );
      },
      function () {
	$(this).stop().animate({
	    left: "240px"
	  }, 250 );
      }
    );
    $(".mt5 .linkBox").hover(
      function () {
	$(this).stop().animate({
	    right: "0px"
	  }, 400 );
      },
      function () {
	$(this).stop().animate({
	    right: "240px"
	  }, 250 );
      }
    );
    $(".mt71, .mt8").hover(
      function () {
	$(this).children('.fadeContent').stop().animate({
	    opacity: "1"
	  }, 10 );
      },
      function () {
	$(this).children('.fadeContent').stop().animate({
	    opacity: "0"
	  }, 250 );
      }
    );
    $('#SearchForm_SearchForm_Search').bind('focus', function(){
        if($(this).val()=='suchen...')
	    $(this).val('');
    });
    $('#SearchForm_SearchForm_Search').bind('blur', function(){
	if($(this).val()=='')
	    $(this).val('suchen...');
    });
    if($('#SearchForm_SearchForm_Search').val()=='')$('#SearchForm_SearchForm_Search').val('suchen...');


  // if firefox 3.5+, hide content till load (or 3 seconds) to prevent FOUT
    var d = document, e = d.documentElement, s = d.createElement('style');
    if (e.style.MozTransform === ''){ // gecko 1.9.1 inference
        s.textContent = 'body{visibility:hidden}';
	var r = document.getElementsByTagName('script')[0];
	r.parentNode.insertBefore(s, r);
	function f(){ s.parentNode && s.parentNode.removeChild(s); }
        addEventListener('load',f,false);
        setTimeout(f,3000);
    }

});

