// When the page loads: 
function setFFheight(){ 
	if (window.innerHeight+window.scrollMaxY) {// Firefox 
		yWithScroll = window.innerHeight + window.scrollMaxY;

		if (document.getElementById('background_page') ) {	
			document.getElementById('background_page').style.height = (yWithScroll-148)+'px';
		}
		if (document.getElementById('background_page_standaard') ) {	
			document.getElementById('background_page_standaard').style.height = (yWithScroll-388)+'px';
		}
		if (document.getElementById('adresgegevens2') ) {
			
			document.getElementById('adresgegevens2').style.top = (yWithScroll-20)+'px';
			//alert(document.getElementById('adresgegevens').style.top);
			//document.getElementById('background_page_standaard_footer').style.height = (yWithScroll-388)+'px';
		}
		if (document.getElementById('submenutable') ) {
			document.getElementById('submenutable').style.height = document.getElementById('submenua').offsetHeight+40;
		}	
	} 
} 

function loadflash(){
  if (document.getElementsByTagName) { 
    // Get all the tags of type object in the page. 
      var objs = document.getElementsByTagName("object"); 
      for (i=0; i<objs.length; i++) { 
        // Get the HTML content of each object tag 
        // and replace it with itself. 
		if (objs[i].className != 'embeddedvideo') {
        	objs[i].outerHTML = objs[i].outerHTML; 
		}
      } 
   } 
   setFFheight();

}

// When the page unloads: 
window.onunload = function() { 
  if (document.getElementsByTagName) { 
    //Get all the tags of type object in the page. 
    var objs = document.getElementsByTagName("object"); 
    for (i=0; i<objs.length; i++) { 
      // Clear out the HTML content of each object tag 
      // to prevent an IE memory leak issue. 
		if (objs[i].className != 'embeddedvideo') {
   		   objs[i].outerHTML = ""; 
		}
    } 
  } 
}

