function KlipKlap(stretchs, triggers)
{

	this.triggers = triggers;
	this.stretchs = stretchs;
	
	this.init = function()
	{
		this.showThisHideOpen();
	};
	
	this.showThisHideOpen = function(elShow)
	{
		var elActive = (elShow && elShow.style.display=='none') ? false : true;
		for (var i=0; i<this.stretchs.length; i++) {
			var el = this.stretchs[i];
			if (el==elShow && !elActive) {
				if (i<this.stretchs.length-1) el.style.marginBottom = '1em';
				el.style.display = 'block';
				if (i>0) this.triggers[i].style.marginTop = '1em';
			} else {
				if (i<this.stretchs.length-1) el.style.marginBottom = '0';
				el.style.display = 'none';
				if (i>0) this.triggers[i].style.marginTop = '0';
			}
		}
	};

	this.init();

}
