function outputSWF(strMovie, strWidth, strHeight, strLang, strRecord) {
	var strCode = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab" width="WIDTH" height="HEIGHT" id="hReversiApp">'
	+ '<param name="movie" value="MOVIE" />'
	+ '<param name="quality" value="high" />'
	+ '<param name="flashvars" value="RECORD" />'
	+ '<param name=""allowScriptAccess" value="sameDomain" />'
	+ '<embed src="MOVIE" quality="high" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" width="WIDTH" height="HEIGHT" allowScriptAccess="sameDomain" name="hReversiApp" swLiveConnect="true" flashvars="RECORD"></embed>'
	+ '</object>';

	strLang = ((strLang) && (strLang.match(/^[a-z][a-z]$/i))) ? ("l=" + strLang) : "";
	strRecord = ((strRecord) && (strRecord.match(/^([a-h][1-8]){1,60}$/i))) ? ("r=" + strRecord) : "";
	strCode = strCode.split("WIDTH").join(strWidth);
	strCode = strCode.split("HEIGHT").join(strHeight);
	strCode = strCode.split("MOVIE").join(strMovie);
	strCode = strCode.split("RECORD").join([strLang, strRecord].join("&"));
	document.write(strCode);
}
var bWheelInit = false;
var bWheelActive = false;

function initWheel() {
	if (window.addEventListener) {
		window.addEventListener("DOMMouseScroll", onMouseWheelHandler, false);
	}
	window.onmousewheel = onMouseWheelHandler;	
	document.onmousewheel = onMouseWheelHandler;	
	bWheelInit = true;
}

function activateWheel(bActive) {
	if (!bWheelInit) initWheel();
	bWheelActive = bActive;
}
function onMouseWheelHandler(hEvent) {
	if (hEvent) {
		if (!(hEvent.returnValue = bWheelActive)) {
			if (hEvent.preventDefault) hEvent.preventDefault();
		}
	}
	return bWheelActive;
}