/* 緊急情報表示 */

/* ★★下の文章を状況に応じて変更し、↓↓↓
var text = new Array("",

"４月３０日（水）～５月６日（火）の期間、研伸館は休館となります。休館中は自習室の利用や各種窓口受付はできません。なお、各種ＦＡＸ申込やインターネット申込は通常通り受付いたしますが、確認のお電話は５月７日（水）以降となりますのでご了承ください。",

"");
var mTime = 300;
var tLen = 1;
var margin = "　　　　　　　　　　";
var view = text.join(margin);
onload = function() {
         setInterval('scrolltext()',mTime);
}
function scrolltext() {
          view = view.substring(tLen,view.length) + view.substring(0,tLen);
          document.textbox.scrollbox.value=view;
}
コメントアウトを外す！！★★↑↑↑*/




/* トップフラッシュ用 */

//v1.7
// Flash Player Version Detection
// Detect Client Browser type
// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function ControlVersion()
{
	var version;
	var axo;
	var e;

	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry

	try {
		// version will be set for 7.X or greater players
		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
		version = axo.GetVariable("$version");
	} catch (e) {
	}

	if (!version)
	{
		try {
			// version will be set for 6.X players only
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
			
			// installed player is some revision of 6.0
			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,
			// so we have to be careful. 
			
			// default to the first public version
			version = "WIN 6,0,21,0";

			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		
			axo.AllowScriptAccess = "always";

			// safe to call for 6.0r47 or greater
			version = axo.GetVariable("$version");

		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 4.X or 5.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = axo.GetVariable("$version");
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 3.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
			version = "WIN 3,0,18,0";
		} catch (e) {
		}
	}

	if (!version)
	{
		try {
			// version will be set for 2.X player
			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			version = "WIN 2,0,0,11";
		} catch (e) {
			version = -1;
		}
	}
	
	return version;
}

// JavaScript helper required to detect Flash Player PlugIn version information
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
	// WebTV 2.5 supports Flash 3
	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
	// older WebTV supports Flash 2
	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
	else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
	versionStr = GetSwfVer();
	if (versionStr == -1 ) {
		return false;
	} else if (versionStr != 0) {
		if(isIE && isWin && !isOpera) {
			// Given "WIN 2,0,0,11"
			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]
			tempString        = tempArray[1];			// "2,0,0,11"
			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']
		} else {
			versionArray      = versionStr.split(".");
		}
		var versionMajor      = versionArray[0];
		var versionMinor      = versionArray[1];
		var versionRevision   = versionArray[2];

        	// is the major.revision >= requested major.revision AND the minor version >= requested minor
		if (versionMajor > parseFloat(reqMajorVer)) {
			return true;
		} else if (versionMajor == parseFloat(reqMajorVer)) {
			if (versionMinor > parseFloat(reqMinorVer))
				return true;
			else if (versionMinor == parseFloat(reqMinorVer)) {
				if (versionRevision >= parseFloat(reqRevision))
					return true;
			}
		}
		return false;
	}
}

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '';
  if (isIE && isWin && !isOpera)
  {
    str += '<object ';
    for (var i in objAttrs)
    {
      str += i + '="' + objAttrs[i] + '" ';
    }
    str += '>';
    for (var i in params)
    {
      str += '<param name="' + i + '" value="' + params[i] + '" /> ';
    }
    str += '</object>';
  }
  else
  {
    str += '<embed ';
    for (var i in embedAttrs)
    {
      str += i + '="' + embedAttrs[i] + '" ';
    }
    str += '> </embed>';
  }

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}



/* 2009年通年デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_year2009IE(){
	window.open('../digitalPamph/09yearIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_year2009others(){
	window.open('../digitalPamph/09yearOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_year2009(){

	document.write('<p class="indent">下のパンフレット表紙をクリックすると新たなウィンドウが開き、2009年度　研伸館中学生課程総合パンフレットをブラウザ上で閲覧できます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="../img/09coverYear.jpg" alt="2009年度 研伸館中学生課程 デジタル総合パンフレット" width="130" height="180" style="cursor:pointer" onclick="openPamph_year2009IE()" onkeypress="openPamph_year2009IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="../img/09coverYear.jpg" alt="2009年度 研伸館中学生課程 デジタル総合パンフレット" width="130" height="180" style="cursor:pointer" onclick="openPamph_year2009others()" onkeypress="openPamph_year2009others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="digitalPamph/">デジタルパンフレット閲覧に関するご注意</a></p>');
}


/* 2010年通年デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_year2010IE(){
	window.open('../digitalPamph/10yearIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_year2010others(){
	window.open('../digitalPamph/10yearOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_year2010(){

	document.write('<p class="center">下のパンフレット表紙をクリックすると新たなウィンドウが開き、2010年度　研伸館中学生課程総合パンフレットをブラウザ上で閲覧できます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="../img/10kenchu_TOP.jpg" alt="2010年度 研伸館中学生課程 デジタル総合パンフレット" width="300" height="423" style="cursor:pointer" onclick="openPamph_year2010IE()" onkeypress="openPamph_year2010IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="../img/10kenchu_TOP.jpg" alt="2010年度 研伸館中学生課程 デジタル総合パンフレット" width="300" height="423" style="cursor:pointer" onclick="openPamph_year2010others()" onkeypress="openPamph_year2010others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/index.htm">デジタルパンフレット閲覧に関するご注意</a></p>');
}



/* 2010年春期デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_spring2010IE(){
	window.open('../digitalPamph/10springIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_spring2010others(){
	window.open('../digitalPamph/10springOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_spring2010(){

	document.write('<p class="center">下のパンフレット表紙をクリックすると新たなウィンドウが開き、2010年度　研伸館中学生課程　春期講習パンフレットをブラウザ上で閲覧できます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="10spring/img/10spring_TOP.jpg" alt="2010年度 研伸館中学生課程 デジタル春期講習パンフレット" width="300" height="426" style="cursor:pointer" onclick="openPamph_spring2010IE()" onkeypress="openPamph_spring2010IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="10spring/img/10spring_TOP.jpg" alt="2010年度 研伸館中学生課程 デジタル春期講習パンフレット" width="300" height="426" style="cursor:pointer" onclick="openPamph_spring2010others()" onkeypress="openPamph_spring2010others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/index.htm">デジタルパンフレット閲覧に関するご注意</a></p>');
}


/* 2010年夏期デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_summer2010IE(){
	window.open('../digitalPamph/10summerIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_summer2010others(){
	window.open('../digitalPamph/10summerOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_summer2010(){

	document.write('<p class="center">クリックすると、デジタルパンフレットをご覧いただけます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="10summer/img/10summer_TOP.jpg" alt="2010年度 研伸館中学生課程 デジタル夏期講習パンフレット" width="241" height="340" style="cursor:pointer" onclick="openPamph_summer2010IE()" onkeypress="openPamph_summer2010IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="10summer/img/10summer_TOP.jpg" alt="2010年度 研伸館中学生課程 デジタル夏期講習パンフレット" width="241" height="340" style="cursor:pointer" onclick="openPamph_summer2010others()" onkeypress="openPamph_summer2010others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/index.htm">デジタルパンフレット閲覧に関するご注意</a></p>');
}


/* 2010年冬期デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_winter2010IE(){
	window.open('../digitalPamph/10winterIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_winter2010others(){
	window.open('../digitalPamph/10winterOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_winter2010(){

	document.write('<p class="center">クリックすると、デジタルパンフレットをご覧いただけます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="10winter/img/10winter_TOP.jpg" alt="2010年度 研伸館中学生課程 デジタル冬期講習パンフレット" width="241" height="340" style="cursor:pointer" onclick="openPamph_winter2010IE()" onkeypress="openPamph_winter2010IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="10winter/img/10winter_TOP.jpg" alt="2010年度 研伸館中学生課程 デジタル冬期講習パンフレット" width="241" height="340" style="cursor:pointer" onclick="openPamph_winter2010others()" onkeypress="openPamph_winter2010others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/index.htm">デジタルパンフレット閲覧に関するご注意</a></p>');
}


/* 2009年夏期講習デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_summer2009IE(){
	window.open('../digitalPamph/09summerIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_summer2009others(){
	window.open('../digitalPamph/09summerOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_summer2009(){

	document.write('<p class="center">下のパンフレット表紙をクリックすると新たなウィンドウが開き、<br />2009年度　研伸館中学生課程　夏期講習パンフレットを<br />ブラウザ上で閲覧できます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="09summer/img/09coverSummer.jpg" alt="2009年度 研伸館中学生課程 デジタル総合パンフレット" width="240" height="340" style="cursor:pointer" onclick="openPamph_summer2009IE()" onkeypress="openPamph_summer2009IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="09summer/img/09coverSummer.jpg" alt="2009年度 研伸館中学生課程 デジタル総合パンフレット" width="240" height="340" style="cursor:pointer" onclick="openPamph_summer2009others()" onkeypress="openPamph_summer2009others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/">デジタルパンフレット閲覧に関するご注意</a></p>');
}


/* 2009年冬期デジタルパンフレット（カムコンフィデント） */

function openPamph_winter2009(theURL,pageNum,winName,features){
	//v2.0
	win=window.open(theURL+"?page_num="+pageNum,winName,features);
　　win.focus();
}

/* 2011年通年デジタルパンフレット（真生印刷） */

function openPamph_year2011(url){
	window.open(url,"catalog","width=1000px,height=689px,top=0px,left=0px,resizable=yes");
}

/* 2011年春期デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_spring2011IE(){
	window.open('../digitalPamph/11springIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_spring2011others(){
	window.open('../digitalPamph/11springOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_spring2011(){

	document.write('<p class="center">クリックすると、デジタルパンフレットをご覧いただけます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="11spring/img/11spring_TOP.jpg" alt="2011年度 研伸館中学生課程 デジタル春期講習パンフレット" width="252" height="355" style="cursor:pointer" onclick="openPamph_spring2011IE()" onkeypress="openPamph_spring2011IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="11spring/img/11spring_TOP.jpg" alt="2011年度 研伸館中学生課程 デジタル春期講習パンフレット" width="252" height="355" style="cursor:pointer" onclick="openPamph_spring2011others()" onkeypress="openPamph_spring2011others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/index.htm">デジタルパンフレット閲覧に関するご注意</a></p>');
}

/* 2011年夏期デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_summer2011IE(){
	window.open('../digitalPamph/11summerIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_summer2011others(){
	window.open('../digitalPamph/11summerOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_summer2011(){

	document.write('<p class="center">クリックすると、デジタルパンフレットをご覧いただけます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="11summer/img/11summer_TOP.jpg" alt="2011年度 研伸館中学生課程 デジタル夏期講習パンフレット" width="252" height="355" style="cursor:pointer" onclick="openPamph_summer2011IE()" onkeypress="openPamph_summer2011IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="11summer/img/11summer_TOP.jpg" alt="2011年度 研伸館中学生課程 デジタル夏期講習パンフレット" width="252" height="355" style="cursor:pointer" onclick="openPamph_summer2011others()" onkeypress="openPamph_summer2011others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/index.htm">デジタルパンフレット閲覧に関するご注意</a></p>');
}


/* 2011年冬期デジタルパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_winter2011IE(){
	window.open('../digitalPamph/11winterIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_winter2011others(){
	window.open('../digitalPamph/11winterOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_winter2011(){

	document.write('<p class="center">クリックすると、デジタルパンフレットをご覧いただけます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="11winter/img/11winter_TOP.jpg" alt="2011年度 研伸館中学生課程 デジタル冬期講習パンフレット" width="252" height="355" style="cursor:pointer" onclick="openPamph_winter2011IE()" onkeypress="openPamph_winter2011IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="11winter/img/11winter_TOP.jpg" alt="2011年度 研伸館中学生課程 デジタル冬期講習パンフレット" width="252" height="355" style="cursor:pointer" onclick="openPamph_winter2011others()" onkeypress="openPamph_winter2011others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/index.htm">デジタルパンフレット閲覧に関するご注意</a></p>');
}

/* 2012年通年デジタルパンフレット（真生印刷） */

function openPamph_year2012(url){
	window.open(url,"catalog","width=1000px,height=689px,top=0px,left=0px,resizable=yes");
}


/* 2012年エボリューションパンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_12evoIE(){
	window.open('../digitalPamph/12evoIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_12evoothers(){
	window.open('../digitalPamph/12evoOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_12evo(){

	document.write('<p class="center">下のパンフレット表紙をクリックすると新たなウィンドウが開き、<br />2012年度　研伸館中学生課程シラバス「EVOLUTION Jr.」をブラウザ上で閲覧できます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="img_k-jr/12k-jr_evo.jpg" alt="2012年度 研伸館中学生課程シラバス「EVOLUTION Jr.」" width="201" height="283" style="cursor:pointer" onclick="openPamph_12evoIE()" onkeypress="openPamph_12evoIE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="img_k-jr/12k-jr_evo.jpg" alt="2012年度 研伸館中学生課程シラバス「EVOLUTION Jr.」" width="201" height="283" style="cursor:pointer" onclick="openPamph_12evoothers()" onkeypress="openPamph_12evoothers()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../digitalPamph/">デジタルパンフレット閲覧に関するご注意</a></p>');
}


/* 2012年春期講習パンフレット */

/* Internet Explorer版デジタルパンフレットのURL */

function openPamph_spring2012IE(){
	window.open('../../digitalPamph/12springIE/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* Safari版デジタルパンフレットのURL */

function openPamph_spring2012others(){
	window.open('../../digitalPamph/12springOthers/selfload.html', 'eBook', 'width=1024, height=768, fullscreen=yes');
}

/* ブラウザの自動判別 */

function selectBrowser_spring2012(){

	document.write('<p class="center">下のパンフレット表紙をクリックすると新たなウィンドウが開き、<br />2012年度 研伸館中学生課程 春期講習パンフレットをブラウザ上で閲覧できます。</p>');
	document.write('<p class="center">');
	
	if(navigator.userAgent.indexOf("MSIE") != -1){ // ブラウザがIEの場合

		document.write('<img src="img_spring2012/spring2012cover.jpg" alt="2012年度 研伸館中学生課程 春期講習パンフレット" width="201" height="283" style="cursor:pointer" onclick="openPamph_spring2012IE()" onkeypress="openPamph_spring2012IE()" />');
			
	}else{ // ブラウザがIE以外の場合

		document.write('<img src="img_spring2012/spring2012cover.jpg" alt="2012年度 研伸館中学生課程 春期講習パンフレット" width="201" height="283" style="cursor:pointer" onclick="openPamph_spring2012others()" onkeypress="openPamph_spring2012others()" />');

	}
	document.write('</p>');
	document.write('<p class="center">⇒ <a href="../../digitalPamph/">デジタルパンフレット閲覧に関するご注意</a></p>');
}



/* google mapの生成 */

/* 西宮校の地図生成関数 */
function initializeNishinomiya() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(34.743861, 135.356981);
		map.setCenter(point, 17);
		var marker = new GMarker(point);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<img src=\"img/kousha-n.gif\" />");
		});
		map.addControl(new GLargeMapControl());
	}
}

/* 上本町校の地図生成関数 */
function initializeUehonmachi() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(34.665044, 135.522041);
		map.setCenter(point, 17);
		var marker = new GMarker(point);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<img src=\"img/kousha-u.gif\" /><br /><img src=\"img/kousha-ups.gif\" />");
		});
		map.addControl(new GLargeMapControl());
	}
}

/* 住吉校の地図生成関数 */
function initializeSumiyoshi() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(34.719263, 135.261961);
		map.setCenter(point, 17);
		var marker = new GMarker(point);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<img src=\"img/kousha-s.gif\" /><br /><img src=\"img/kousha-sps.gif\" />");
		});
		map.addControl(new GLargeMapControl());
	}
}

/* 阪急豊中校の地図生成関数 */
function initializeToyonaka() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(34.786545, 135.462483);
		map.setCenter(point, 17);
		var marker = new GMarker(point);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<img src=\"img/kousha-toyo.gif\">");
		});
		var point2 = new GLatLng(34.786889, 135.462646);
		var marker2 = new GMarker(point2);
		map.addOverlay(marker2);
		GEvent.addListener(marker2, "click", function() {
			marker2.openInfoWindowHtml("<img src=\"img/kousha-toyoB.gif\" /><br /><img src=\"img/kousha-toyops.gif\" />");
		});
		map.addControl(new GLargeMapControl());
	}
}

/* 学園前校の地図生成関数 */
function initializeGakuenmae() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(34.698225, 135.749854);
		map.setCenter(point, 17);
		var marker = new GMarker(point);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<img src=\"img/kousha-g.gif\" />");
		});
		map.addControl(new GLargeMapControl());
	}
}

/* 高の原校の地図生成関数 */
function initializeTakanohara() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(34.725989, 135.790817);
		map.setCenter(point, 17);
		var marker = new GMarker(point);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<img src=\"img/kousha-taka.gif\" />");
		});
		map.addControl(new GLargeMapControl());
	}
}

/* 京都校の地図生成関数 */
function initializeKyoto() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		var point = new GLatLng(34.987429, 135.760224);
		map.setCenter(point, 17);
		var marker = new GMarker(point);
		map.addOverlay(marker);
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<img src=\"img/kousha-k.gif\" />");
		});
		map.addControl(new GLargeMapControl());
	}
}


