function redMoreInfos() {
    if(document.getElementById('mainInfoTextBlockPart2').offsetHeight < 150) {
        document.getElementById('mainInfoTextBlockPart2').style.height=document.getElementById('mainInfoTextBlockPart2').offsetHeight + 20 + "px";
        if(document.getElementById('mainInfoTextBlockPart2').offsetHeight < 150)  {
            setTimeout("redMoreInfos();",5);
        } else {
            document.getElementById('readMoreInfosDiv').innerHTML="<a href=\"#readLess\" onclick=\"redLessInfos();\">zuklappen</a>";
        }
    } else {
        ;
    }
}

function redLessInfos() {
    if(document.getElementById('mainInfoTextBlockPart2').offsetHeight > 0) {
        document.getElementById('mainInfoTextBlockPart2').style.height=document.getElementById('mainInfoTextBlockPart2').offsetHeight - 20 + "px";
        if(document.getElementById('mainInfoTextBlockPart2').offsetHeight > 0)  {
            setTimeout("redLessInfos();",5);
        } else {
            document.getElementById('mainInfoTextBlockPart2').style.height="0px";
            document.getElementById('readMoreInfosDiv').innerHTML="<a href=\"#readMore\" onclick=\"redMoreInfos();\">weiterlesen</a>";
        }
    } else {
        ;
    }
}
