$(document).ready(function(){


$(".teh tr").mouseover(function() {$(this).addClass("over");}).mouseout(function() {$(this).removeClass("over");});
$(".teh tr:even").addClass("zebra");

$("tr.r > td:first-child").css("text-align", "left");

var resizeTimer = null;

 $(window).bind('resize', function() {
  if (resizeTimer) clearTimeout(resizeTimer);
    resizeTimer = setTimeout(doSomething, 200);
  });


jQuery(document).ready(function(){
  if (resizeTimer) clearTimeout(resizeTimer);
     resizeTimer = setTimeout(doSomething, 100);
  });


function doSomething() {
var resizeSize = $(document).height()-($("body").height()-$("#end").height());

if(resizeSize<200) resizeSize=246;
$("#end").height(resizeSize);

if ((resizeSize-412)/2>0) $("#main").css("top",(resizeSize-412)/2);

};




	var top = -126;
	var easing = 'easeInSine';
	
	$('#describe').toggle(
        function() {
		$('#contact').animate({'top' : 0}, {queue:false, duration:1000, easing: easing});

                $('#describe').css("background-position", "0 -43px");
	},
	
	function() {
		$('#contact').animate({'top' : top}, {queue:false, duration:500, easing: easing});
                $(this).css("background-position", "0 0");
	}
);


});





