/*=========================================================¼³Á¤ º¯¼ö °ª ½ÃÀÛ===============================================*/
//-----------------------------ÇÃ·¡½¬ ¸Þ´º Å¬¸¯½Ã ¸µÅ© °æ·Î ¼³Á¤ ½ÃÀÛ------------------------------------------------------//
var DEFAULT_URL			= "http://"+location.hostname;
var DEFAULT_SSL

if ( location.hostname.indexOf("ediya.frameout.com") == 0 ){
	DEFAULT_SSL			= "http://"+location.hostname;
}else{
	DEFAULT_SSL			= "https://"+location.hostname;
//	DEFAULT_SSL			= "http://"+location.hostname;
}

var page_0_0_0	= DEFAULT_URL + "/default.asp"			//	HOME
var page_0_1_0	= DEFAULT_SSL + "/login/loginFm.asp"	//	·Î±×ÀÎ
var page_0_2_0	= DEFAULT_URL + "/login/logOut.asp"	//	·Î±×¾Æ¿ô
var page_0_3_0	= DEFAULT_URL + "/sitemap.asp"		//	»çÀÌÆ®¸Ê


//EDIYA STORY
var page_1_0_0	= DEFAULT_URL + "/ediyastory/company.asp?F_depth=1&S_depth=1&T_depth=0"	//	EDIYA STORY
var page_1_1_0	= DEFAULT_URL + "/ediyastory/company.asp?F_depth=1&S_depth=1&T_depth=0"		//	EDIYA STORY > È¸»ç¼Ò°³
var page_1_2_0	= DEFAULT_URL + "/ediyastory/ceo.asp?F_depth=1&S_depth=2&T_depth=0"			//	EDIYA STORY > CEO ÀÎ»ç¸»
var page_1_3_0	= DEFAULT_URL + "/ediyastory/lab.asp?F_depth=1&S_depth=3&T_depth=0"	//	EDIYA STORY > Ä¿ÇÇ¿¬±¸¼Ò
var page_1_4_0	= DEFAULT_URL + "/ediyastory/academy.asp?F_depth=1&S_depth=4&T_depth=0"	//	EDIYA STORY > Ä¿ÇÇ¾ÆÄ«µ¥¹Ì
var page_1_5_0	= DEFAULT_URL + "/ediyastory/history.asp?F_depth=1&S_depth=5&T_depth=0"	//	EDIYA STORY > ¿¬Çõ
var page_1_6_0	= DEFAULT_URL + "/ediyastory/contribute00.asp?F_depth=1&S_depth=6&T_depth=0"	//	EDIYA STORY > »çÈ¸°øÇå
var page_1_7_0	= DEFAULT_URL + "/ediyastory/newsLi.asp?F_depth=1&S_depth=7&T_depth=0"		//	EDIYA STORY > ÀÌµð¾ß´º½º
var page_1_8_0	= DEFAULT_URL + "/ediyastory/broadcastLi.asp?F_depth=1&S_depth=8&T_depth=0"	//	EDIYA STORY > º¸µµÀÚ·á
var page_1_9_0	= DEFAULT_URL + "/ediyastory/contactus.asp?F_depth=1&S_depth=9&T_depth=0"	//	EDIYA STORY > Ã£¾Æ¿À½Ã´Â±æ


//COFFEE STORY
var page_2_0_0	= DEFAULT_URL + "/coffeestory/info_coffee_01.asp?F_depth=2&S_depth=1&T_depth=1"		//	COFFEE STORY
var page_2_1_0	= DEFAULT_URL + "/coffeestory/info_coffee_01.asp?F_depth=2&S_depth=1&T_depth=1"		//	COFFEE STORY > Ä¿ÇÇ¶õ
var page_2_1_1	= DEFAULT_URL + "/coffeestory/info_coffee_01.asp?F_depth=2&S_depth=1&T_depth=1"		//	COFFEE STORY > Ä¿ÇÇ¶õ > »ýµÎ ºÐ·ù ¹× Ç°Á¾
var page_2_1_2	= DEFAULT_URL + "/coffeestory/info_coffee_02.asp?F_depth=2&S_depth=1&T_depth=2"		//	COFFEE STORY > Ä¿ÇÇ¶õ > Ä¿ÇÇÀÇ¿ª»ç
var page_2_1_3	= DEFAULT_URL + "/coffeestory/info_coffee_03.asp?F_depth=2&S_depth=1&T_depth=3"		//	COFFEE STORY > Ä¿ÇÇ¶õ > Ä¿ÇÇ»êÁö¿Í »ý»ê±¹
var page_2_2_0	= DEFAULT_URL + "/coffeestory/info_coffee_04.asp?F_depth=2&S_depth=2&T_depth=1"		//	COFFEE STORY > ·Î½ºÆÃ°úºí·»µù
var page_2_2_1	= DEFAULT_URL + "/coffeestory/info_coffee_04.asp?F_depth=2&S_depth=2&T_depth=1"		//	COFFEE STORY > ·Î½ºÆÃ°úºí·»µù > ·Î½ºÆÃ
var page_2_2_2	= DEFAULT_URL + "/coffeestory/info_coffee_05.asp?F_depth=2&S_depth=2&T_depth=2"		//	COFFEE STORY > ·Î½ºÆÃ°úºí·»µù > ºí·»µù
var page_2_2_3	= DEFAULT_URL + "/coffeestory/info_coffee_08.asp?F_depth=2&S_depth=2&T_depth=3"		//	COFFEE STORY > ·Î½ºÆÃ°úºí·»µù > ÀÌµð¾ß·Î½ºÆÃ
var page_2_3_0	= DEFAULT_URL + "/coffeestory/info_coffee_06.asp?F_depth=2&S_depth=3&T_depth=1"		//	COFFEE STORY > Ä¿ÇÇÃßÃâ
var page_2_3_1	= DEFAULT_URL + "/coffeestory/info_coffee_06.asp?F_depth=2&S_depth=3&T_depth=1"		//	COFFEE STORY > Ä¿ÇÇÃßÃâ > Ä¿ÇÇ¿ëÇ°¼Ò°³
var page_2_3_2	= DEFAULT_URL + "/coffeestory/info_coffee_07.asp?F_depth=2&S_depth=3&T_depth=2"		//	COFFEE STORY > Ä¿ÇÇÃßÃâ > Ä¿ÇÇÃßÃâ¹æ¹ý


//À½·á ¹× Á¦Ç°
var page_3_0_0	= DEFAULT_URL + "/product/newproduct.asp?F_depth=3&S_depth=1&T_depth=0"				//	À½·á ¹× Á¦Ç°
var page_3_1_0	= DEFAULT_URL + "/product/newproduct.asp?F_depth=3&S_depth=1&T_depth=0"				//	À½·á ¹× Á¦Ç° > ½ÅÁ¦Ç°
var page_3_2_0	= DEFAULT_URL + "/product/beverages_coffee01.asp?F_depth=3&S_depth=2&T_depth=1"		//	À½·á ¹× Á¦Ç° > Beverages
var page_3_2_1	= DEFAULT_URL + "/product/beverages_coffee01.asp?F_depth=3&S_depth=2&T_depth=1"		//	À½·á ¹× Á¦Ç° > Beverages > Coffee Varieties
var page_3_2_2	= DEFAULT_URL + "/product/beverages_other01.asp?F_depth=3&S_depth=2&T_depth=2"		//	À½·á ¹× Á¦Ç° > Beverages > Other Beverages
var page_3_2_3	= DEFAULT_URL + "/product/beverages_flatccino01.asp?F_depth=3&S_depth=2&T_depth=3"	//	À½·á ¹× Á¦Ç° > Beverages > Flatccino
var page_3_2_4	= DEFAULT_URL + "/product/beverages_tea01.asp?F_depth=3&S_depth=2&T_depth=4"			//	À½·á ¹× Á¦Ç° > Beverages > Tea
var page_3_2_5	= DEFAULT_URL + "/product/beverages_house01.asp?F_depth=3&S_depth=2&T_depth=5"		//	À½·á ¹× Á¦Ç° > Beverages > House Menu
var page_3_3_0	= DEFAULT_URL + "/product/dessert_waffle01.asp?F_depth=3&S_depth=3&T_depth=1"			//	À½·á ¹× Á¦Ç° > Dessert
var page_3_3_1	= DEFAULT_URL + "/product/dessert_waffle01.asp?F_depth=3&S_depth=3&T_depth=1"			//	À½·á ¹× Á¦Ç° > Dessert > Waffle/Honey Bread
var page_3_3_2	= DEFAULT_URL + "/product/dessert_bagel01.asp?F_depth=3&S_depth=3&T_depth=2"			//	À½·á ¹× Á¦Ç° > Dessert > Bagel/Pretzel
var page_3_3_3	= DEFAULT_URL + "/product/dessert_cake01.asp?F_depth=3&S_depth=3&T_depth=3"			//	À½·á ¹× Á¦Ç° > Dessert > Cake
var page_3_3_4	= DEFAULT_URL + "/product/dessert_bun01.asp?F_depth=3&S_depth=3&T_depth=4"			//	À½·á ¹× Á¦Ç° > Dessert > Bun/Muffin/Cookie
var page_3_4_0	= DEFAULT_URL + "/product/md_mug01.asp?F_depth=3&S_depth=4&T_depth=1"					//	À½·á ¹× Á¦Ç° > MD
var page_3_4_1	= DEFAULT_URL + "/product/md_mug01.asp?F_depth=3&S_depth=4&T_depth=1"					//	À½·á ¹× Á¦Ç° > MD > ÅÒºí·¯/¸Ó±×ÄÅ
var page_3_4_2	= DEFAULT_URL + "/product/md_mug02.asp?F_depth=3&S_depth=4&T_depth=2"					//	À½·á ¹× Á¦Ç° > MD > TEA
var page_3_4_3	= DEFAULT_URL + "/product/md_mug03.asp?F_depth=3&S_depth=4&T_depth=3"					//	À½·á ¹× Á¦Ç° > MD > »óÇ°±Ç
var page_3_5_0	= DEFAULT_URL + "/product/beans_info.asp?F_depth=3&S_depth=5&T_depth=1"					//  À½·á ¹× Á¦Ç° > ºí·»µù¿øµÎ
var page_3_6_0	= DEFAULT_URL + "/product/info_calorie_beverages.asp?F_depth=3&S_depth=6&T_depth=1"	//  À½·á ¹× Á¦Ç° > Ä®·Î¸®Á¤º¸


//ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ®
var page_4_0_0	= DEFAULT_URL + "/event/cultureLi.asp?F_depth=4&S_depth=1&T_depth=0"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ®
var page_4_1_0	= DEFAULT_URL + "/event/cultureLi.asp?F_depth=4&S_depth=1&T_depth=0"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > ¹®È­ÀÌº¥Æ®
var page_4_2_0	= DEFAULT_URL + "/event/specialLi.asp?F_depth=4&S_depth=2&T_depth=0"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > ±âÈ¹ÀÌº¥Æ®
var page_4_3_0	= DEFAULT_URL + "/event/onlineLi.asp?F_depth=4&S_depth=3&T_depth=0"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > ¿Â¶óÀÎÇÁ·Î¸ð¼Ç
var page_4_3_1	= DEFAULT_URL + "/event/onlineLi.asp?F_depth=4&S_depth=3&T_depth=1"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > ¿Â¶óÀÎÀÌº¥Æ®
var page_4_3_2	= DEFAULT_URL + "/event/onlineLi.asp?F_depth=4&S_depth=3&T_depth=2"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > ½ÅÁ¦Ç°ÀÌº¥Æ®
var page_4_4_0	= DEFAULT_URL + "/event/campaignLi.asp?F_depth=4&S_depth=4&T_depth=0"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > Ä·ÆäÀÎ
var page_4_5_0	= DEFAULT_URL + "/event/storeLi.asp?F_depth=4&S_depth=5&T_depth=0"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > ¸ÅÀåÇÁ·Î¸ð¼Ç
var page_4_5_1	= DEFAULT_URL + "/event/storeLi.asp?F_depth=4&S_depth=5&T_depth=1"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > ¿ÀÇÂ¸ÅÀåÀÌº¥Æ®
var page_4_5_2	= DEFAULT_URL + "/event/storeLi.asp?F_depth=4&S_depth=5&T_depth=2"		//	ÇÁ·Î¸ð¼Ç¡¤ÀÌº¥Æ® > ¸ÅÀåÀÌº¥Æ®


//STORE
var page_5_0_0	= DEFAULT_URL + "/store/storeLi.asp?F_depth=5&S_depth=1&T_depth=0"		//	STORE
var page_5_1_0	= DEFAULT_URL + "/store/storeLi.asp?F_depth=5&S_depth=1&T_depth=0"		//	STORE > ¸ÅÀåÃ£±â
/*
var page_5_2_0	= "/store/storeInfo.asp?F_depth=5&S_depth=2&T_depth=1"		//	STORE > ÀÌµð¾ß °¡¸ÍÁ¤º¸
var page_5_2_1	= "/store/storeInfo.asp?F_depth=5&S_depth=2&T_depth=1"		//	STORE > ÀÌµð¾ß °¡¸ÍÁ¤º¸ > ÀÌµð¾ß Ä«Æä ¼Ò°³
var page_5_2_2	= "/store/storeStep.asp?F_depth=5&S_depth=2&T_depth=2"		//	STORE > ÀÌµð¾ß °¡¸ÍÁ¤º¸ > °¡¸ÍÀýÂ÷
var page_5_2_3	= "/store/storeGuide.asp?F_depth=5&S_depth=2&T_depth=3"		//	STORE > ÀÌµð¾ß °¡¸ÍÁ¤º¸ > °¡¸Í¾È³»
var page_5_2_4	= "/store/counselFm.asp?F_depth=5&S_depth=2&T_depth=4"		//	STORE > ÀÌµð¾ß °¡¸ÍÁ¤º¸ > °¡¸Í»ó´ã½ÅÃ»
*/

//CUSTOMER
var page_6_0_0	= DEFAULT_URL + "/customer/noticeLi.asp?F_depth=6&S_depth=1&T_depth=0"	//	CUSTOMER
var page_6_1_0	= DEFAULT_URL + "/customer/noticeLi.asp?F_depth=6&S_depth=1&T_depth=0"	//	CUSTOMER > °øÁö»çÇ×
var page_6_2_0	= DEFAULT_URL + "/customer/faqLi.asp?F_depth=6&S_depth=2&T_depth=0"		//	CUSTOMER > FAQ
var page_6_3_0	= DEFAULT_SSL + "/customer/vocFm.asp?F_depth=6&S_depth=3&T_depth=0"		//	CUSTOMER > °í°´ÀÇ¼Ò¸®
var page_6_4_0	= ""	//	CUSTOMER > À¥Å÷
var page_6_5_0	= ""	//	CUSTOMER > ¸â¹ö½Ê


//Á¦ÈÞ¡¤Á¦¾È
var page_7_0_0	= DEFAULT_SSL + "/franchise/suggestFm.asp?F_depth=7&S_depth=1&T_depth=0"	
var page_7_1_0	= DEFAULT_SSL + "/franchise/suggestFm.asp?F_depth=7&S_depth=1&T_depth=0"	//	Á¦ÈÞ¡¤Á¦¾È


//MyPage
var page_8_0_0	= DEFAULT_SSL + "/mypage/mypageEnter.asp?F_depth=8&S_depth=1&T_depth=0"		//	MyPage
var page_8_1_0	= DEFAULT_SSL + "/mypage/mypageEnter.asp?F_depth=8&S_depth=1&T_depth=0"		//	MyPage > °³ÀÎÁ¤º¸ ¼öÁ¤
var page_8_2_0	= ""																		//	MyPage > ¸¶ÀÏ¸®Áö Á¶È¸
var page_8_3_0	= DEFAULT_URL + "/popup/Agreement.asp"										//	ÀÌ¿ë¾à°ü
var page_8_4_0	= DEFAULT_URL + "/popup/Privacy.asp"										//	°³ÀÎÁ¤º¸È£È£Á¤Ã¥
var page_8_5_0	= DEFAULT_URL + "/popup/doNotGatherEmail.asp"								//	ÀÌ¸ÞÀÏ¼öÁý°ÅºÎ


//Ã¤¿ëÁ¤º¸
var page_9_0_0	= DEFAULT_URL + "/recruit/recruit.asp?F_depth=9&S_depth=1&T_depth=0"		//	Ã¤¿ëÁ¤º¸
var page_9_1_0	= DEFAULT_URL + "/recruit/recruit.asp?F_depth=9&S_depth=1&T_depth=0"		//	Ã¤¿ëÁ¤º¸ > ÀÎÀç»ó/º¹¸®ÈÄ»ý
var page_9_2_0	= DEFAULT_URL + "/recruit/recruitLi.asp?F_depth=9&S_depth=2&T_depth=0"		//	Ã¤¿ëÁ¤º¸ > º»»çÃ¤¿ë
var page_9_3_0	= DEFAULT_URL + "/recruit/sidejobLi.asp?F_depth=9&S_depth=3&T_depth=0"		//	Ã¤¿ëÁ¤º¸ > ¾Æ¸£¹ÙÀÌÆ®Ã¤¿ë
var page_9_4_0	= DEFAULT_SSL + "/recruit/recruitFm.asp?F_depth=9&S_depth=4&T_depth=0"		//	Ã¤¿ëÁ¤º¸ > ÀÎÀçµî·Ï


//ÇÁ·»Â÷ÀÌÁî
var page_10_0_0	= DEFAULT_URL + "/franchise/storeGuide.asp?F_depth=10&S_depth=1&T_depth=0"		//	Franchise > 
var page_10_1_0	= DEFAULT_URL + "/franchise/storeGuide.asp?F_depth=10&S_depth=1&T_depth=0"		//	Franchise > °¡¸Í¾È³»
var page_10_2_0	= DEFAULT_URL + "/franchise/storeStep.asp?F_depth=10&S_depth=2&T_depth=0"		//	Franchise > °¡¸ÍÀýÂ÷
var page_10_3_0	= DEFAULT_URL + "/franchise/storeDeco01.asp?F_depth=10&S_depth=3&T_depth=0"		//	Franchise > ÀÎÅ×¸®¾î
var page_10_4_0	= DEFAULT_URL + "/franchise/storeInfo.asp?F_depth=10&S_depth=4&T_depth=0"		//	Franchise > ¸ÅÀå¼Ò°³
var page_10_5_0	= DEFAULT_URL + "/franchise/storeInvest.asp?F_depth=10&S_depth=5&T_depth=0"		//	Franchise > ¿¹»óÅõÀÚºñ¿ë
var page_10_6_0	= DEFAULT_URL + "/franchise/storeFaq.asp?F_depth=10&S_depth=6&T_depth=0"		//	Franchise > FAQ
var page_10_7_0	= DEFAULT_SSL + "/franchise/CounselFm.asp?F_depth=10&S_depth=7&T_depth=0"		//	Franchise > °¡¸Í»ó´ã½ÅÃ»


//È¸¿ø°¡ÀÔ,·Î±×ÀÎ
var page_11_0_0	= DEFAULT_SSL + "/login/loginFm.asp?F_depth=11&S_depth=1&T_depth=0"		// 
var page_11_1_0	= DEFAULT_SSL + "/login/loginFm.asp?F_depth=11&S_depth=1&T_depth=0"		//	·Î±×ÀÎ
var page_11_2_0	= DEFAULT_SSL + "/member/member_join.asp?F_depth=11&S_depth=2&T_depth=0"	//	È¸¿ø°¡ÀÔ
var page_11_3_0	= DEFAULT_SSL + "/login/findMyInfo.asp?F_depth=11&S_depth=3&T_depth=0"	//	¾ÆÀÌµð¹×ºñ¹øÃ£±â


//»çÀÌÆ®¸Ê
var page_12_0_0	= DEFAULT_URL + "/sitemap.asp?F_depth=12&S_depth=1&T_depth=0"		// 


//Á¡ÁÖÀÇ ¹æ
var page_13_0_0	= DEFAULT_URL + "/ADMEdiya/"		// 


//ÀÎÆ®¶ó³Ý
var page_14_0_0	= DEFAULT_URL + "http://mail.ediya.com"		// 



//-----------------------------ÇÃ·¡½¬ ¸Þ´º Å¬¸¯½Ã ¸µÅ© °æ·Î ¼³Á¤ Á¾·á-----------------------------------------------------------------------------------------------------------------------//


//-----------------------------ÇÃ·¡½¬ ¸Þ´º È°¼ºÈ­ ¹× ·ÎÄÉÀÌ¼Ç Ç¥½Ã¿ë ¼³Á¤ ½ÃÀÛ--------------------------------------------------------------------------------------------------------------//

//ÇÃ·¡½¬ º¯¼ö ÀúÀå¿ë Å¬·¡½º
function setFlashVar()
{
	this.F_depth	= "0";
	this.S_depth	= "0";
	this.T_depth	= "0";
	this.locName	= "Home";

	this.setVarsValue = function (arrArg){
		this.F_depth	= arrArg[0];
		this.S_depth	= arrArg[1];
		this.T_depth	= arrArg[2];
		this.locName	= arrArg[3];
	}

	this.setFdepth = function (argFdepth){
		this.F_depth = argFdepth;
	}

	this.setSdepth = function (argSdepth){
		this.S_depth = argSdepth;
	}

	this.setTdepth = function (argTdepth){
		this.T_depth = argTdepth;
	}

	this.setLocName = function (argNumLocName){
		this.locName = argNumLocName;
	}

	this.getFdepth = function (){
		return this.F_depth;
	}

	this.getSdepth = function (){
		return this.S_depth;
	}

	this.getTdepth = function (){
		return this.T_depth;
	}

	this.getLocName = function (){
		return this.locName;
	}
}


//URL¿¡¼­ µð·ºÅä¸®¸í±îÁö ±¸ÇÏ±â(/test/test.asp => /test)
function getURLDirName(){
	var pageUrl = window.location.pathname;			//ÇöÀç ÆäÀÌÁö url
	pageUrl = pageUrl.replace(/\/+/gi, "/");			// /°¡ ¿©·Á¹ø °ãÃÆÀ» °æ¿ì

	//ÆÄÀÏ¸íÀ» Á¦¿ÜÇÑ µð·ºÅä¸®¸í ±¸ÇÏ±â ( /test/index.asp => /test)
	if (pageUrl.lastIndexOf("/") > 1){
		strDirName = pageUrl.substring(0, pageUrl.lastIndexOf("/"));
		strDirName = strDirName.toLowerCase();			//¼Ò¹®ÀÚ·Î º¯°æ
	} else {	//¸ÞÀÎ
		strDirName = pageUrl.substring(0,1);
	}
	return strDirName;
}


//--------------------ÇöÀç ÆäÀÌÁö ¹øÈ£ ¼³Á¤ ½ÃÀÛ----------------------------------------//
var PAGE_URL_DIR			= getURLDirName();					// µð·ºÅä¸® ¸í ±¸ÇÏ±â
var objFlashVars			= new setFlashVar();				// ÇÃ·¡½¬ ÀúÀå °´Ã¼ »ý¼º
//objFlashVars.setVarsValue(FLASH_FLASH_ARRVAR);					// ÆÄ¶ó¸ÞÅÍ °ª ¼ÂÆÃ
//alert(PAGE_URL_DIR);
//--------------------ÇöÀç ÆäÀÌÁö ¹øÈ£ ¼³Á¤ Á¾·á----------------------------------------//


//ssl ÀÎÁõ¼­ ÆÐ½º ¸®ÅÏ
function getPathSSL(path) {
	var returnPath = DEFAULT_SSL + path;
	return returnPath;
}

//sslÀ» »ç¿ë¾ÈÇÏ´Â URL ¸®ÅÏ
function getPathHome(path) {
	var returnPath = DEFAULT_URL + path;
	return returnPath;
}


//·ÎÄÉÀÌ¼Ç Ç¥½Ã ÇÔ¼ö È£ÃâµÇ´Â ºÎºÐ¿¡¼­ <span id="LOCATION_SPAN"></span>
function printPageLocation(){
	try {
		document.write(objFlashVars.getLocName());
	} catch (e) {
//		alert(e.message);
		return;
	}
}


//ÇÃ·¡½¬¿¡¼­ ¸Þ´º Å¬¸¯½Ã È£Ãâ
function pageURL(i,j,k)
{
	//alert(i);
	//alert(j);
	//alert(k);
	try {
		var szHref = "page_" + i +"_"+ j +"_"+ k;
		var pageVal = eval(szHref);

		if (pageVal == ""){
			alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
		}else{
//			window.location.href = DEFAULT_URL + pageVal;
			window.location.href = pageVal;
		}
			/*
		} else if (pageVal == page_0_13_0) {
			window.open(pageVal,"newWin","width=380,height=370,toolbar=no,scrollbars=no,resizable=no");
		} else if (pageVal == page_0_14_0 || pageVal == page_0_15_0 || pageVal == page_0_16_0 || pageVal == page_0_17_0 || pageVal == page_0_18_0 || pageVal == page_0_19_0 || pageVal == page_0_20_0 || pageVal == page_0_21_0) {
			window.open(pageVal);
		} else if (pageVal == page_0_2_0 || pageVal == page_0_3_0 || pageVal == page_0_7_0 || pageVal == page_0_7_1 || pageVal == page_0_7_2 || pageVal == page_0_7_3 || pageVal == page_0_8_7 || pageVal == page_0_8_9 || pageVal == page_0_11_0 || pageVal == page_6_6_0 || pageVal == page_6_7_0 || pageVal == page_11_7_0 || pageVal == page_11_8_0 || pageVal == page_15_3_0) {
			window.location.href = DEFAULT_HOME1 + pageVal;
		} else {
			window.location.href = DEFAULT_URL + pageVal;
		}
			*/
	} catch (e) {
		alert(e.message);
	}
}



// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
}


function treeStatus(arg){
	if(arg == true){
		//arg°ªÀÌ trueÀÎ °æ¿ì °ªÀ» ÀÓ½Ã ÀúÀåÇØ ÁÖ½Ã°í, index.html¿¡¼­ ÇÃ·¡½ÃÆÄ¶ó¹ÌÅÍ°ªÁß 
		//treeMoveÇ×¸ñÀÇ °ªÀ» true·Î ¹ÝÈ¯ÇØÁÖ¸é ÇÃ·¡½Ã ·ÎµùÈÄ µå¸²Æ®¸® Ç×¸ñÀ¸·Î ÀÌµ¿ÇÕ´Ï´Ù.
		
	}else{
		//arg°ªÀÌ falseÀÎ °æ¿ì °ªÀ» ÀÓ½Ã ÀúÀåÇØ ÁÖ½Ã°í, index.html¿¡¼­ ÇÃ·¡½ÃÆÄ¶ó¹ÌÅÍ°ªÁß 
		//treeMoveÇ×¸ñÀÇ °ªÀ» false·Î ¹ÝÈ¯ÇØÁÖ¸é ÇÃ·¡½Ã ·ÎµùÈÄ ¸ÞÀÎºÎÅÍ Á¤»óÀûÀ¸·Î ÇÃ·¹ÀÌÇÕ´Ï´Ù.
		
	}	
}


// ÇÃ·¡½¬ ¶ç¿ì±â
function flash_view_ediya(strSrc, strW, strH, kind){
	var	F_depth		= 0;
	var	S_depth		= 0;
	var	T_depth		= 0;

	try{
		if (typeof(objFlashVars) == "object"){
			F_depth	= objFlashVars.getFdepth();				// Ã¹¹øÂ° ºÐ·ù
			S_depth	= objFlashVars.getSdepth();				// µÎ¹øÂ° ºÐ·ù
			T_depth	= objFlashVars.getTdepth();				// ¼¼¹øÂ° ºÐ·ù
		}
	} catch (e) {
			F_depth	= 0;
			S_depth	= 0;
			T_depth	= 0;
	}

//	strSrc += "?one=" + numA+ "&two=" + numB + "&three=" + numC;
	strSrc += "?F_depth=" + F_depth+ "&S_depth=" + S_depth + "&T_depth=" + T_depth;

	document.write('<Object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH="'+strW+'" HEIGHT="'+strH+'" id="flash' + kind + '" ALIGN="">');
	document.write('<PARAM NAME=movie VALUE="'+strSrc+'"> ');
	document.write('<PARAM NAME=menu VALUE=false> ');
	document.write('<PARAM NAME=quality VALUE=high> ');
	document.write('<PARAM NAME=wmode VALUE=transparent> ');
	document.write('<PARAM NAME=bgcolor VALUE=#CCCCCC> ');
	document.write('<PARAM NAME=allowScriptAccess VALUE=always> ');
	document.write('<EMBED src="'+strSrc+'" menu=false quality=high wmode=transparent bgcolor=#CCCCCC  WIDTH="'+strW+'" HEIGHT="'+strH+'" NAME="company_flash_sub_v1" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always"></EMBED>');
	document.write('</OBJECT>');
}

