function autoresize_homepage() { var nieuws_body = document.getElementById('nieuws_body'); var meest_bezocht_body = document.getElementById('meest_bezocht_body'); var email_adressen_body = document.getElementById('email_adressen_body'); var contact_body = document.getElementById('contact_body'); var kalender_body = document.getElementById('kalender_body'); var kalender_head = document.getElementById('kalender_head'); var right_content = document.getElementById('right_content'); var actueel_koppelbox = document.getElementById('actueel_koppelbox'); var picture1 = document.getElementById('picture1'); var picture2 = document.getElementById('picture2'); var picture3 = document.getElementById('picture3'); var picture4 = document.getElementById('picture4'); var picture5 = document.getElementById('picture5'); var picture6 = document.getElementById('picture6'); if(picture1 && picture2 && picture3 && picture4 && picture5 && picture6){ var max_height_picture = Math.max(picture1.offsetHeight,picture2.offsetHeight,picture3.offsetHeight,picture4.offsetHeight,picture5.offsetHeight,picture6.offsetHeight); picture1.style.height= max_height_picture+ "px"; picture2.style.height= max_height_picture+ "px"; picture3.style.height= max_height_picture+ "px"; picture4.style.height= max_height_picture+ "px"; picture5.style.height= max_height_picture+ "px"; picture6.style.height= max_height_picture+ "px"; } if(nieuws_body && meest_bezocht_body){ var max_height_middle = Math.max(nieuws_body.offsetHeight, meest_bezocht_body.offsetHeight); nieuws_body.style.height = max_height_middle + "px"; meest_bezocht_body.style.height = max_height_middle + "px"; } if(email_adressen_body && contact_body){ var max_height_bottom = Math.max(email_adressen_body.offsetHeight, contact_body.offsetHeight); email_adressen_body.style.height = max_height_bottom + "px"; contact_body.style.height = max_height_bottom + "px"; } setmain(); if(kalender_body && right_content && actueel_koppelbox && kalender_head){ if(right_content.offsetHeight > (kalender_body.offsetHeight+ kalender_head.offsetHeight +7 +actueel_koppelbox.offsetHeight)){ kalender_body.style.height= right_content.offsetHeight - actueel_koppelbox.offsetHeight-kalender_head.offsetHeight -7 + "px"; } } } function setmain() { var navigation = document.getElementById('navigation'); var right_content = document.getElementById('right_content'); var globalWrapper = document.getElementById('globalWrapper'); var content = document.getElementById('content'); if(navigation && globalWrapper) { if((navigation.offsetHeight+navigation.offsetTop) > (globalWrapper.offsetHeight-28)){ globalWrapper.style.height = navigation.offsetHeight+navigation.offsetTop+28+"px"; } } if(content && right_content) { var max_height_content = Math.max(content.offsetHeight, right_content.offsetHeight); content.style.height = max_height_content+ "px"; right_content.style.height = max_height_content+ "px"; } if (document.getElementById("organogram_plus") != null) { var organogram_plus=document.getElementById("organogram_plus"); var rows=organogram_plus.getElementsByTagName("tr"); rows[0].className="first_row"; rows[1].className="second_row"; rows[2].className="third_row"; } }