function dropdown(el, container)
{   
    if ($$('.' + container + ' .content')[0].empty() || $(el).hasClassName('active'))
	   return false;
	
    Effect.toggle(el, 'appear', {
	    duration: 0, 
	    afterFinish: function(){$(container).removeClassName('active');}
    });		
}

jQuery(document).ready(function() {
					
					jQuery("ul.gallery li").hover(function() { //On hover...
						
						var thumbOver = jQuery(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
						
						//Set a background image(thumbOver) on the &lt;a&gt; tag 
						jQuery(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
						//Fade the image to 0 
						jQuery(this).find("span").stop().fadeTo('normal', 0 , function() {
							jQuery(this).hide() //Hide the image after fade
						}); 
					} , function() { //on hover out...
						//Fade the image to 1 
						jQuery(this).find("span").stop().fadeTo('normal', 1).show();
					});
				
				});
