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>');
}
if (navigator.userAgent.indexOf('Mac') != -1) {
	document.write('<link rel="stylesheet" type="text/css" href="http://www.cooking-megami.com/css/mac.css">');
	document.write('<link rel="stylesheet" type="text/css" href="./mac.css">');
}







function changeDisplay (id, tid) {
    var aListBlock = document.getElementById(id);
    var aTitleBlock = document.getElementById(tid);
	if (aListBlock){
		if(aListBlock.style.display == "block"){
			aListBlock.style.display = "none";
			aTitleBlock.src = 'images/ln_01.gif';
		} else if(aListBlock.style.display == "none"){
			aListBlock.style.display = "block";
			aTitleBlock.src = 'images/ln_01_o.gif';
		}
	}
}

function openBrWindow(theURL,winName,features) { //v2.0
  w = window.open(theURL,winName,features);
  w.focus();
}
function MM_openBrWindow(theURL,winName,features) { 
  w = window.open(theURL,winName,features);
  w.focus();
}

function printDate() {
	var nowTime=new Date();myYear    = nowTime.getYear();
	myYear4		= (myYear < 2000) ? myYear+1900 : myYear;
	myMonth		= nowTime.getMonth() + 1;
	nowTimeate	= nowTime.getDate();
	nowTimeay	= nowTime.getDay();
	myHours		= nowTime.getHours();
	myMinutes	= nowTime.getMinutes();
	mySeconds	= nowTime.getSeconds();
	document.write( myYear4+'-'+myMonth+'-'+nowTimeate+' '+myHours+':'+myMinutes+':'+mySeconds );
}

if (navigator.userAgent.indexOf('Mac') != -1) {
	document.write('<link rel="stylesheet" type="text/css" href="http://www.cooking-megami.com/mac.css">');
}

