
function slideDown(moduleID){
	// Indlæs en reference til den korte beskrivelse
	var list=document.getElementById(moduleID).getElementsByTagName('div');
	var i=list.length; var j=i;

	if(i>0)do{
		if(list[j-i].className.toLowerCase()=='module_short') break;
	}while(--i);
	var tmp=list[j-i]; list=null;

	// Klargør slide op
	var x=tmp.offsetHeight;
	tmp.style.height=tmp.offsetHeight+'px';

	// Slide op
	var z=moduleID;
	new Effect(function(p){tmp.style.height=Math.round(x-x*p)+'px'; if(p==1){slideDown2(z); tmp=null;}},{duration:0.6, ease:true});
}
function slideDown2(moduleID){
	// Indlæs en reference til den korte beskrivelse
	var list=document.getElementById(moduleID).getElementsByTagName('div');
	var i=list.length; var j=i;

	if(i>0)do{
		if(list[j-i].className.toLowerCase()=='module_long') break;
	}while(--i);
	var tmp=list[j-i]; list=null;

	// Klargør slide op
	tmp.style.visibility='hidden';
	tmp.style.display='block';
	tmp.style.height='auto';
	var x=tmp.offsetHeight;
	tmp.style.height='0px';
	tmp.style.visibility='visible';

	// sIFR
	sIFR.replace(regular,{selector:'h2',css:'.sIFR-root {color:#83715b; font-size:18px; font-weight:bold;}',wmode:'transparent',tuneHeight:-5});

	// Slide op
	new Effect(function(p){tmp.style.height=Math.round(x*p)+'px'; if(p==1) tmp=null;},{duration:0.6, ease:true});
}

function slideUp(moduleID){
	// Indlæs en reference til den korte beskrivelse
	var list=document.getElementById(moduleID).getElementsByTagName('div');
	var i=list.length; var j=i;

	if(i>0)do{
		if(list[j-i].className.toLowerCase()=='module_long') break;
	}while(--i);
	var tmp=list[j-i]; list=null;

	// Klargør slide op
	var x=tmp.offsetHeight;
	tmp.style.height=tmp.offsetHeight+'px';

	// Slide op
	var z=moduleID;
	new Effect(function(p){tmp.style.height=Math.round(x-x*p)+'px'; if(p==1){slideUp2(z); tmp=null;}},{duration:0.6, ease:true});
}
function slideUp2(moduleID){
	// Indlæs en reference til den korte beskrivelse
	var list=document.getElementById(moduleID).getElementsByTagName('div');
	var i=list.length; var j=i;

	if(i>0)do{
		if(list[j-i].className.toLowerCase()=='module_short') break;
	}while(--i);
	var tmp=list[j-i]; list=null;

	// Klargør slide op
	tmp.style.visibility='hidden';
	tmp.style.display='block';
	tmp.style.height='auto';
	var x=tmp.offsetHeight;
	tmp.style.height='0px';
	tmp.style.visibility='visible';

	// Slide op
	new Effect(function(p){tmp.style.height=Math.round(x*p)+'px'; if(p==1) tmp=null;},{duration:0.6, ease:true});
}


