function showPlayWindow (oParams) {
	if ( !oParams ) oParams = new Object();
	if ( oParams.visible == undefined ) oParams.visible = true;
	
	var wPlay;
	if ( wPlay = document.getElementById("w-play") ) {
		if ( !wPlay.initialized ) {
			wPlay.initialized = true;
			wPlay.visible = false;
			
			var wBackground = document.getElementById("w-play-background");
			wBackground.style.opacity = ".8";
			wBackground.style.filter = "alpha(opacity=80)";
			
			if ( window.addEventListener ) {
				window.addEventListener("resize", resizePlayWindow, false);
				window.addEventListener("scroll", resizePlayWindow, false);
			} else if ( window.attachEvent ) {
				window.attachEvent("onresize", resizePlayWindow );
				window.attachEvent("onscroll", resizePlayWindow );
			}
		}
		
		wPlay.visible = oParams.visible;
		wPlay.style.display = oParams.visible ? "block" : "none";
			
		resizePlayWindow();
	}
}


function resizePlayWindow(e) {
	var wPlay;
	
	if ( wPlay = document.getElementById("w-play") ) {
		if ( wPlay.visible ) {
			wPlay.style.width  = String(document.documentElement.clientWidth) + "px";
			wPlay.style.height = String(document.documentElement.clientHeight) + "px";
			wPlay.style.top    = window.pageYOffset != undefined ? String(window.pageYOffset) + "px" : document.documentElement.scrollTop + "px";
			wPlay.style.left   = window.pageXOffset != undefined ? String(window.pageXOffset) + "px" : document.documentElement.scrollLeft + "px";
			
			var wBackground = document.getElementById("w-play-background");
			wBackground.style.width  = wPlay.style.width;
			wBackground.style.height = wPlay.style.height;
			
			var wWindow = document.getElementById("w-play-window");
			wWindow.style.left = String((document.documentElement.clientWidth / 2) - (wWindow.offsetWidth / 2)) + "px";
			wWindow.style.top  = String((document.documentElement.clientHeight / 2) - (wWindow.offsetHeight / 2)) + "px";
		}
	}
}