$(document).ready(function() {

    $('#fbBack').mouseenter(function() {
		$(this).parent().parent().find("#fbWrapper").animate({marginLeft: 0},'slow');
		$('#fbBack').animate({opacity: 0},'slow');
    });
	
	$('#fbBack').click(function() {
		$('#fbBack').animate({opacity: 100},'slow');	
		$(this).parent().parent().find("#fbWrapper").animate({marginLeft: -500},'slow');
    });
	
	centerPostion = (($('body').height() - $("#fb").height()))/2;
		if (centerPostion > 0) $("#fb").css('top',centerPostion);
	
	//$("#fb").mouseleave(function() {
   //         $(this).parent().parent().find("#fbWrapper").animate({marginLeft: -500},'slow');
   // });
});
