// Behaviors for Kromann Reumert


// Toggles Q&A style answers on and off
function toggleAnswer(obj, theAnswerID) {
	var theAnswer = document.getElementById(theAnswerID);
	
	if (theAnswer.className == "QandA_answer") {
		obj.className = "QandA_header_selected";
		theAnswer.className = "QandA_answer_shown";
	}
	else {
		obj.className = "QandA_header";
		theAnswer.className = "QandA_answer";
	}
}

function toggleQAHeader(obj, newClass)
{   
    if(obj.className != 'QandA_header_selected')    
        obj.className = newClass;    
}

function toggleDisplay(formularId)
{
    formular = document.getElementById(formularId);
    formular.style.display = formular.style.display == "none" ? "block" : "none";
}


window.scrollTo = function() { }