//¸ÞÀÎ ÀÌº¥Æ®
function layer_menu_link(index)
{
	var root = window.documentRoot;
	if(index == "1") location.href = root + "event/current_event.php";
	else if(index == "2") location.href = root + "scholarship/scholarships.php";
}	

//»ó´Ü¿¡ homeµîµî ¸µÅ©
function topMenu(index)
{
	var root = window.documentRoot;
	if(index == "1") location.href = root + "index.php";
	else if(index == "2") location.href = root + "sitemap/sitemap.php";
	else if(index == "3") location.href = root + "consult/useful_links.php";
	else if(index == "4") location.href = root + "intro/international.php?#contact";
	else if(index == "5") window.open("http://studyinaustralia.gov.au/");
}

function goAeiMain()
{
	location.href = window.documentRoot + "index.php";
}

function top_menu_link(index)
{
	//alert(index);
	var root = window.documentRoot;
	//if(index == "1") location.href = root + "";
	if(index == "1") location.href = root + "intro/greetings.php";
	else if(index == "11") location.href = root + "intro/greetings.php";
	else if(index == "12") location.href = root + "intro/international.php";
	else if(index == "13") location.href = root + "intro/notice.php";
	else if(index == "14") location.href = root + "intro/location.php";
	
	else if(index == "2") location.href = root + "study/education_system.php";
	else if(index == "21") location.href = root + "study/education_system.php";
	else if(index == "22") location.href = root + "study/10_reasons.php";
	else if(index == "23") location.href = root + "study/guide.php";
	else if(index == "24") location.href = root + "study/higher_education_1.php";
	else if(index == "25") location.href = root + "study/higher_education_2.php";

	else if(index == "26") location.href = root + "study/schools.php";
	else if(index == "27") location.href = root + "study/vocational_education.php";
	else if(index == "28") location.href = root + "study/english.php";
	else if(index == "29") location.href = root + "study/testing_systems.php";
	else if(index == "210") location.href = root + "study/study_tour.php";
	else if(index == "211") location.href = root + "study/working_holiday.php";
	else if(index == "212") location.href = root + "study/higher_visa.php";

	else if(index == "3") location.href = root + "school/profiles.php";
	else if(index == "31") location.href = root + "school/profiles.php";
	else if(index == "32") location.href = root + "school/business.php";
	else if(index == "33") location.href = root + "school/computing.php";
	else if(index == "34") location.href = root + "school/hospitality.php";
	else if(index == "35") location.href = root + "school/language.php";

	else if(index == "36") location.href = root + "school/technoligy.php";
	else if(index == "37") location.href = root + "school/music_dance.php";
	else if(index == "38") location.href = root + "school/art_design.php";
	else if(index == "39") location.href = root + "school/science_engineering.php";
	else if(index == "310") location.href = root + "school/law.php";
	
	else if(index == "4") location.href = root + "yuhack/agent.php";
	else if(index == "41") location.href = root + "yuhack/agent.php";
	else if(index == "42") location.href = root + "yuhack/agent_trainingprograms.php";
	else if(index == "43") location.href = root + "yuhack/agent_db.php";
	else if(index == "44") location.href = root + "yuhack/agent_registration.php";
	
	else if(index == "5") location.href = root + "dongmun/alumni_stories.php";
	else if(index == "51") location.href = root + "dongmun/alumni_stories.php";
	else if(index == "52") window.open("http://alumni.aei.or.kr");
	else if(index == "53") window.open("http://alumni.aei.or.kr/member_join.html");
	else if(index == "54") location.href = root + "dongmun/alumni_businessdirectory.php";
	else if(index == "55") location.href = root + "dongmun/businessdirectory_registration.php";
	
	else if(index == "6") location.href = root + "world/didyouknow.php";
	else if(index == "61") location.href = root + "world/didyouknow.php";
	else if(index == "62") window.open("http://www.dfat.gov.au/aib/index.html");
	else if(index == "63") window.open("http://www.aei.or.kr/auskorea/index.htm");
	
	else if(index == "7") location.href = root + "consult/online_con_list.php";
	else if(index == "71") location.href = root + "consult/online_con_list.php";
	else if(index == "72") location.href = root + "consult/faq.php";
	else if(index == "73") location.href = root + "consult/download.php";
	else if(index == "74") location.href = root + "consult/useful_links.php";
	else if(index == "75") location.href = root + "consult/information_search.php";

	else if(index == "8") location.href = root + "media/scrapbook.php";
	else if(index == "81") location.href = root + "media/scrapbook.php";
	else if(index == "82") location.href = root + "media/echannel.php";
	else if(index == "83") location.href = root + "media/marketing.php";
	else if(index == "84") top.location.href = root + "media/tv_inkorea.php";

	else
	{
		alert("ÁØºñÁßÀÔ´Ï´Ù.");
	}
}

function subBannerLink()
{
	window.open("http://www.studyinaustralia.gov.au/Sia/en/Help/Help.htm")
}