	function getSelectedValue(obj) {
		for ( i = 1 ; i < obj.options.length ; i++ ) {
			if ( obj.options[i].selected ) {
			//	return true;
				return obj.options[i].value;
				break;
			}
		}
		return false;
	}
	function goHomepage(frm) {

		var selectsite = getSelectedValue(frm.selectsite);

		if(selectsite == false)
		{
			return false;
		}

		var selectName = document.homePages.selectName.value;



		goUrl_site(selectsite)

  		return false;
	}
	function goUrl_site(url) {
		if ( url.indexOf("http://") > -1 ) {
			winWidth = screen.width;
			winHeight = screen.height;
			window.open( url, "", "left=0,top=0,width=" + winWidth + ",height=" + winHeight + ",toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1" );
		} else {
			location.href = url;
		}
	}
// ÇªÅÍ ½ÃÀÛ -------------------------------------------------------------------
document.write('<div id="footer">')
document.write('	<table width="870" style="background:url(/2007/img/inc/footer_bg.gif) repeat-x;">')
document.write('	<tr>')
document.write('		<td height="3" colspan="3"></td>')
document.write('	</tr>')
document.write('	<tr>')
document.write('		<td valign="top" rowspan="2" width="169" height="88"><img src="/2007/img/main/new_footer_1.gif" border="0" alt="ÄÚ·¹ÀÏ ¿ìÆí¹øÈ£ 300-720 ´ëÀü±¤¿ª½Ã µ¿±¸ ¼ÒÁ¦µ¿ 293-74 tel:1544-7788 | 1588-7788 fax : 042-259-2197 Copyright"></td>')
document.write('		<td valign="top" colspan="2" width="701" height="38"><img src="/2007/img/main/new_footer_2.gif" border="0" usemap="#footerImageMap1" alt="»óÈ£ : ÇÑ±¹Ã¶µµ°ø»ç ´ëÇ¥ÀÚ : ÇãÁØ¿µ E-MAIL : admin@korail.com »ç¾÷ÀÚµî·Ï¹øÈ£ 314-82-10024 Åë½ÅÆÇ¸Å¾÷½Å°í : ´ëÀü¼­±¸ - 0280È£ Copyright(c) 2007 By korea RAILROAD All Rights Reserved."></td>')
document.write('	</tr>')
document.write('	<tr>')
document.write('		<td valign="top" width="542" height="50"><img src="/2007/img/main/new_footer_3.gif" border="0" usemap="#footerImageMap2" alt=""></td>')
document.write('		<td align="right">')
document.write('			<a href="http://news.korail.com" target="_blank"><img src="/2007/img/top_new/btn_gonew.gif" alt="ÄÚ·¹ÀÏ´º½º"></a>')
document.write('            <form name="homePages" method="post" action="/2007/main/go_Homepage.jsp" onsubmit="return goHomepage(this);" style="display: inline;">  ')
document.write('            	<input type="hidden" name="selectName" value=""/> ')
document.write('        			<select name="selectsite" title="ÄÚ·¹ÀÏ°ü·Ã »çÀÌÆ® ¹Ù·Î°¡±â" style="width:120px">')
document.write('        				<option value="#" selected="selected">ÄÚ·¹ÀÏ°ü·Ã »çÀÌÆ®</option>')
document.write('        				<option value="http://logis.korail.go.kr/index.jsp">¹°·ùÁ¤º¸</option>')
document.write('        				<option value="http://info.korail.com/2007/kra/ope/ope03000/w_ope03100.jsp">À±¸®°æ¿µ</option>')
document.write('        				<option value="http://info.korail.com/2005/html/company/co001/co001001006_login.html">ÀÌ»çÈ¸Ä¿¹Â´ÏÆ¼</option>')
document.write('        				<option value="http://ebid.korail.com">Á¶´Þ¤ýÀÔÂû</option>')
document.write('        				<option value="http://info.korail.com/2007/kra/gal/gal01000/w_gal01100.jsp">Ã¶µµ¹Ú¹°°ü</option>')
document.write('        				<option value="http://nosa.korail.com/pgm/Nosa/login.jsp">³ë»çÇÑ¸¶´ç</option>')
document.write('        				<option value="http://news.korail.com/">ÄÚ·¹ÀÏ´º½º</option>')
document.write('        				<option value="http://webzine.korail.com/">ÄÚ·¹ÀÏÀ¥Áø</option>')
document.write('        				<option value="http://photo.korail.com" >»çÁøÀ¸·Î º¸´Â ÄÚ·¹ÀÏ</option>')
document.write('        				<option value="http://www.trainshop.co.kr" >Æ®·¹ÀÎ¼¥</option>')
document.write('        			</select>')
document.write('                    <input type="image" src="/2007/img/common/btn_go.gif" align="absmiddle" style="width:27px; height:12px;" title="¹Ù·Î°¡±â" alt="¹Ù·Î°¡±â"/>')
document.write('            </form>')
document.write('		</td>')
document.write('	</tr>')
document.write('	<tr>')
document.write('		<td height="7"></td>')
document.write('	</tr>')
document.write('	</table>')
document.write('	<map name="footerImageMap1">')
document.write('	<area shape="rect" coords="15, 8, 103, 32"  href="http://info.korail.com/2007/kra/ope/ope02000/w_ope02602.jsp" alt="ÇÑ±¹ÀÇ °æ¿µ´ë»ó 5³â Áö¼Ó ¼ö»ó">')
document.write('	<area shape="rect" coords="114, 8, 218, 32" href="http://info.korail.com/2007/kra/ope/ope02000/w_ope02600.jsp" alt="±¹³»¼­ºñ½º±â°ü ÃÖÃÊ SGS¼­ºñ½ºÇ°ÁúÀÎÁõ">')
document.write('	<area shape="rect" coords="238, 8, 331, 32" href="http://info.korail.com/2007/kra/ope/ope02000/w_ope02602.jsp" alt="Á¤ºÎÇõ½ÅÆò°¡ ÃÖ¿ì¼ö±â°ü ¼±Á¤">')
document.write('	<area shape="rect" coords="345, 8, 445, 32" href="http://info.korail.com/2007/kra/ope/ope02000/w_ope02600.jsp" alt="°í»ö¼­ºñ½ºÇåÀå ´ë»ó(¿ì¼ö±â°üÀÎÁõ)">')
document.write('	<area shape="rect" coords="462, 8, 584, 32" href="http://info.korail.com/2007/kra/ope/ope02000/w_ope02602.jsp" alt="ºÎÆÐ¹æÁöÁ¾ÇÕÆò°¡ ´ëÅë·É»ó ¼ö»ó">')
document.write('	<area shape="rect" coords="595, 8, 690, 32" href="http://info.korail.com/2007/kra/ope/ope02000/w_ope02603.jsp" alt="2008 ¸Þ¼¼³ª´ë»ó Ã¢ÀÇ»ó ¼ö»ó">')
document.write('	</map>')
document.write('	<map name="footerImageMap2">')
document.write('	<area shape="rect" coords="4, 3, 60, 21"    href="http://info.korail.com/2007/kra/ope/ope02000/w_ope02300.jsp" alt="°í°´¼­ºñ½ºÇåÀå">')
document.write('	<area shape="rect" coords="68, 3, 101, 21"  href="http://info.korail.com/2007/kra/new/new02000/w_new02100.jsp" alt="º¸µµÀÚ·á">')
document.write('	<area shape="rect" coords="109, 3, 197, 21" href=javascript:WinOpen("http://info.korail.com/2007/kra/pol/pol01000/w_pol01100.jsp","pop1","622","655","yes") alt="¿©°´¿î¼Û¾à°ü ¹× ºÎ¼Ó¾à°ü">')
document.write('	<area shape="rect" coords="205, 3, 255, 21" href="http://info.korail.com/2007/cus/cus03000/w_cus03100.jsp" alt="ÇàÁ¤Á¤º¸°ø°³">')
document.write('	<area shape="rect" coords="263, 3, 327, 21" href=javascript:WinOpen("http://info.korail.com/2007/kra/pol/pol01000/w_pol01200.jsp","pop2","622","655","yes") alt="°³ÀÎÁ¤º¸º¸È£Á¤Ã¥">')
document.write('	<area shape="rect" coords="335, 3, 407, 21" href=javascript:WinOpen("http://info.korail.com/2007/kra/pol/pol01000/w_pol01300.jsp","pop3","622","655","yes") alt="ÀÌ¸ÞÀÏ¹«´Ü¼öÁý°ÅºÎ">')
document.write('	<area shape="rect" coords="415, 3, 449, 21" href="http://www.korail.com/etc/adv/ad_info01.html" target="_blank" alt="±¤°í¾È³»">')
document.write('	<area shape="rect" coords="457, 3, 499, 21" href=javascript:WinOpen("http://info.korail.com/2007/kra/pol/pol01000/w_pol01400.jsp","pop4","622","655","yes") alt="ÀúÀÛ±ÇÁ¤Ã¥">')
document.write('	<area shape="rect" coords="507, 3, 540, 21" href="http://info.korail.com/2007/smap/smap01000/w_smap01100.jsp" alt="»çÀÌÆ®¸Ê">')
document.write('	</map>')
document.write('</div>')
// ÇªÅÍ ³¡ ---------------------------------------------------------------------


// ¹Ù·Î°¡±â ¸Þ´º ½ÃÀÛ ----------------------------------------------------------
document.write('<div id="Top_Layer" class="quick" >                                                                                                                                               ')
document.write('<style type="text/css">                                                                                                                                                          ')
document.write('    image { border: none; }                                                                                                                                                      ')
document.write('    .quick_f { font-size: 0; width: 81px; }                                                                                                                                      ')
document.write('    .quick_fl { font-size: 0; margin: 5px 0 10 0; }           								    ')
document.write('    .quick_fm { font-size: 0; }         								 ')
document.write('    p.btn { margin: 0; padding: 0 0 4px 0; font-size: 0; text-align: center; }                                                                                                   ')

document.write('</style>                                                                                                                                                                         ')
document.write('<div class="quick_f">                                                                                                                                                            ')
document.write('<div class="quick_fm">                                                                                                                                                           ')
document.write('                 						                                                                                                                                                                ')
document.write('<a href=javascript:WinOpen("http://info.korail.com/2007/cus/cus09000/w_cus09200.jsp","itvoc","750","600","yes")><img src="/2007/img/main_200811/bnr_it1.jpg"></a>        ')
document.write('</div>        ')
document.write('<div class="quick_fl">                                                                                                                                                           ')
document.write('                                                                                                                                                                                 ')
document.write('<script>insertFlashObject("/2007/img/main_200811/Main_QuickMenu.swf" , 81 , 269 , "xmlURL=/2007/xml/letfQuick.xml" , "leftQuick" , "always" , "transparent" ,  "false");</script>        ')
document.write('<div>                                                                                                                                                                            ')
document.write('</div>                                                                                                                                                                           ')
// ¹Ù·Î°¡±â ¸Þ´º ³¡ ------------------------------------------------------------


// ¿ìÃø ±¤°í¹è³Ê ½ÃÀÛ ----------------------------------------------------------
document.write('<table border="0">')
//--- ÀÌº¥Æ®
//document.write('<tr><td style="height:2"></td></tr>')
//document.write('<tr><td><a href="http://info.korail.com/2007/cus/cus06000/w_cus06400.jsp?bbs=bbs18&seq=5896" target="_blank"><img src="/etc_2009/evt_20091201/img/84x101.jpg" alt="pspÀÌº¥Æ®"></a></td></tr>')
//--- ¹®È­°ø¿¬, ÀÌ¿ëTip
document.write('<tr><td><script language="javascript">flash("/2007/img/main_200811/Main_Banner.swf","85","121")</script></td></tr>')
//--- ¿©Çà»óÇ°
document.write('<tr><td><iframe src="http://ads.luble.com/NetInsight/html/korail/korail/korail@mainR2" width="84" height="101" frameborder="0" scrolling="no" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"></iframe></td></tr>')
document.write('<tr><td style="height:2"></td></tr>')
document.write('<tr><td><iframe src="http://ads.luble.com/NetInsight/html/korail/korail/korail@mainR22" width="84" height="101" frameborder="0" scrolling="no" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"></iframe></td></tr>')
document.write('</table>')
document.write('</div>                                                                                                                                                                           ')
document.write('</div>                                                                                                                                                                           ')
document.write('</div>                                                                                                                                                                           ')
// ¿ìÃø ±¤°í¹è³Ê ³¡ ------------------------------------------------------------


//document.write('<script LANGUAGE="JavaScript">')
//document.write('if (isNS4)')
//document.write('{')
//document.write('var Top_Layer = document["Top_Layer"];')
//document.write('Top_Layer.top = top.pageYOffset+110 ;')
//document.write('Top_Layer.visibility = "visible";')
//document.write('moveRightEdge();')
//document.write('}')
//document.write('else if (isDOM)')
//document.write('{')
//document.write('var Top_Layer = getRef("Top_Layer");')
//document.write('Top_Layer.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 110;')
//document.write('Top_Layer.style.visibility = "visible";')
//document.write('moveRightEdge();')
//document.write('}')
//document.write('</script>')

function resizeQuick(val)
{
    if(document.getElementById("leftQuick") != null)
    {
        document.getElementById("leftQuick").style.height = val;
    }
}

////////////////////////////////////////////////////////////////////////////////
function getFlashObjectString(path, width, height, flashvars, idname, saccess, wmode, fullscreen){

	// Initializes the flashvars parameter.
	if(flashvars == undefined){
		flashvars = "";
	}
	// Initializes the ID and name of the Flash object.
	if(idname == undefined){
		idname = "";
	}

	// Initializes the script access control.
	if(saccess != "never" && saccess != "always"){
		saccess = "sameDomain";
	}

	// Initializes the transparency.
	if(wmode != "transparent" && wmode != "opaque"){
		wmode = "window";
	}

	// Initializes the fullscreen access control.
	if(fullscreen==true || fullscreen=="true" || fullscreen==1 || fullscreen=="1" || fullscreen=="yes"){
		fullscreen = "true";
	}else{
		fullscreen = "false";
	}

	var str = '';
	str = '<object id="' + idname + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	str += 'width="' + width + '" height="' + height + '">';
  	str += '<param name="movie" value="' + path + '" />';
  	str += '<!-- The following object tag is for browsers other than IE. Hide this tag with IECC, in case of IE. -->';
  	str += '<!--[if !IE]>-->';
  	str += '<object name="' + idname + '" type="application/x-shockwave-flash"';
	str += ' data="' + path + '" width="' + width + '" height="' + height +'">';
    str += '<!--<![endif]-->';
	str += '<param name="FlashVars" value="' + flashvars + '" />';
    str += '<param name="quality" value="high" />';
	str += '<param name="allowFullscreen" value="' + fullscreen + '" />';
    str += '<param name="wmode" value="' + wmode + '" />';
	str += '<param name="allowScriptAccess" value="' + saccess + '" />';
    str += '<param name="swfversion" value="10.0.2.54" />';
    str += '<!--[if !IE]>-->';
  	str += '</object>';
  	str += '<!--<![endif]-->';
	str += '</object>';

	return str;

}

/**
 * Inserts a Flash object in the current position.
 *
 * @param path SWF Path of the Flash file.
 * @param width Width of the Flash object.
 * @param height Height of the Flash object.
 * @param flashvars FlalshVars parameter to be sent to the Flash object.
 * @param idname ID and name properties of the Flash object.
 * @param saccess Script access control.
 * @param wmode Tranparency setting.
 * @param fullscreen Fullscreen access control.
 */
function insertFlashObject(path, width, height, flashvars, idname, saccess, wmode, fullscreen){

	var str = getFlashObjectString(path, width, height, flashvars, idname, saccess, wmode, fullscreen);
	document.write(str);

}

/**
 * Inserts a Flash object in the specified DIV layer.
 *
 * @param layerid ID of the layer in which the Flash object inserted.
 * @param path SWF Path of the Flash file.
 * @param width Width of the Flash object.
 * @param height Height of the Flash object.
 * @param flashvars FlalshVars parameter to be sent to the Flash object.
 * @param idname ID and name properties of the Flash object.
 * @param saccess Script access control.
 * @param wmode Tranparency setting.
 * @param fullscreen Fullscreen access control.
 */
function insertFlashObjectLayer(layerid, path, width, height, flashvars, idname, saccess, wmode, fullscreen){

	var str = getFlashObjectString(path, width, height, flashvars, idname, saccess, wmode, fullscreen);
	var theLayer = document.getElementById(layerid);
	theLayer.innerHTML = str;

}



/**
 * Inserts a Flash object after the specific time.
 *
 * @param delay Delayed time (Millisecond)
 * @param layerid ID of the layer in which the Flash object inserted.
 * @param path SWF Path of the Flash file.
 * @param width Width of the Flash object.
 * @param height Height of the Flash object.
 * @param flashvars FlalshVars parameter to be sent to the Flash object.
 * @param idname ID and name properties of the Flash object.
 * @param saccess Script access control.
 * @param wmode Tranparency setting.
 * @param fullscreen Fullscreen access control.
 */
function insertFlashObjectDelay(delay, layerid, path, width, height, flashvars, idname, saccess, wmode, fullscreen){

	var expression = "insertFlashObjectLayer(";
	expression += "'" + layerid + "'";
	expression += ", '" + path + "'";
	expression += ", '" + width + "'";
	expression += ", '" + height + "'";
	expression += ", '" + flashvars + "'";
	expression += ", '" + idname + "'";
	expression += ", '" + saccess + "'";
	expression += ", '" + wmode + "'";
	expression += ", '" + fullscreen + "'";
	expression += ");";

	setTimeout(expression, delay);

}
