
/*********************************************************************
File Name:	mapover.js
File Info:	Javascript
Author:		WEB DESIGN LAB
		http://www.webdlab.com/
Last Modified:	10.01.2009
*********************************************************************/
/*--------------------------------------------------------------------
Script
--------------------------------------------------------------------*/

var mapimg = new Array(3);
mapimg[0] = 'images/topKnow.jpg';
mapimg[1] = 'images/topKnowKinjo_o.jpg';
mapimg[2] = 'images/topKnowSpecial_o.jpg';
mapimg[3] = 'images/topKnowTalk_o.jpg';
mapimg[4] = 'images/topKnowBlog_o.jpg';
mapimg[5] = 'images/topKnowClub_o.jpg';
mapimg[6] = 'images/topKnowGuide_o.jpg';
mapimg[7] = 'images/topKnowPublic_o.jpg';

function mapover() {
	
	/*金城大学コース*/
	document.getElementById('kinjo').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[1];
	}
	document.getElementById('kinjo').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('kinjo').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	/*特別進学コース*/
	document.getElementById('special').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[2];
	}
	document.getElementById('special').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('special').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	/*卒業生が語る遊学館*/
	document.getElementById('talk').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[3];
	}
	document.getElementById('talk').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('talk').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	/*先生ブログ*/
	document.getElementById('blog').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[4];
	}
	document.getElementById('blog').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('blog').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	/*部活動*/
	document.getElementById('club').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[5];
	}
	document.getElementById('club').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('club').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	
	/*施設・校舎*/
	document.getElementById('guide').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[6];
	}
	document.getElementById('guide').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('guide').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}

	/*一般進学コース*/
	document.getElementById('public').onmouseover = function() {
		document.getElementById('cmap').src = mapimg[7];
	}
	document.getElementById('public').onmouseout = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
	document.getElementById('public').onclick = function() {
		document.getElementById('cmap').src = mapimg[0];
	}
}

if(window.addEventListener) {
	window.addEventListener("load",mapover,false);
} else if(window.attachEvent) {
	window.attachEvent("onload",mapover);
}

