
/*
 * Supersubs v0.2b - jQuery plugin
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 *
 * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
 * their longest list item children. If you use this, please expect bugs and report them
 * to the jQuery Google Group with the word 'Superfish' in the subject line.
 *
 */
  $(document).ready(function(){ 
      $("ul.sf-menu").supersubs({ 
          minWidth:    12,   // minimum width of sub-menus in em units 
          maxWidth:    27,   // maximum width of sub-menus in em units 
          extraWidth:  1,     // extra width can ensure lines don't sometimes turn over 
          delay:       0,                   // due to slight rounding differences and font-family
          speed:      'fast' 
      }).superfish();  // call supersubs first, then superfish, so that subs are 
                       // not display:none when measuring. Call before initialising 
                       // containing tabs for same reason. 
   	 
  
    $("#user_ville_id").change(function(){			    	
	    	 	url = document.URL;
	    		list_produit = $.ajax({
                    url: '/_ajax/produit/produit_list.php',
                    type: "POST",
            		data: "id_ville="+$('#user_ville_id').val()+"&url="+url ,
            		async: false
                }).responseText;
	$('#produit').html(list_produit);
});
 });

