﻿var hDescr = 0;

$(window).load(function(){  
	hDescr = $('#FormView3 .temoignages').height();
    u = window.location.search.substring(1);
    tab = u.split('&');
    if (tab.length > 1) {
        tab2 = tab[1].split('=');
        if (tab2[0]=="t" && tab2[1]==1) showDescr();
		
    }
});

function showDescr() {
	hDescr = $('#FormView3 .temoignages .txtDescr').height();
   /* $('#FormView3 .temoignages').css( "margin-bottom", "0" );*/
    $('#FormView3 .temoignages .txt .acr a').fadeOut('slow');
	/*$('#FormView3 .temoignages .txt .acr .masquer').fadeIn('slow');*/
	 /*$('#FormView3 .temoignages').css("height","900px");*/
    $('#FormView3 .temoignages').animate({ 
			height: (hDescr+"px")
		  }, 500 );
	$('#FormView3 .temoignages .txt').animate( { height: '90px' }, 500);
	
}


function hideDescr() {
    hDescr = $('#FormView3 .temoignages .txtDescr').height();
    $('#FormView3 .temoignages .txt .acr a').fadeIn('slow');
	/*$('#FormView3 .temoignages .txt .acr .masquer').fadeOut('slow');*/
    $('#FormView3 .temoignages').animate({ 
			height: "160px"
		  }, 500 );
	$('#FormView3 .temoignages .txt').animate( { height: '150px' }, 500);
	
}
