jQuery(document).ready(function($) {

	var base = 'body.page-node-20 div.field-items ';
	var h2_css = {
		'margin-bottom': '5px',
		'margin-top': '20px',
		'clear': 'left',
		'overflow': 'hidden'
	};
	$(base + 'h2').css(h2_css).before('<div style="clear:left;">');
	$(base + 'h2').first().css('margin-top', '0');
	var h3_css = {
		'margin-bottom': '5px',
		'font-size': '15px',
		'float': 'left',
		'width': '200px'
	};
	$(base + 'h3').wrapInner('<a href="#"></a>').css(h3_css);
	$(base + 'h3 a').click(function(e) {
		var distributor = $(this).parent().next('div.distributor');
		$('div.distributor').not(distributor).hide();
		$(this).parent().next('table').toggle();
		$(this).parent().next('p').toggle();
		distributor.toggle();
		var offset = $(this).offset();
		offset['top'] += 20;
		offset['left'] -= 15;
		distributor.offset(offset);

		e.preventDefault();
		e.stopPropagation();
	});
	
	$(base + 'h3 + table, ' + base + 'h3 + p').wrap('<div class="distributor">');
	$(base + 'div.distributor').hide();


});;

