 /*
¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ ´ë¸²¿µ¹®È¨ÆäÀÌÁö Nav Js-script ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ


	¡Ý Version		: 1.0 ( ´ë¸² Menu °ü·Ã Js-script)
	¡Ý Author		: ±è°æÈ¯
	¡Ý Product Day	: 2006.06.15
	¡Ý Last Modify	: 2006.06.15
	¡Ý Notice		:

¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ¢Æ
*/

/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ¸Þ´º Object Á¤ÀÇ
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function objmenuItem(code, title, url, comment){	// MenuItem Object »ý¼º
	this.code = code;								// ÆäÀÌÁö ÄÚµå
	this.title = title;								// ¸Þ´º TEXT
	this.url = url;									// ÀÌµ¿ÇÒ URL
	this.comment = comment;							// Ç³¼± µµ¿ò¸»
}

/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý Config Menu ¹è¿­ ÀÌ¸§
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/
glarrmenuname	= "GNMenu";


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ½Ç µ¥ÀÌÅÍ ÀÔ·Â ºÎºÐ ( ÆäÀÌÁöÄÚµå, ¸Þ´º TEXT, ÀÌµ¿ÇÒ URL, Ç³¼± µµ¿ò¸»)
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/
var GNMenu = new Array();
var comment = "javascript:alert('Its Ready...');";

// ´ë¸² home
GNMenu[0]					= new objmenuItem("mn_00_00_00", "Daelim","/index.jsp", "Daelim");


// È¸»ç¼Ò°³
GNMenu[1]					= new objmenuItem("dm_00_00_00","About Company", "/daelim/ceo.jsp", "About Company");
GNMenu[1][0]				= new objmenuItem("dm_01_00_00","CEO Message", "/daelim/ceo.jsp", "CEO Message");
GNMenu[1][1]				= new objmenuItem("dm_02_00_00","History", "/daelim/history4.jsp", "History");
GNMenu[1][2]				= new objmenuItem("dm_03_00_00","Organization", "/daelim/org.jsp", "Organization");
GNMenu[1][3]				= new objmenuItem("dm_04_00_00","Location", "/daelim/head.jsp", "Location");
GNMenu[1][4]				= new objmenuItem("dm_05_00_00","Affiliated Companies", "/daelim/affiliated.jsp", "Affiliated Companies");
GNMenu[1][5]				= new objmenuItem("dm_06_00_00","Overseas Network", "/daelim/overseas.jsp", "Overseas Network");
GNMenu[1][6]				= new objmenuItem("dm_07_00_00","Quality Management", "/daelim/quality/policy.jsp", "Quality Management");
GNMenu[1][6][0]				= new objmenuItem("dm_07_01_00","Policy", "/daelim/quality/policy.jsp", "Policy");
GNMenu[1][6][1]				= new objmenuItem("dm_07_02_00","System", "/daelim/quality/system.jsp", "System");
GNMenu[1][6][2]				= new objmenuItem("dm_07_03_00","Cartificate", "/daelim/quality/report.jsp", "Cartificate");
GNMenu[1][7]				= new objmenuItem("dm_08_00_00","HSE", "/daelim/hse/policy.jsp", "HSE");
GNMenu[1][7][0]				= new objmenuItem("dm_08_01_00","Policy", "/daelim/hse/policy.jsp", "Policy");
GNMenu[1][7][1]				= new objmenuItem("dm_08_02_00","Certificate", "/daelim/hse/certificate.jsp", "Certificate");
GNMenu[1][7][2]				= new objmenuItem("dm_08_03_00","Organization", "/daelim/hse/org.jsp", "Organization");


// »ç¾÷ºÐ¾ß
GNMenu[2]					= new objmenuItem("bz_00_00_00","Our Business", "/biz/build/intro.jsp", "Our Business");
GNMenu[2][0]				= new objmenuItem("bz_01_00_00","Building", "/biz/build/intro.jsp", "Building");
GNMenu[2][0][0]				= new objmenuItem("bz_01_01_00","Introduction", "/biz/build/intro.jsp", "Introduction");
GNMenu[2][0][1]				= new objmenuItem("bz_01_02_00","Office Facilities", "/biz/web_view.jsp?bumun=Chk2&bumun2=A001", "Office Facilities");
GNMenu[2][0][2]				= new objmenuItem("bz_01_03_00","Cultural Facilities", "/biz/web_view.jsp?bumun=Chk2&bumun2=A002", "Cultural Facilities");
GNMenu[2][0][3]				= new objmenuItem("bz_01_04_00","Transport Facilities", "/biz/web_view.jsp?bumun=Chk2&bumun2=A003", "Transport Facilities");
GNMenu[2][0][4]				= new objmenuItem("bz_01_05_00","Education & Research Building", "/biz/web_view.jsp?bumun=Chk2&bumun2=A004", "Education & Research Building");
GNMenu[2][0][5]				= new objmenuItem("bz_01_06_00","Hospital & Sports Facilities", "/biz/web_view.jsp?bumun=Chk2&bumun2=A005", "Hospital & Sports Facilities");

GNMenu[2][1]				= new objmenuItem("bz_02_00_00","Housing", "/biz/housing/intro.jsp", "Housing");
GNMenu[2][1][0]				= new objmenuItem("bz_02_01_00","Introduction", "/biz/housing/intro.jsp", "Introduction");
GNMenu[2][1][1]				= new objmenuItem("bz_02_02_00","Apartments & Other Housing Facilities", "/biz/web_view.jsp?bumun=Chk2&bumun2=B001", "Apartments & Other Housing Facilities");

GNMenu[2][2]				= new objmenuItem("bz_03_00_00","Civil Works", "/biz/civil/intro.jsp", "Civil Works");
GNMenu[2][2][0]				= new objmenuItem("bz_03_01_00","Introduction", "/biz/civil/intro.jsp", "Introduction");
GNMenu[2][2][1]				= new objmenuItem("bz_03_02_00","Expressways¤ýAirports¤ýAirfields¤ýBirdges", "/biz/web_view.jsp?bumun=Chk1&bumun2=B001", "Expressways¤ýAirports¤ýAirfields¤ýBirdges");
GNMenu[2][2][2]				= new objmenuItem("bz_03_03_00","Railroads¤ýSubways¤ýTunnels", "/biz/web_view.jsp?bumun=Chk1&bumun2=B002", "Railroads¤ýSubways¤ýTunnels");
GNMenu[2][2][3]				= new objmenuItem("bz_03_04_00","Dam¤ýIrrigation Facilities¤ýAgricultural Engineering", "/biz/web_view.jsp?bumun=Chk1&bumun2=B003", "Dam¤ýIrrigation Facilities¤ýAgricultural Engineering");
GNMenu[2][2][4]				= new objmenuItem("bz_03_05_00","Habors and Marines Facilities", "/biz/web_view.jsp?bumun=Chk1&bumun2=B004", "Habors and Marines Facilities");

GNMenu[2][3]				= new objmenuItem("bz_04_00_00","Plants", "/biz/plants/intro.jsp", "Plants");
GNMenu[2][3][0]				= new objmenuItem("bz_04_01_00","Introduction", "/biz/plants/intro.jsp", "Introduction");
GNMenu[2][3][1]				= new objmenuItem("bz_04_02_00","Chemical Business", "/biz/web_view.jsp?bumun=Chk3&bumun2=CHE&bumun3=REF", "Chemical Business");
GNMenu[2][3][1][0]			= new objmenuItem("bz_04_02_01","Refinery", "/biz/web_view.jsp?bumun=Chk3&bumun2=CHE&bumun3=REF", "Refinery");
GNMenu[2][3][1][1]			= new objmenuItem("bz_04_02_02","Petro-Chemical ", "/biz/web_view.jsp?bumun=Chk3&bumun2=CHE&bumun3=PET", "Petro-Chemical ");
GNMenu[2][3][1][2]			= new objmenuItem("bz_04_02_03","Oil & Gas", "/biz/web_view.jsp?bumun=Chk3&bumun2=CHE&bumun3=OIL", "Oil & Gas");
GNMenu[2][3][2]				= new objmenuItem("bz_04_03_00","Energy", "/biz/web_view.jsp?bumun=Chk3&bumun2=ENE&bumun3=POW", "Energy");
GNMenu[2][3][2][0]			= new objmenuItem("bz_04_03_01","Power Plant", "/biz/web_view.jsp?bumun=Chk3&bumun2=ENE&bumun3=POW", "Power Plant");
GNMenu[2][3][2][1]			= new objmenuItem("bz_04_03_02","LNG Terminal", "/biz/web_view.jsp?bumun=Chk3&bumun2=ENE&bumun3=LNG", "LNG Terminal");
GNMenu[2][3][2][2]			= new objmenuItem("bz_04_03_03","Others", "/biz/web_view.jsp?bumun=Chk3&bumun2=ENE&bumun3=OTH", "Others");
GNMenu[2][3][3]				= new objmenuItem("bz_04_04_00","Nuclear", "/biz/web_view.jsp?bumun=Chk3&bumun2=NUC", "Nuclear");
GNMenu[2][3][4]				= new objmenuItem("bz_04_05_00","Other Plant", "/biz/web_view.jsp?bumun=Chk3&bumun2=OTH&bumun3=IND", "Other Plant");
GNMenu[2][3][4][0]			= new objmenuItem("bz_04_05_01","Industrial Plant", "/biz/web_view.jsp?bumun=Chk3&bumun2=OTH&bumun3=IND", "Industrial Plant");
GNMenu[2][3][4][1]			= new objmenuItem("bz_04_05_02","Environmental Plant", "/biz/web_view.jsp?bumun=Chk3&bumun2=OTH&bumun3=ENP", "Environmental Plant");
GNMenu[2][3][4][2]			= new objmenuItem("bz_04_05_03","Others", "/biz/web_view.jsp?bumun=Chk3&bumun2=OTH&bumun3=OTH", "Others");


// ÅõÀÚÁ¤º¸
GNMenu[3]					= new objmenuItem("ir_00_00_00","Investor Relations", "/ir/stock/overview.jsp", "Investor Relations");
GNMenu[3][0]				= new objmenuItem("ir_01_00_00","Stock information", "/ir/stock/overview.jsp", "Stock information");
GNMenu[3][0][0]				= new objmenuItem("ir_01_01_00","Stock Overview", "/ir/stock/overview.jsp", "Stock Overview");
//<!-- 06.09.01 9:42 [js] -->
GNMenu[3][0][0][0]			= new objmenuItem("ir_01_01_01","No. of Stocks/Capital Stock", "/ir/stock/overview.jsp", "No. of Stocks/Capital Stock");
GNMenu[3][0][0][1]			= new objmenuItem("ir_01_01_02","Breakdown of Changes in Capital Stock", "/ir/stock/capital_stock.jsp", "Breakdown of Changes in Capital Stock");
GNMenu[3][0][0][2]			= new objmenuItem("ir_01_01_03","Breakdown of Dividends", "/ir/stock/dividends.jsp", "Breakdown of Dividends");

GNMenu[3][0][1]				= new objmenuItem("ir_01_02_00","Board of Directors", "/ir/stock/bod.jsp", "Board of Directors");
GNMenu[3][0][2]				= new objmenuItem("ir_01_03_00","Stock chart", "/ir/stock/chard.jsp", "Stock chart");
GNMenu[3][0][3]				= new objmenuItem("ir_01_04_00","Shareholder", "/ir/stock/share.jsp", "Shareholder");
GNMenu[3][1]				= new objmenuItem("ir_02_00_00","Financial information", "/ir/finance/highlight.jsp", "Financial information");
GNMenu[3][1][0]				= new objmenuItem("ir_02_01_00","Financial Highlight", "/ir/finance/highlight.jsp", "Financial Highlight");
//<!-- 06.09.01 9:44 [js] -->
GNMenu[3][1][0][0]			= new objmenuItem("ir_02_01_01","Sales,Recurring Profit,Net Profit", "/ir/finance/highlight.jsp", "Sales,Recurring Profit,Net Profit");
GNMenu[3][1][0][1]			= new objmenuItem("ir_02_01_02","Debt,Equity", "/ir/finance/highlight1.jsp", "Debt,Equity");
GNMenu[3][1][0][2]			= new objmenuItem("ir_02_01_03","New Order", "/ir/finance/highlight2.jsp", "New Order");
GNMenu[3][1][0][3]			= new objmenuItem("ir_02_01_04","backlogs", "/ir/finance/highlight3.jsp", "backlogs");
GNMenu[3][1][0][4]			= new objmenuItem("ir_02_01_05","Financial Statements summary", "/ir/finance/highlight4.jsp", "Financial Statements summary");

//<!-- 06.09.01 9:49 [js] -->
GNMenu[3][1][1]				= new objmenuItem("ir_02_02_00","Business Performance", "/ir/finance/performance.jsp", "Business Performance");
GNMenu[3][1][1][0]			= new objmenuItem("ir_02_02_01","Business Performance", "/ir/finance/performance?.jspcl=cl1", "Business Performance");
GNMenu[3][1][1][1]			= new objmenuItem("ir_02_02_02","Annual Report", "/ir/finance/performance.jsp?cl=cl3", "Annual Report");

//<!-- 06.09.01 9:52 [js] -->
GNMenu[3][1][2]				= new objmenuItem("ir_02_03_00","Financial Statements", "/ir/finance/sheet.jsp", "Audit report");
//GNMenu[3][1][2][0]			= new objmenuItem("ir_02_03_01","Cash Flow", "/ir/finance/sheet.jsp?cl=cl1", "Cash Flow");
//GNMenu[3][1][2][1]			= new objmenuItem("ir_02_03_02","Profit and Loss(P/I)", "/ir/finance/sheet.jsp?cl=cl2", "Profit and Loss(P/I)");
//GNMenu[3][1][2][2]			= new objmenuItem("ir_02_03_03","Balance Sheet(B/S)", "/ir/finance/sheet.jsp?cl=cl3", "Balance Sheet(B/S)");
//GNMenu[3][1][2][3]			= new objmenuItem("ir_02_03_04","Eamed Surplus", "/ir/finance/sheet.jsp?cl=cl4", "Eamed Surplus");

//<!-- 06.09.01 9:55 [js] -->
GNMenu[3][1][3]				= new objmenuItem("ir_02_04_00","Credit rating", "/ir/finance/rate_1.jsp", "Credit rating");
GNMenu[3][1][3][0]			= new objmenuItem("ir_02_04_01","Carporate Bond", "/ir/finance/rate_1.jsp", "Carporate Bond");
GNMenu[3][1][3][1]			= new objmenuItem("ir_02_04_02","Commercial Paper(CP)", "/ir/finance/rate_2.jsp", "Commercial Paper(CP)");

GNMenu[3][2]				= new objmenuItem("ir_03_00_00","Investor information", "/ir/invest/irnews/list.jsp", "Investor information");
GNMenu[3][2][0]				= new objmenuItem("ir_03_01_00","IR News", "/ir/invest/irnews/list.jsp", "IR News");
GNMenu[3][2][1]				= new objmenuItem("ir_03_02_00","IR Materials", "/ir/invest/irdata/list.jsp", "IR Materials");
GNMenu[3][3]				= new objmenuItem("ir_04_00_00","IR Contact", "/ir/contact.jsp", "IR Contact");


// ¿¬±¸°³¹ß
GNMenu[4]					= new objmenuItem("rd_00_00_00","R&D", "/rnd/institute/intro.jsp", "R&D");
GNMenu[4][0]				= new objmenuItem("rd_01_00_00","Daelim Technology Research Institute", "/rnd/institute/intro.jsp", "Daelim Technology Research Institute");
GNMenu[4][1]				= new objmenuItem("rd_02_00_00","BRIDGE E&C", "/rnd/bridge/home.jsp", "BRIDGE E&C");
GNMenu[4][1][0]				= new objmenuItem("rd_02_01_00","Bridge Home", "/rnd/bridge/home.jsp", "Bridge Home");
GNMenu[4][1][1]				= new objmenuItem("rd_02_02_00","Projects", "/rnd/bridge/projects.jsp", "Projects");
GNMenu[4][1][2]				= new objmenuItem("rd_02_03_00","Suspension Bridge", "/rnd/bridge/suspension.jsp", "Suspension Bridge");
GNMenu[4][1][3]				= new objmenuItem("rd_02_04_00","Cable-Stayed Bridge", "/rnd/bridge/cstay.jsp", "Cable-Stayed Bridge");
GNMenu[4][1][4]				= new objmenuItem("rd_02_05_00","Arch Bridge", "/rnd/bridge/arch.jsp", "Arch Bridge");
GNMenu[4][1][5]				= new objmenuItem("rd_02_06_00","Extradosed Bridge", "/rnd/bridge/extra.jsp", "Extradosed Bridge");



// È«º¸¼¾ÅÍ
GNMenu[5]					= new objmenuItem("pr_00_00_00","PR Room", "/pr/ci.jsp", "PR Room");
GNMenu[5][0]				= new objmenuItem("pr_01_00_00","CI", "/pr/ci.jsp", "CI");
GNMenu[5][1]				= new objmenuItem("pr_02_00_00","BI", "/pr/bi.jsp", "BI");
GNMenu[5][2]				= new objmenuItem("pr_03_00_00","PR Film for Company Presention", "/pr/prfilm.jsp", "PR Film for Company Presention");
GNMenu[5][3]				= new objmenuItem("pr_04_00_00","Social Contribution", "/pr/nanum.jsp", "Social Contribution");


//»çÀÌÆ®¸Ê
GNMenu[6]					= new objmenuItem("si_00_00_00","Site Map", "/sitemap.jsp", "Site Map");
GNMenu[6][0]					= new objmenuItem("si_01_00_00","Site Map", "/sitemap.jsp", "Site Map");

//Contact Us
GNMenu[7]					= new objmenuItem("ct_00_00_00","Contact Us", "javascript:OpenContactpop(15)", "Contact Us");
GNMenu[7][0]					= new objmenuItem("ct_01_00_00","Contact Us", "javascript:OpenContactpop(15)", "Contact Us");

//Korean
GNMenu[8]					= new objmenuItem("kr_00_00_00","Korean", "http://www.daelim.co.kr/index.jsp", "Korean");
GNMenu[8][0]					= new objmenuItem("kr_01_00_00","Korean", "http://www.daelim.co.kr/index.jsp", "Korean");

//What's New
GNMenu[9]					= new objmenuItem("ns_00_00_00","What's New", "/pr/news/list.jsp", "What's New");
GNMenu[9][0]					= new objmenuItem("ns_01_00_00","What's New", "/pr/news/list.jsp", "What's New");

/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý Contact Us Ãß°¡
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function OpenContactpop(ContactCode) {
	var ContactCode = ContactCode;
	window.open ("/daelim/org_contact_pop.jsp?strCPCode="+ContactCode+"", "ContactPOP", 'width=500,height=462,scrollbars=no,status=no');
}


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ¼ýÀÚ ÀÎÁö Ã¼Å©
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fnisnum(argvalue) {
	argvalue = argvalue.toString();
	if (argvalue.length == 0)
		return false;
	for (var n = 0; n < argvalue.length; n++)
		if (argvalue.substring(n, n+1) < "0" || argvalue.substring(n, n+1) > "9")
		return false;
	return true;
}


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ÇÏÀ§ ¹è¿­ÀÇ °¹¼ö Ã¤Å©
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fnobjlength(obj) {
	var count = 0;
	for (var i in obj){
		if (fnisnum(i))
		{count += 1;}
	}
	return count
}



/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ÄÚµå°ªÀ» ¹Þ¾Æ¼­ ¹è¿­ÀÌ¸§À» µ¹·ÁÁÖ´Â ÇÔ¼ö
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fnobjmenu(code){
	var returnarrname;
	var arrname = glarrmenuname ;
	var serchchk = false;

	function serchobj(code, arrname){
		for (var i = 0; i <  fnobjlength(eval(arrname)) ; i ++){
			if (serchchk == true) return;
			var rearrname = arrname + "[" + i + "]";
			if(eval(rearrname).code == code){
				returnarrname = rearrname;
				serchchk = true;
			}
			else if (eval(rearrname).code != code && fnobjlength(eval(rearrname)) != 0 && serchchk == false){
				serchobj(code, rearrname);
			}
		}
	}

	serchobj(code, arrname);
	return returnarrname;
}



/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ÄÚµå°ªÀ» ¹Þ¾Æ¼­ ÇØ´çÆäÀÌÁö·Î ÀÌµ¿
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fngourl(code){
//	alert(code);
	var pageurl;
	pageurl = String(document.location);

// ÇÑ±Û->¿µ¹®ÆäÀÌÁö - »õÃ¢À¸·Î ¸µÅ©
//	if (code=="en_00_00_00"){
//		window.open(eval(fnobjmenu(code)).url);
//	}

	if (pageurl.indexOf("/blog/")<0 || pageurl.indexOf("/cafe/")<0){
		window.top.location.href = eval(fnobjmenu(code)).url;
	}

	else{
		document.location.href = eval(fnobjmenu(code)).url;
	}
	//alert(eval(fnobjmenu(code)).url);
}


/* ¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë
	¡Ý ÆäÀÌÁöURLÀ» ¹Þ¾Æ¼­ »õÃ¢À¸·Î ¶ç¿ì±â. javascript:fnopenwin("http://www.aaa.com/");
¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë¡ë*/

function fnopenwin(page){
	var  windo=eval('window.open("'+page+'")');
}


function fnreplacebrtitle( title , chkbr ){  // chkbr = 1 ÀÌ¸é-> $br À» <br> ·Î, chkbr = 2 -> $br À» "" À¸·Î
	var retrunstr
	if (chkbr == 1)
	{
		retrunstr = title.replace("$br", "<br>");
	}else{
		retrunstr = title.replace("$br", "");
	}
	return retrunstr;
}


function newwindow(URL,width,height) {
	var str,width,height;
	str="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,";
	str=str+"width="+width;
	str=str+",height="+height+"'";
	window.open(URL,'remote',str);
}

function Setupmenu(code){
	document.getElementById('currlocation').innerHTML = fn_currlocatin(code);
	menuactive(code);
}

function fncurrlocatin(code){
	var parcode = code.split("_");
	var objname = "GNMenu"
	var returntext = "<img src='/images/bull_1.gif'  align=absmiddle ><a href='/' title=\"HOME\" class=MiddleNav> HOME </a> ";
	for (var i=0; i < 4 ; i++ ){
		for (var j=0; j < fnobjlength(eval(objname)); j ++ )
		{
			var menucode	=	eval(objname + "[" + j + "]" + ".code").split("_")
			if ( menucode[i] == parcode[i] ){
				if (i < 4 ){ var nexti	= i + 1; }else{nexti = i;}
				if ( parcode[nexti] != "00" && nexti != 4 ){
					returntext = returntext + "&nbsp;>&nbsp;" + "<a href=" + eval(objname + "[" + j + "]" + ".url") +" title=\"" + eval(objname + "[" + j + "]" + ".comment") + "\" class=\"MiddleNav\">" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</a>";
					break;
				}
				else{
					if( parcode[0] == "dm") {
						returntext = returntext + "&nbsp;>&nbsp;" + "<font color='#323499'><b>" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></font>";
					}
					else if( parcode[0] == "bz") {
						returntext = returntext + "&nbsp;>&nbsp;" + "<font color='#716222'><b>" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></font>";
					}
					else if( parcode[0] == "ir") {
						returntext = returntext + "&nbsp;>&nbsp;" + "<font color='#0A647D'><b>" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></font>";
					}
					else if( parcode[0] == "rd") {
						returntext = returntext + "&nbsp;>&nbsp;" + "<font color='#575E14'><b>" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></font>";
					}
					else if( parcode[0] == "pr") {
						returntext = returntext + "&nbsp;>&nbsp;" + "<font color='#008ABB'><b>" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></font>";
					}
					else if( parcode[0] == "nn") {
						returntext = returntext + "&nbsp;>&nbsp;" + "<font color='#791E9C'><b>" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></font>";
					}
					else if( parcode[0] == "cr") {
						returntext = returntext + "&nbsp;>&nbsp;" + "<font color='#D25D13'><b>" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></font>";
					}
					else {
						returntext = returntext + "&nbsp;>&nbsp;" + "<font color='#014D43'><b>" + fnreplacebrtitle( eval(objname + "[" + j + "]" + ".title") , 2 ) + "</b></font>";
					}
					break;
				}
			}else if(eval(objname+".code") == code){
				break;
			}
		}
		objname = objname + "[" + j + "]";
	}
	if (document.getElementById('currlocation'))
	{document.getElementById('currlocation').innerHTML = returntext;
	}

}
function fldown(URL){
document.all.ifrm.src=URL;

}

function fldownpop(URL){
		var str,width,height;

		str="'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,top=3000,left=4000,";
		str=str+"width=1";
		str=str+",height=1'";
		newwin = window.open(URL,'remote',str);

}


//  20081212 Ãß°¡±¸¹®

	function businessLink(param){
	 if (param == "00"){ //building
	  document.location.href = "/biz/build/intro.jsp";
	 }else if (param == "01"){ //housing
	  document.location.href = "/biz/housing/intro.jsp";
	 }else if (param == "02"){ //civil works
	  document.location.href = "/biz/civil/intro.jsp";
	 }else if (param == "03"){ //plants
	  document.location.href = "/biz/plants/intro.jsp";
	 }
	}

	function mainLink(param){
	 if (param == "00"){ //Annual 2009
	  //document.location.href = "/data/2009Annual.pdf";
	  window.open("/data/2009annual.pdf","Annual2009");
	 }else if (param == "01"){ //2010 IR
	  document.location.href = "/ir/invest/irdata/view.jsp?pageNum=1&boardtype=ENGIRPds&ctgr=ENGIRPds&no_rgst=1537&scol=sbjt&sval=";
	 }else if (param == "02"){ //Investor Relations
	  document.location.href = "/ir/invest/irdata/list.jsp";
	 }else if (param == "03"){ //Stock Info
	  document.location.href = "/ir/stock/overview.jsp";
	 }
	}
