window.addEvent
(
	"domready",
	function()
	{
		var anchors = $$("a");
		anchors.each
		(
			function(anchor, i)
			{
				if (anchor.href && anchor.href.substr(0, 7) == "http://" && anchor.href.indexOf("lanierlawfirm.com") < 0)				
				{
					anchor.target = "_self";
				}
			}
		);


		var acc_height = 220;		
		pngfix();
    		togs = $ES('#lawyers a.mainlevel');
		elms = $ES('#lawyers div.list');
		
		var accord = new Accordion
		(
			togs, 
			elms, 
			{
				'onActive': function(tog, el) { tog.addClass('active'); },
				'onBackground': function(tog, el) { tog.removeClass('active'); },
				'fixedHeight': acc_height,
				'show': 0
			} 
		);
		elms.each
		(
			function(el, i)
			{
				if (el.scrollHeight > acc_height) el.setStyle('overflow', 'auto');
			}
		);
    }
);
