 
 
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 += '<div id="flashMoviePlayer" style="z-index:2;position:absolute;top:0px;left:0px;display:none;"></div>';
	}
	return document.getElementById('flashMoviePlayer');
}
function popupJSVideo(fVideo, fTitle, fDescription){
	
	var o = createPopupJSVideoDiv();
	var movieStr = '/websites/rinsmafashion.nl/mediadepot/' + fVideo;
 
	var bs = browserSize();
	var w = document.body.clientWidth;
	var h = bs[1];
 
	var s = writeFlashStr('/websites/rinsmafashion.nl/mediadepot/md3571.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<o.childNodes.length;i++){
		if(o.childNodes[i].tagName=='OBJECT'){
			objectElm = o.childNodes[i];
		}
	}
	if(objectElm){objectElm.style.height = bs[1] + 'px';}
	
	setTimeout('resizeFPlayer()', 100);
}


