/*-------------------------------------------------------------------------------------
	*
	*	@copyright:_________2010, Weleda
	*	@link:______________http://www.weleda-granatapfel.de/
	*	@author:____________Jung v. Matt/Neckar
	*	@function:__________fire functions if doc is loaded
	*
	*	@version:___________1.0
	* 	@revision:__________$Revision: 51 $
	* 	@lastmodified:______$Date: 2008-06-05 10:55:13 +0200 (Do, 05 Jun 2008) $
	*
-------------------------------------------------------------------------------------*/

/*------------------------------------------------
	*	load event
--------------------------------------------------*/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

function fensterhoehe() {if (window.innerHeight) return window.innerHeight; else if (document.body && document.body.offsetHeight) return document.body.offsetHeight; else return 0;}

function resizeContainer ()
	{
	var ct=fensterhoehe();
	if (parseInt(ct)<=668)
		{
		document.getElementById('flashCt').style.height='668px';
		}
	else
		{
		document.getElementById('flashCt').style.height='100%';
		}		
	}

addLoadEvent(function() {
		var browserHeightFix = window.setInterval("resizeContainer()", 1000);
});
