$(document).ready(function() {
                panelsLoaded = 1;
                Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded(PageLoaded)
        });

        

		function PageLoaded(sender, args)  {
		
		 $('#PanierVide').show('fast', function(){
				$('.btnListe').hide();
			});
		   
			<!-- $('#PanierVide').show('fast', function(){ -->
			<!--    $('.encartAvantages').hide(); -->
			<!-- }); -->
			
			$('#PanierVide').show('fast', function(){
			   $('.totalFacture').hide();
			});
			
			$('#PanierVide').show('fast', function(){
			   $('.divAvertissementChoixTypeReglementPanier').hide();
			});
			
			$('#PanierVide').show('fast', function(){
			   $('.pMentionsLegales').hide();
			});
			
				
			   $('.modalPopup div:empty').hide();
						
			   $('.modalPopup span:empty').hide();
			   
			  
			   
			   $('.modalPopup fieldset#fsChoixExtensionGarantie p.formulaireErreur span:empty').show();
			   
			   
			   $('.modalPopup li:empty').hide();
			 				
				   $('table.recapCommande th.thPanierLignePrix').each(function(){
					  if($(this).children('span:not(:empty)').length === $(this).children('span').length){
						$(this).css({ border: "1px solid #877863", background: "#EAE9E4", padding: "5" }); 
					}
				
				});

				$('.explicationsAvantage span:empty').hide();
				
				$("DIV.panelDetailReglementCredit UL LI.liAcompteCredit DIV.divMontant A").hover( 
				function() {
				$("div.panelDetailReglementAcompte").css('display', 'block');
				}, 
				function() {
				$("div.panelDetailReglementAcompte").hide(); 
				}
				);
				
				
				$("DIV.panelDetailReglementCredit UL LI.liMensualiteCredit DIV.divMontant A").hover(
				function() {
				$("div.panelDetailReglementMensualite").css('display', 'block');
				}, 
				function() {
				$("div.panelDetailReglementMensualite").hide();
				}
				);
			
			<!-- place div in the middle and be shure there is a scroll wiht a  fitted size on it wiht low screen resolution -->
			
			       jQuery.fn.center = function () {
					   if ((screen.width<=1024) && (screen.height<=768)) {
							 this.css("max-height","420px"); 
						     this.css("overflow-y","auto"); 
							 this.css("overflow-x","hidden"); 
					   }
      this.css("position","fixed");
      this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px");
      this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px");
      return this;
      } 
	
	  
}
