/*
 *	faded 0.3.1 - jQuery plugin
 *	written by Nathan Searles	
 *	http://nathansearles.com/faded/
 *
 *	Copyright (c) 2009 Nathan Searles (http://nathansearles.com/)
 *	Dual licensed under the MIT (MIT-LICENSE.txt)
 *	and GPL (GPL-LICENSE.txt) licenses.
 *
 *	Built for jQuery library
 *	http://jquery.com
 *	Compatible with jQuery 1.3.2+
 *
 */
if(typeof jQuery != "undefined") {
	jQuery.fn.fadeIn = function(speed, callback) { 
     return this.animate({
          opacity: 'show' }, speed, function() { 
               if (jQuery.browser.msie) 
                    this.style.removeAttribute('filter'); 
               if (typeof callback == 'function') 
                    callback();
     }); 
};

jQuery.fn.fadeOut = function(speed, callback) { 
     return this.animate({
           opacity: 'hide' }, speed, function() { 
               if (jQuery.browser.msie) 
                    this.style.removeAttribute('filter'); 
               if (typeof callback == 'function') callback();
     }); 
}; 

jQuery.fn.fadeTo = function(speed,to,callback) { 
     return this.animate({opacity: to }, speed, function() { 
          if (to == 1 && jQuery.browser.msie) 
               this.style.removeAttribute('filter'); 
          if (typeof callback == 'function') callback(); 
     }); 
};
jQuery(document).ready(function() {
	jQuery("ul.nav li").hover(
	  function () {
	  		var myID = jQuery(this).attr('class');
			var myWidth = jQuery(this).width();
			jQuery('li.' + myID).css('width',myWidth);
			jQuery('ul.' + myID).addClass('visible');
			jQuery('ul.' + myID).fadeIn('fast');
			return false;

	  }, 
	  function () {
	  var myID = jQuery(this).attr('class');
		jQuery('ul.' + myID).removeClass('visible').fadeOut('fast');
		return false;
		}
	);

});
}
