function writeFlash(moviPath,movieWidth,movieHight) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=9,0,28,0"');
	document.write(' id="main" align="middle" width="'+movieWidth+'" height="'+movieHight+'">');
	document.write('<param name=movie value="'+moviPath+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="#ffffff">');
	document.write('<param name="FlashVars" value="loc=ja_JP">');
	document.write('<param name="WMODE" value="Transparent" />');
	document.write('<embed src="'+moviPath+'" quality=high bgcolor="#ffffff"');
	document.write(' pluginspage="http://www.macromedia.com/jp/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"');
	document.write(' type="application/x-shockwave-flash" width="'+movieWidth+'" height="'+movieHight+'" name="main" align="middle" wmode="transparent" >');
	document.write('</embed>');
	document.write('</object>');
}

function popUpWindow(URL,windowWidth,windowHeight) {
	windowWidth += 20;
	windowHeight += 10;
	targteWindow = window.open(URL, "21secrets", "width="+windowWidth+",height="+windowHeight+",resizable=yes,status=yes,location=yes,toolbar=no,titlebar=yes,scrollbars=yes");
	targteWindow.focus(); 
}

function createXMLHttpRequest(cbFunc) {
	var XMLhttpObject = null;
	try{
		XMLhttpObject = new XMLHttpRequest();
	}catch(e){
		try{
			XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
		}catch(e){
			try{
				XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
			}catch(e){
				return null;
			}
		}
	}
	if (XMLhttpObject) XMLhttpObject.onreadystatechange = cbFunc;
	return XMLhttpObject;
}

function loadTextFile(fName) {
	httpObj = createXMLHttpRequest(displayData);
	if (httpObj) {
		httpObj.open("GET",fName,true);
		httpObj.send(null);
	}
}
function displayData() {
	idName = "blogtext";
	if ((httpObj.readyState == 4) && (httpObj.status == 200)) {
		document.getElementById(idName).innerHTML = httpObj.responseText;
	} else {
		document.getElementById(idName).innerHTML = "Loading...";
	}
}

function loadTextFile2(fName) {
	httpObj2 = createXMLHttpRequest(displayData2);
	if (httpObj2) {
		httpObj2.open("GET",fName,true);
		httpObj2.send(null);
	}
}
function displayData2() {
	idName = "blogtext2";
	if ((httpObj2.readyState == 4) && (httpObj2.status == 200)) {
		document.getElementById(idName).innerHTML = httpObj2.responseText;
	} else {
		document.getElementById(idName).innerHTML = "Loading...";
	}
}

