Event.observe(window, 'load', function() {
  litems=$$('.leftbar li');
	if(litems.length>0)
	{
		activeitem=$$('.leftbar li.active').last();
		if(activeitem)
		{
		    activecolor=$w(activeitem.className).find(function(s){if(s!='active') return s; console.log(s)});
		    litems.each(function(s){
			    if(s!=activeitem){
				    Event.observe(s,'mouseover', function(){
					    this.addClassName(activecolor);
					    this.down('a').style.color='#ffffff';
				    });
				    Event.observe(s,'mouseout', function(){
					    this.removeClassName(activecolor);
					    this.down('a').style.color='#44555D';
				    });
			    }
		    });
		}
	}
	//ugly method for styling cform

	cblabel=$$('.cf-group-after');
	if(cblabel.length>0)
	{
		cblabel.each(function(s){s.insert({'after':'<hr />'})});
	}

	//submit button rollover
	Event.observe($('search_submit'), 'mouseover', function(){
		this.style.color='#ffffff';});
	Event.observe($('search_submit'), 'mouseout', function(){
		this.style.color='#44555D';});
});

