
/* ロールオーバー */
var SwImg; SwImg = new Array;

ImgPreload('imgBack', '../images/button_back_off.gif', '../images/button_back_on.gif');
ImgPreload('imgNext', '../images/button_next.gif', '../images/button_next_on.gif');
ImgPreload('imgPre', '../images/button_pre.gif', '../images/button_pre_on.gif');


/* 全ページのナビゲーション　*/
ImgPreload('imgHome', '../images/button_home.gif', '../images/button_home_on.gif');
ImgPreload('imgIndexBriefing', '../images/button_arrow_orange.gif', '../images/button_arrow_orange_on.gif');
ImgPreload('imgIndexCounseling', '../images/button_arrow_orange.gif', '../images/button_arrow_orange_on.gif');
ImgPreload('imgIndexNews', '../images/button_arrow_blue.gif', '../images/button_arrow_blue_on.gif');

/*  topページ */
ImgPreload('imgInformationInternship', '../images/button_arrow_gray.gif', '../images/button_arrow_gray_on.gif');
ImgPreload('imgInformationStudent', '../images/button_arrow_gray.gif', '../images/button_arrow_gray_on.gif');
ImgPreload('imgInformationSociety', '../images/button_arrow_gray.gif', '../images/button_arrow_gray_on.gif');
ImgPreload('imgInternshipProgram', '../images/button_arrow_yellow.gif', '../images/button_arrow_yellow_on.gif');
ImgPreload('imgInternshipActivity', '../images/button_arrow_yellow.gif', '../images/button_arrow_yellow_on.gif');
ImgPreload('imgInternshipCost', '../images/button_arrow_yellow.gif', '../images/button_arrow_yellow_on.gif');
ImgPreload('imgInternshipFlow', '../images/button_arrow_yellow.gif', '../images/button_arrow_yellow_on.gif');
ImgPreload('imgInternshipSupport', '../images/button_arrow_yellow.gif', '../images/button_arrow_yellow_on.gif');
ImgPreload('imgInternshipFaq', '../images/button_arrow_yellow.gif', '../images/button_arrow_yellow_on.gif');
ImgPreload('imgTrajalRecept', '../images/button_recept_green.gif', '../images/button_recept_green_on.gif');
ImgPreload('imgIndexInternship', '../images/button_arrow_orange.gif', '../images/button_arrow_orange_on.gif');
ImgPreload('imgIndexTrajal', '../images/button_arrow_green.gif', '../images/button_arrow_green_on.gif');


/*  internship/internship_cost */
ImgPreload('imgInternshipDocument', '../images/internship/button_documents.gif', '../images/internship/button_documents_on.gif');

/* インターンシップのカテゴリ internship/program_  */
ImgPreload('imgHotel', '../images/internship/button_hotel_off.gif', '../images/internship/button_hotel_on.gif');
ImgPreload('imgTravel', '../images/internship/button_travel_off.gif', '../images/internship/button_travel_on.gif');
ImgPreload('imgCruise', '../images/internship/button_cruise_off.gif', '../images/internship/button_cruise_on.gif');

/* FAQのカテゴリ internship/faq_ */
ImgPreload('imgInternship', '../images/internship/button_faq_internship_off.gif', '../images/internship/button_faq_internship_on.gif');
ImgPreload('imgLanguage', '../images/internship/button_faq_language_off.gif', '../images/internship/button_faq_language_on.gif');
ImgPreload('imgRecruit', '../images/internship/button_faq_recruit_off.gif', '../images/internship/button_faq_recruit_on.gif');
ImgPreload('imgCost', '../images/internship/button_faq_cost_off.gif', '../images/internship/button_faq_cost_on.gif');

/* Information */
ImgPreload('imgInformationProgram', '../images/information/button_internship_program.gif', '../images/information/button_internship_program_on.gif');
ImgPreload('imgInformationFlow', '../images/information/button_internship_flow.gif', '../images/information/button_internship_flow_on.gif');
ImgPreload('imgInformationSupport', '../images/information/button_internship_support.gif', '../images/information/button_internship_support_on.gif');
ImgPreload('imgInformationBriefing', '../images/information/button_internship_briefing.gif', '../images/information/button_internship_briefing_on.gif');
ImgPreload('imgInformationRecept', '../images/information/button_recept.gif', '../images/information/button_recept_on.gif');
ImgPreload('imgInformationStudentSite', '../images/information/button_student_site.gif', '../images/information/button_student_site_on.gif');


/*  briefing/index */
ImgPreload('imgBriefingTokyo', '../images/briefing/button_tokyo.gif', '../images/briefing/button_tokyo_on.gif');
ImgPreload('imgBriefingOsaka', '../images/briefing/button_osaka.gif', '../images/briefing/button_osaka_on.gif');
ImgPreload('imgBriefingFukuoka', '../images/briefing/button_fukuoka.gif', '../images/briefing/button_fukuoka_on.gif');
ImgPreload('imgBriefingSapporo', '../images/briefing/button_Sapporo.gif', '../images/briefing/button_sapporo_on.gif');
ImgPreload('imgBriefingNagoya', '../images/briefing/button_nagoya.gif', '../images/briefing/button_nagoya_on.gif');
ImgPreload('imgBriefingReceptBriefing', '../images/briefing/button_briefing_recept.gif', '../images/briefing/button_briefing_recept_on.gif');
ImgPreload('imgBriefingReceptCounseling', '../images/briefing/button_counseling_recept.gif', '../images/briefing/button_counseling_recept_on.gif');

/*  counseling/index */
ImgPreload('imgCounselingRecept', '../images/counseling/button_recept.gif', '../images/counseling/button_recept_on.gif');


/* 英語版のカテゴリ english/  */
ImgPreload('imgEnglishTrajal', '../images/english/button_trajal_internship_off.gif', '../images/english/button_trajal_internship_on.gif');
ImgPreload('imgEnglishFaq', '../images/english/button_faq_off.gif', '../images/english/button_faq_on.gif');
ImgPreload('imgEnglishGroup', '../images/english/button_group_off.gif', '../images/english/button_group_on.gif');
ImgPreload('imgEnglishRegistration', '../images/english/button_registration_off.gif', '../images/english/button_registration_on.gif');
ImgPreload('imgEnglishJapanese', '../images/english/button_japanese.gif', '../images/english/button_japanese_on.gif');


function ImgPreload() {
	var N = ImgPreload.arguments[0];
	SwImg[N] = new Image();
	SwImg[N][0] = new Image();
	SwImg[N][0].src = ImgPreload.arguments[1];
	SwImg[N][1] = new Image();
	SwImg[N][1].src = ImgPreload.arguments[2];
}


function ImgChenge() {
	var ID = ImgChenge.arguments[0];
	var N  = ImgChenge.arguments[1];
	document.images[ID].src = SwImg[ID][N].src;
}


/* プルダウンメニュー　*/
var isPullDownMenuOpen = false;
var timeOutPullDownSecond = 6000;
function pulldownmenuOpen(menuName)
{
	if( isPullDownMenuOpen == false ){
		document.getElementById(menuName).style.visibility = "visible";
		pulldownTimeOut(menuName);
		isPullDownMenuOpen = true;
	}
}
function pulldownmenuClose(menuName)
{
	document.getElementById(menuName).style.visibility = "hidden";
	isPullDownMenuOpen = false;
}

function pulldownTimeOut(menuName){
	setTimeout("pulldownmenuClose(\'"+menuName+"\')", timeOutPullDownSecond );
}
