var menuSelector = Class.create(
{
	initialize: function(obj)
	{
		var self = this;
		this.obj = obj;
		
		this.allJsActive = $$('.'+this.obj.jsActive);
		this.allJsElmActive = $$('.'+this.obj.jsElmActive);
		
		if(this.allJsElmActive.length == 0){
			if(this.allJsActive.length == 1){
				var AlljsSelectElm = $$('.'+this.obj.jsActive+' .'+this.obj.jsSelectElm);
				if(AlljsSelectElm.length != 0){
					$(AlljsSelectElm)[0].addClassName('articlesMenuActive');
				}
			}
		}
		
	}

});

Event.observe(document, 'dom:loaded', function()
{
	if($('leftContent')){
		var newMenuSelector = new menuSelector(
		{
			jsActive : 'jsActive',
			jsSelectElm : 'jsSelectElm ',
			jsElmActive : 'articlesMenuActive'
		});
	}
	
});
