// JavaScript Document


////////////////////////////////////////////////////////////
//カレンダーの呼び出し関数｜上に表示する方
////////////////////////////////////////////////////////////

function salc_displayCalender_first()
{
			document.writeln('<table width="160" border="0">'); 
  					document.writeln('<caption>February</caption>'); 
					document.writeln('<tr>'); 
    					document.writeln('<th scope="col" style="width: 14%;">sun</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">mon</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">tue</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">wed</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">thu</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">fri</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">sat</th>'); 
  					document.writeln('</tr>'); 
					document.writeln('<tr>'); 
    					document.writeln('<td></td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">1</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">2</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">3</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">4</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">5</td>');
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">6</td>');
  					document.writeln('</tr>'); 
  					document.writeln('<tr>'); 
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">7</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">8</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">9</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">10</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">11</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">12</td>');
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">13</td>');
  					document.writeln('</tr>'); 
  					document.writeln('<tr>'); 
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">14</td>');
    					document.writeln('<td>15</td>');
    					document.writeln('<td>16</td>');
						document.writeln('<td>17</td>');
						document.writeln('<td>18</td>');
						document.writeln('<td>19</td>');
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">20</td>');
  					document.writeln('</tr>'); 
  					document.writeln('<tr>'); 
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">21</td>');
    					document.writeln('<td>22</td>');
						document.writeln('<td>23</td>');
						document.writeln('<td>24</td>');
						document.writeln('<td>25</td>');
						document.writeln('<td>26</td>');
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">27</td>');
  					document.writeln('</tr>'); 
  					document.writeln('<tr>'); 
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">28</td>');
    					document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
  					document.writeln('</tr>');
					document.writeln('<tr>'); 
    					document.writeln('<td></td>');
    					document.writeln('<td></td>');
    					document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
  					document.writeln('</tr>'); 
				document.writeln('</table>'); 
				document.writeln('<div class="calender_hour">');
					document.writeln('mon-fri  10:00-17:00<br>');
					document.writeln('sat   closed<br>');			
					//document.writeln('sat 9:00-17:00<br>');
					//document.writeln('<span style="color:#ff0000;">*</span>   11:00-18:00<br>');
					 //document.writeln('sat | 9:00-17:00<br>');
				document.writeln('</div>');
}

function init()
{
	//salc_displayCalender();
}


////////////////////////////////////////////////////////////
//カレンダーの呼び出し関数｜下に表示する方
////////////////////////////////////////////////////////////

function salc_displayCalender_second()
{
				document.writeln('<table width="160" border="0">'); 
  					document.writeln('<caption>March</caption>'); 
					document.writeln('<tr>'); 
    					document.writeln('<th scope="col" style="width: 14%;">sun</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">mon</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">tue</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">wed</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">thu</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">fri</th>'); 
    					document.writeln('<th scope="col" style="width: 14%;">sat</th>'); 
  					document.writeln('</tr>'); 
					document.writeln('<tr>'); 
    					document.writeln('<td></td>');
    					document.writeln('<td>1</td>');
    					document.writeln('<td>2</td>');
    					document.writeln('<td>3</td>');
    					document.writeln('<td>4</td>');
    					document.writeln('<td>5</td>');
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">6</td>');
  					document.writeln('</tr>'); 
  					document.writeln('<tr>'); 
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">7</td>');
    					document.writeln('<td>8</td>');
    					document.writeln('<td>9</td>');
    					document.writeln('<td>10</td>');
    					document.writeln('<td>11</td>');
    					document.writeln('<td>12</td>');
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">13</td>');
  					document.writeln('</tr>'); 
  					document.writeln('<tr>'); 
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">14</td>');
    					document.writeln('<td>15</td>');
    					document.writeln('<td>16</td>');
						document.writeln('<td>17</td>');
						document.writeln('<td>18</td>');
						document.writeln('<td>19</td>');
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">20</td>');
  					document.writeln('</tr>'); 
  					document.writeln('<tr>'); 
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">21</td>');
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">22</td>');
						document.writeln('<td>23</td>');
						document.writeln('<td>24</td>');
						document.writeln('<td>25</td>');
						document.writeln('<td>26</td>');
						document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">27</td>');
  					document.writeln('</tr>'); 
  					document.writeln('<tr>'); 
    					document.writeln('<td style="text-decoration: line-through;color:#c0c0c0">28</td>');
    					document.writeln('<td>29</td>');
						document.writeln('<td>30</td>');
						document.writeln('<td>31</td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
  					document.writeln('</tr>');
					document.writeln('<tr>'); 
    					document.writeln('<td></td>');
    					document.writeln('<td></td>');
    					document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
						document.writeln('<td></td>');
  					document.writeln('</tr>'); 
				document.writeln('</table>'); 
				document.writeln('<div class="calender_hour">');
					document.writeln('mon-fri  10:00-17:00<br>');
					document.writeln('sat   closed<br>');			
					//document.writeln('sat 9:00-17:00<br>');
					//document.writeln('<span style="color:#ff0000;">*</span>   11:00-18:00<br>');
					 //document.writeln('sat | 9:00-17:00<br>');
				document.writeln('</div>');
}

function init()
{
	//salc_displayCalender();
}

////////////////////////////////////////////////////////////
//言語変換の関数
////////////////////////////////////////////////////////////

function changeJapanese()
{
	/*
	var myFullURL = document.URL;
	var splitNum = myFullURL.lastIndexOf("/");
	var myURL_first = myFullURL.substring(0,splitNum+1);
	var myURL_second = myFullURL.substring(splitNum+1,splitNum+20);
	
	myURL_second = myURL_second.replace(".html","_j.html");
	
	location.href = myURL_first + myURL_second;
	*/
	
	window.open("http://www.kandagaigo.ac.jp/kuis/sacla/floor/index.html", "_blank");
}

function changeEnglish()
{
	var myFullURL = document.URL;
	var splitNum = myFullURL.lastIndexOf("/");
	var myURL_first = myFullURL.substring(0,splitNum+1);
	var myURL_second = myFullURL.substring(splitNum+1,splitNum+20);
	
	myURL_second = myURL_second.replace("_j.html",".html");
	
	location.href = myURL_first + myURL_second;
}


////////////////////////////////////////////////////////////
//ポップアップウィンドウ用の関数群
////////////////////////////////////////////////////////////

function openPopupWin(aUrl)
{
	window.open(aUrl, "salc_popup", "width=550,scrollbars=no,resizable=yes");
}


////////////////////////////////////////////////////////////
//footer表示の関数
////////////////////////////////////////////////////////////

function salc_displayFooter()
{
	document.writeln('copyright&copy;2010.Self-Access Learning Centre. All Rights Reserved.')
}


////////////////////////////////////////////////////////////
//banner表示の関数
////////////////////////////////////////////////////////////

function salc_menu_banner()
{
	var myFullURL = document.URL;
	var splitNum = myFullURL.lastIndexOf("/");
	var myFileName = myFullURL.substring(splitNum+1,splitNum+20);
	var imgPath;
	
	if(myFileName == "index.html" || myFileName == "")
	{
		imgPath = "images/";
	}
	else
	{
		imgPath = "../images/";
	}
	
	document.writeln('<a href="http://www.kuis.ac.jp/eli/" target="_blank"><img src="' + imgPath + 'eli_bannar.jpg"</a>'); 
}
//Event.observe(window,'load',init);
