﻿	// 600 * 90 광고 
	var strCurUrl;
	var strTempUrl;
	var strCurDomain;
	
	// 현재 PAGE URL
	strCurUrl = window.location;

	// 현재 PAGE URL을 String값으로 변경
	strTempUrl = strCurUrl.toString();
	
	// /를 기준으로 도메인 부분만 추출하기 위해
	strTemp = strTempUrl.split("/");
	
	// Split를 통해 /가 없어진 상태이기 때문에 http://domain 포멧으로 만들어줌
	strCurDomain = strTemp[0] + "//" + strTemp[2];

    document.write("<table width=100% border=0 cellpadding=0 cellspacing=0 bgcolor=#FFFFFF height=165>");
	document.write("  <tr>");
	document.write("    <td><TABLE WIDTH=990 BORDER=0 CELLPADDING=0 CELLSPACING=0>");
	document.write("        <TR> ");
	document.write("          <TD><table width=100% border=0 cellspacing=0 cellpadding=0>");
	document.write("              <tr> ");
	document.write("                <td><table border=0 cellspacing=0 cellpadding=0>");
	document.write("                    <tr> ");
	document.write("                      <td><a href=http://www.imbc.com><img src=http://img.imbc.com/2006_admin/images/n_logo.jpg border=0></a></td>");
	document.write("                    </tr>");
	document.write("                    <tr> ");
	document.write("                      <td><table border=0 cellspacing=0 cellpadding=0>");
	document.write("                          <tr> ");
	SetLogin2006Sub();
	document.write("                            <td><a href=http://mypage.imbc.com><img src=http://img.imbc.com/2006_admin/images/n_my.jpg alt='마이페이지' width=59 height=20 border=0></a></td>");
	document.write("                          </tr>");
	document.write("                        </table></td>");
	document.write("                    </tr>");
	document.write("                  </table></td>");
	document.write("                <td align=right height=98>");
	if (strCurDomain == "http://recruit.imbc.com" || strCurDomain == "http://recruitpds.imbc.com" || strCurDomain == "http://recruitpds1.imbc.com" || strCurDomain == "http://recruitadmin.imbc.com" || strCurDomain == "http://recruitqna.imbc.com")
	{
		document.writeln("<A HREF='http://www.imbc.com/withmbc/mbcintro/index.html'><IMG SRC='http://img.imbc.com/recruit/images/banner2.jpg' border='0'></A>");
	}
	else
	{
		document.write("<IFRAME WIDTH=600 HEIGHT=90 NORESIZE SCROLLING=No FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 src='http://ads.imbc.com/RealMedia/ads/adstream_sx.ads/www.imbc.com/"+sCurAdFlag+"@Top'>");
		document.write("<A HREF='http://ads.imbc.com/RealMedia/ads/click_nx.ads/www.imbc.com/"+sCurAdFlag+"@Top'>");
		document.write("<IMG SRC='http://ads.imbc.com/RealMedia/ads/adstream_nx.ads/www.imbc.com/"+sCurAdFlag+"@Top'></a>");
		document.write("</IFRAME>");
	}
	document.write("                </td>");
	document.write("              </tr>");
	document.write("            </table></TD>");
	document.write("        </TR>");
	document.write("        <TR> ");
	document.write("          <TD valign=baseline><table width=830 border=0 cellspacing=0 cellpadding=0>");
	document.write("              <tr> ");
	if (strCurDomain == "http://cue.imbc.com" || strCurDomain == "http://search.imbc.com") {
		document.write("                <td width=212> ");
		document.write("                  <!--검색테이블시작-->");
		document.write("                  <table border=0 cellspacing=0 cellpadding=0>");
		document.write("                    <tr> ");
		document.write("                      <td width=80><img src=http://img.imbc.com/2006_admin/images/n_cue_no.jpg width=77 height=30></td>");
		document.write("                    </tr>");
		document.write("                  </table>");
		document.write("                  <!--검색테이블끝-->");
		document.write("                </td>");
	} else {
		document.write("                <td> ");
		document.write("                  <!--검색테이블시작-->");
		document.write("                  <table border=0 cellspacing=0 cellpadding=0>");
		document.write("<FORM name=frmsearch2006 METHOD=POST ACTION=http://cue.imbc.com/totalSearch.asp onsubmit=javascipt:fGoSearch();return false;>  ");


		document.write("                    <tr> ");
		document.write("                      <td width=80><img src=http://img.imbc.com/2006_admin/images/n_cue.jpg></td>");
		document.write("                      <td valign=bottom><input type=text maxlength=226 name=query style='width:120; height:19px; background-color:#FFFFFF;border:1 solid #C8C8C8;font-size:9pt'></td>");
		document.write("                      <td valign=bottom><a href=javascript:fGoSearch();><img src=http://img.imbc.com/2006_admin/images/n_cue_action.jpg hspace=2 border=0></a></td>");
		document.write("                    </tr>");
		document.write("</FORM>  ");
		document.write("                  </table>");
		document.write("                  <!--검색테이블끝-->");
		document.write("                </td>");
	}
	document.write("                <td align=right valign=bottom><table width=100% border=0 cellpadding=0 cellspacing=0 background=http://img.imbc.com/2006_admin/images/n_h_line.jpg>");
	document.write("                    <tr> ");
	document.write("                      <td><img src=http://img.imbc.com/2006_admin/images/n_h_point.jpg width=11 height=26></td>");
	document.write("                      <td align=right><table border=0 cellspacing=0 cellpadding=0>");
	document.write("                          <tr> ");
	document.write("                            <td><a href=http://eye.imbc.com onFocus=this.blur()><img src=http://img.imbc.com/2006_admin/images/n_h_menu1.jpg alt='시각장애' border=0></a></td>");
	document.write("                            <td><a href=http://help.imbc.com/ onFocus=this.blur()><img src=http://img.imbc.com/2006_admin/images/n_h_menu2.jpg alt='고객센터' border=0></a></td>");
	document.write("                            <td><a href=http://friends.imbc.com onFocus=this.blur()><img src=http://img.imbc.com/2006_admin/images/n_h_goodfriend.jpg alt='좋은친구' border=0></a></td>");
	document.write("                            <td><a href=http://tvin.imbc.com onFocus=this.blur()><img src=http://img.imbc.com/2006_admin/images/n_h_tvin.jpg alt='TV속정보' border=0></a></td>");
	document.write("                            <td><a href=http://downtown.imbc.com/ onFocus=this.blur()><img src=http://img.imbc.com/2006_admin/images/n_h_downtown.jpg alt='다운타운' border=0></a></td>");
	document.write("                            <td><a href=http://withmbc.imbc.com/withmbc/index.html onFocus=this.blur()><img src=http://img.imbc.com/2006_admin/images/n_h_withmbc.jpg alt='MBC와함께' border=0></a></td>");
	document.write("                          </tr>");
	document.write("                        </table></td>");
	document.write("                    </tr>");
	document.write("                  </table></td>");
	document.write("              </tr>");
	document.write("            </table></TD>");
	document.write("        </TR>");
	document.write("        <TR> ");
	document.write("          <TD><table width=830 border=0 cellpadding=0 cellspacing=0 background=http://img.imbc.com/2006_admin/images/n_bar_02.jpg>");
	document.write("              <tr> ");
	document.write("                <td width=29><img src=http://img.imbc.com/2006_admin/images/n_bar_01.jpg width=29 height=35></td>");
	document.write("                <td width=785> ");
	document.write("                  <!--플래시 네비게이션 위치시작-->");
	// GNB 영역
	var CurFlag = 'main';			  
	var Curlocation = String(document.location);
	var arr;

	var locationArr = new Array("http://www.imbc.com","http://www.imbc.com/broad/tv/drama","http://www.imbc.com/broad/tv/ent","http://www.imbc.com/broad/tv/culture","http://www.imbc.com/broad/radio","http://www.imbc.com/broad/radio/fm","http://www.imbc.com/broad/radio/fm4u","http://music.imbc.com","http://movie.imbc.com","http://game.imbc.com","http://findtv.imbc.com","http://imbc.hmall.com","http://sports.imbc.com","http://tour.imbc.com");
	var flagArr = new Array("main","drama","ent","cullture","radio","radio","radio","music","movie","game","findtv","shop","sports","tour");

	for (var i = 0; i < locationArr.length ; i++)
	{
		arr = Curlocation.indexOf(locationArr[i],0);
		if (arr != -1)
		{
			CurFlag = flagArr[i];
		}
	}
	writeSwf("http://swf.imbc.com/2006com/navi_1024.swf?chName="+CurFlag, 785, 21, false);
	document.write("                  <!--플래시 네비게이션 위치마감-->");
	document.write("                </td>");
	document.write("                <td width=16><img src=http://img.imbc.com/2006_admin/images/n_bar_03.jpg width=16 height=35></td>");
	document.write("              </tr>");
	document.write("            </table></TD>");
	document.write("        </TR>");
	document.write("        <TR> ");
	document.write("          <TD height=2></TD>");
	document.write("        </TR>");
	document.write("      </TABLE></td>");
	document.write("  </tr>");
	document.write("</table>");

	function fGoSearch() {
		if (document.frmsearch2006.query.value == "") {
			alert("검색어를 입력하세요.");
			document.frmsearch2006.query.focus();
			return;
		}
		document.frmsearch2006.submit();
	}

	document.write("<scr"+"ipt lang"+"uage='javas"+"cript' src='http://www.imbc.com/common/js/DSelect.js'></scr"+"ipt>");
