function browserSize(){ var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } return Array(myWidth, myHeight); } function createPopupJSVideoDiv(){ if(!document.getElementById('flashMoviePlayer')){ document.body.innerHTML += '
'; } return document.getElementById('flashMoviePlayer'); } function popupJSVideo(fVideo, fTitle, fDescription){ var o = createPopupJSVideoDiv(); var movieStr = '/websites/newtelessence/mediadepot/' + fVideo; var bs = browserSize(); var w = document.body.clientWidth; var h = bs[1]; var s = writeFlashStr('/websites/newtelessence/mediadepot/md73.swf?titel='+ escape(fTitle) +'&tekst='+ escape(fDescription) +'&film='+escape(movieStr), w, h, '', '', 'transparent'); o.innerHTML = s; o.style.display = 'block'; resizeFPlayer(); } function exitPlayer(){ var o = createPopupJSVideoDiv(); o.innerHTML = ''; o.style.display = 'none'; } function resizeFPlayer(){ var o = createPopupJSVideoDiv(); if(o.style.display == 'none'){return;} var bodyNode = document.body; var topNode = bodyNode; while(topNode.parentNode && topNode.parentNode.scrollTop){topNode = topNode.parentNode;} var bs = browserSize(); o.style.top = topNode.scrollTop + 'px'; o.style.height = bs[1] + 'px'; var objectElm = null; for(var i=0;i