String.prototype.format = function()
{
	var pattern = /\{\d+\}/g;
	var args = arguments;
	return this.replace(pattern, function(capture){ return args[capture.match(/\d+/)]; });
}

var t;
//var menuIds = ['liProducts'];
//var subMenuIds = ['ulProducts'];

$.noConflict();

jQuery(document).ready(function() {


   
        jQuery('.dropdown').mouseover(function() {
          
            jQuery(this).find('#nav').fadeIn('fast');
			

            /*jQuery(subMenuIds).each(function(j) {
                if (i != j) {
                	$('#' + subMenuIds[j]).fadeOut('fast');
                }
            });*/
        });
		
		jQuery('.dropdown').mouseleave(function() {
			jQuery(this).find('#nav').fadeOut('fast');
			//t = setTimeout("this > 'ul').fadeOut('fast');".format(subMenuIds[i]), 0);
        });
   
});

