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');}
    });		
}

function cataloglist() {
	var ele = document.getElementById("catalog-listing").getElementsByTagName("LI");
	for (var i=0; i<ele.length; i++) {
		ele[i].onmouseover=function() {
			this.className+=" over";
		}
		ele[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}

	var ele = $$('.listing-item');
	for (var i=0; i<ele.length; i++) {
		ele[i].onmouseover=function() {
			this.className+=" over";
		}
		ele[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}