var activ, sub_activ;
window.addEvent('domready', function() {

	// create our Accordion instance
		var myAccordion = new Accordion($('accordion'), 'h3.toggler',
				'div.element', {
					opacity :false,
					display: -1,
				    alwaysHide: true,
					onActive : function(toggler, element) {
						toggler.setStyle('color', '#41464D');
					},
					onBackground : function(toggler, element) {
						toggler.setStyle('color', '#528CE0');
					}
				});
	});
function showcontent(link, i) {
	// alert(link);
	var destination = document.getElementById("col3_content_" + i);
	for ( var j = 1; j <= 7; j++) {
		document.getElementById("col3_content_" + j).style.display = 'none';
		if (j != i) {
			document.getElementById("pic_" + j).setAttribute('src',
					'img/' + j + '.gif');
		}
	}
	// document.getElementById("pic_" + i).setAttribute('src', 'img/' + i +
	// '_active.gif');
	destination.style.display = 'block';
}
function swapImage(obj, imgsrc) {
	if (activ != obj && sub_activ != obj) {
		document.getElementById('pic_' + obj).src = imgsrc;
	}
}
