

function LinkBlur()
{
	event.srcElement.blur();
}

function Change(img, filename)
{
	img.src = "images/" + filename;
}


function OpenMap(url)
{
	window.open(url,'map','status=yes,width=550,height=450');
}

function RandomCurri()
{return;
	var cNum = Math.floor(4*Math.random()+1);
	var mDiv = document.getElementById("menu02");

	var cDiv1 = document.getElementById("c01");
	var cDiv2 = document.getElementById("c02");
	var cDiv3 = document.getElementById("c03");
	var cDiv4 = document.getElementById("c04");

	switch(cNum)
	{
		case "1":
			cDiv1.style.display = "block";
			cDiv2.style.display = "none";
			cDiv3.style.display = "none";
			cDiv4.style.display = "none";
			break;
		case "2":
			cDiv1.style.display = "none";
			cDiv2.style.display = "block";
			cDiv3.style.display = "none";
			cDiv4.style.display = "none";
			break;
		case "3":
			cDiv1.style.display = "none";
			cDiv2.style.display = "none";
			cDiv3.style.display = "block";
			cDiv4.style.display = "none";
			break;
		case "4":
			cDiv1.style.display = "none";
			cDiv2.style.display = "none";
			cDiv3.style.display = "none";
			cDiv4.style.display = "block";
			break;
	}
}


function OpenClass(fileName)
{
	window.open("" + fileName, "class", "scrollbars=yes width=580 height=600 left=200 top=50");
}
function OpenClass2(fileName)
{
	window.open(fileName, "class", "scrollbars=yes width=680 height=600 left=200 top=50");
}

function CloseClass()
{
	opener.location.href = "images/NSignup.aspx";
	window.close();
}



function OpenStudent(n)
{
	window.open("newStudent" + n + ".aspx", "student", "scrollbars=yes width=600 height=600 top=50 left=150");
}

function OpenStudent2(n)
{
	window.open("newStudent_japan" + n + ".aspx", "student", "scrollbars=yes width=600 height=600 top=50 left=150");
}


function FlashInsert(FlashIDName, FlashFileName, FlashWidth, FlashHeight, DNSSetting, WMODESetting, FlashBGColor, QSetting, FlashAlign)
{
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('CODEBASE="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab#version=8,0,22,0" ');
	document.write(' ID="'+FlashIDName+'" WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" ALIGN="'+FlashAlign+'">');
	document.write('<PARAM NAME="movie" VALUE="'+ FlashFileName +'">');
	document.write('<PARAM NAME="quality" VALUE="'+QSetting+'">');
	document.write('<PARAM NAME="bgcolor" VALUE="'+FlashBGColor+'">');
	document.write('<PARAM NAME="wmode" VALUE="'+WMODESetting+'">');
	document.write('<PARAM NAME="allowScriptAccess" VALUE="'+DNSSetting+'">');
	document.write('<EMBED SRC="'+ FlashFileName +'"  NAME="'+FlashIDName+'"');
	document.write(' WIDTH="' + FlashWidth + '" HEIGHT="' + FlashHeight + '" QUALITY="'+QSetting+'" BGCOLOR="'+FlashBGColor+'"');
	document.write(' ALLOWSCRIPTACCESS="'+DNSSetting+'" ALIGN="'+FlashAlign+'" WMODE="'+WMODESetting+'" TYPE="application/x-shockwave-flash" ');
	document.write(' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" >');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}

function Show(menu)
{
	document.getElementById("menu0"+menu).style.display = "block";
}
function Hide(menu)
{
	document.getElementById("menu0"+menu).style.display = "none";
}

function AllLinkBlur()
{
	for (i=0; i<document.links.length; i++)
	{
		document.links[i].onfocus = LinkBlur;
	}
}

  function script_flash(file,width,height)
  {
    document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+width+"' HEIGHT='"+height+"' id='contents' ALIGN=''>");
    document.writeln("<PARAM NAME=movie value='"+file+"' />");
    document.writeln("<PARAM NAME=quality VALUE=high>");
    document.writeln("<PARAM NAME=bgcolor VALUE=#FFFFFF>");
    document.writeln("<PARAM NAME=wmode VALUE=transparent> ");
    document.writeln("<embed src='"+file+"' quality='high' bgcolor='#FFFFFF' width='"+width+"' height='"+height+"' name='contents' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
    document.writeln("</OBJECT>");
  }