var imgPath = '../inc/graphic/';
var ovImg;
var menus = [
				['tm_professional.gif', 'tm_professional_over.gif'],
				['tm_work.gif', 'tm_work_over.gif'],
				['tm_internship.gif', 'tm_internship_over.gif'],
				['tm_dance.gif', 'tm_dance_over.gif'],
				['tm_school_intro.gif', 'tm_school_intro_over.gif'],
				['tm_genchi_support.gif', 'tm_genchi_support_over.gif'],	
	
				['bm_home.gif', 'bm_home_over.gif'],
				['bm_about.gif', 'bm_about_over.gif'],
				['bm_contact.gif', 'bm_contact_over.gif'],
				['bm_english.gif', 'bm_english_over.gif'],
	
				['bm_open.gif', 'bm_open_over.gif'],
				['bm_information.gif', 'bm_information_over.gif'],
				['bm_news.gif', 'bm_news_over.gif']
			];

function preload () {
	ovImg = new Array (menus.length);
	for(var i = 0; i < menus.length; i++)
	{
		ovImg[i] = new Image;
		ovImg[i].src = imgPath + menus[i][1];
	}
}
function mnOver (id) {
	document.getElementById(id).src = ovImg[id.substr(1)].src;
}
function mnOut (id) {
	document.getElementById(id).src = imgPath + menus[id.substr(1)][0];
}
function markCurPage (curP) {
	menus[curP][0] = menus[curP][1];
	document.getElementById('m' + curP).src = ovImg[curP].src;
}
function openW (url) {
	var expW = window.open (url,'exp','top=100,left=50,width=770,height=480,scrollbars=1');
	expW.focus ();
}
