	
	
   /* <![CDATA[ */
	
		$(document).ready(function(){    	
	  
      $("td.messageStackError").fadeIn("slow").delay(5000).slideUp();	
      $("td.messageStackSuccess").fadeIn("slow").delay(5000).fadeOut("slow");	
	  	
			$(".loginBoxTrigger").hover(function(){
			     $("#loginBox").fadeIn("fast");
			     $(".loginBoxMouseOutTrigger").addClass("now-hovering");
			});
			
			$(".loginBoxMouseOutTrigger").mouseenter(function(){
				 $(".loginBoxMouseOutTrigger").addClass("now-hovering");
         $("#loginBox").addClass("now-hovering");				 
			});			  
			    		
      $(document).mouseup(function(e) { 
          if($(e.target).parents().index($('.loginBoxMouseOutTrigger')) == -1) {
              $("#loginBox").fadeOut();
          }        
      });
      
      $(".accord_trigger").click(function(){
       if ($(this).hasClass("closed_accord")) {
          $(this).attr('src','images/close_accord.gif');
          $(this).removeClass("closed_accord");
          $(this).addClass("open_accord");
          $(this).nextAll(".ul_accord").slideDown();
       } else {
           $(this).attr('src','images/open_accord.gif');
           $(this).removeClass("open_accord");
           $(this).addClass("closed_accord");
           $(this).nextAll(".ul_accord").slideUp();              
       } 
        
       
      });           
      $("#fold_all").mouseup(function(){
          $(".ul_accord").slideUp();
      }); 
      $("#unfold_all").mouseup(function(){
          $(".ul_accord").slideDown();
      });
			//Example of preserving a JavaScript event for inline calls.
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
			

     $(".appear2").fadeOut("fast");
     $(".appear2").fadeIn("fast");
     $(".appear2").fadeOut("fast");
     $(".appear2").fadeIn("fast");
          
		 $("#usersearch").attr( "autocomplete", "off");
		 $(".autocomp_off").attr( "autocomplete", "off");
		 
		 $(".ligne").attr( "autocomplete", "off");
     $('#usersearch').keyup(function() {
     
  		if ($('#usersearch').val().length < 3) {
  			// Hide the suggestion box.
  			$('#suggestions').hide();
  		} else {  		
  			$.post("ste_search_rpc.php", {queryString: ""+$('#usersearch').val()+""}, function(data){
  				if(data.length >0) {
  					$('#suggestions').fadeIn('fast');
  					$('#autoSuggestionsList').html(data);
  				}
  			});
  		}
  	});
  	
  	$('#usersearch').blur(function() {
  		setTimeout("$('#suggestions').fadeOut();", 200);
  	});
			
      $(".suggestionList li").click(function() {
          document.location.href = $(this).find("a").attr("href");
      });    
        	
  
      
      $(".sousCatego").click(function() {
          document.location.href = $(this).find("a").attr("href");
      });                      
      
      
      $("#qty_master").keyup(function() {
           $(".qty_method").val() = $("#qty_master").val();     
      });
      
	    $(".moduleRow2").mouseout(function() {    
			    $(this).addClass('moduleRow2');
			    $(this).removeClass('moduleRowOver2');		 
			});	      		
      $(".moduleRow2").click(function() {     
          $(".moduleRowSelected2").addClass('moduleRow2');           
          $(".moduleRow2").removeClass('moduleRowSelected2');	          
          $(this).find('input').attr('checked',true);
          $(this).addClass('moduleRowSelected2');
          $(this).removeClass('moduleRow2');
          if ($(this).hasClass('tntrc') == false )	$('#tntB2CRelaisColis').slideUp();           
      });	
        
      
      // Click sur div
      $(".link_inside").click(function() {          
         document.location.href = $(this).find("a").attr("href");
      });            

     $('.buttonHautPage').click(function () {
         var jselector="html,body";
         if ((jQuery.browser.msie && jQuery.browser.version <= 7)) {
            jselector="html";
         }
        jQuery(jselector).animate({ scrollTop: 1+"px" }, 'slow',function(){
            document.documentElement.scrollTop=1;
        });
        return true;
    });
    
    $('.plusInfosProd').click(function () {
         var jselector="html,body";
         if ((jQuery.browser.msie && jQuery.browser.version <= 7)) {
            jselector="html";
         }
         var pos= $('.buttonHautPage').position();
        jQuery(jselector).animate({ scrollTop: pos.top+"px" }, 'slow',function(){
            document.documentElement.scrollTop= pos.top;
        });
        return true;
    });   
      
		
    }
    );


/* ]]> */			

