﻿/**
* embed 패치 적용 컨테이너
* null인경우 document 값을 기본으로 합니다
* id값을 설정한경우 설정범위 내에만 적용이 됩니다
* 
* 본문이나 일부 노드에만 적용할경우 해당 노드의 id 값을 입력하실 수 있습니다
* 예)
* var __embed_target_id = "contents";
* 로 처리한경우 body 내에 <태그 id="contents">플래쉬,동영상...</태그>
* 안에 내용에만 패치가 적용됩니다
*/
var __embed_target_id = null;
/**
* embed 패치를 적용할 태그를 설정합니다
* 기본값은 object,eembed,appelt 태그입니다
* false 값인경우 패치에서 제외됩니다
*/
var __embed_tags = {object:true,embed:true,applet:true}
/**
* 이벤트 등록
*/
/*
if(document.attachEvent){
 document.attachEvent('onreadystatechange',
  function embed_patch(){
   if(__embed_target_id===null){
    var __target = document;
   }else{
    var __target = document.getElementById(__embed_target_id);
   }
   if (document.readyState == "complete"){
    function _replace(obj){
     var obj_re = document.createElement(obj.outerHTML);
     obj.parentNode.replaceChild(obj_re,obj);
    }
    function _inner(obj){
     obj.insertAdjacentHTML('beforeBegin',obj.outerHTML);   
     obj.parentNode.removeChild(obj);
    }
    if(__embed_tags.object===true){
     //object 패치
     var objs = __target.getElementsByTagName('object');
     var i = objs.length;
     while(i-->0){
      _inner(objs[i]);
     }
    }
    if(__embed_tags.embed===true){
     //embed 패치
     var objs = __target.getElementsByTagName('embed');
     var i = objs.length;
     while(i-->0){
      _replace(objs[i])
     }
    }
    if(__embed_tags.applet===true){
     //applet 패치
     var objs = __target.getElementsByTagName('applet');
     var i = objs.length;
     while(i-->0){
      _replace(objs[i])
     }
    }
   }
  }
 );
}
*/
	var __serverName = "businesstv.chosun.com";
	var __serverPort = "80"
	var __contextPath = "";
	var __contextURL = "http://" + __serverName + (__serverPort == "80" ? "" : (":" + __serverPort)) + __contextPath;

	var __retrunUrl = document.location;
	var __loginUrl = "http://membership.chosun.com/login/protect_sso/sso_user_info.jsp?returl=" + __retrunUrl;
	var __logoutUrl = "http://membership.chosun.com/login/logout.jsp?returl=" +  __retrunUrl;
	var __registUrl = "http://membership.chosun.com/join/registUser.jsp?returl=" + __retrunUrl;
	var __modifyUrl = "http://membership.chosun.com/join/registUser.jsp?act=update&site=businesstv&returl=" + __retrunUrl;
	var __smUser = __getCookie("SM_USER");
	var __isSMSESSION = __smUser && __smUser.length > 0;

	function __getCookie(name) {
		var dc = document.cookie;
		var prefix = name + "=";
		var begin = dc.indexOf("; " + prefix);

		if (begin == -1) {
			begin = dc.indexOf(prefix);
			if (begin != 0) return null;
		} 
		else	begin += 2;
		
		var end = document.cookie.indexOf(";", begin);
		if (end == -1)
			end = dc.length;
		return unescape(dc.substring(begin + prefix.length, end));
	}

	function __getXmlHttpRequest(){
		var xmlhttp = false;
		// IE
		if (window.ActiveXObject) {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		// FF
		else if (window.XMLHttpRequest) {
			xmlhttp = new XMLHttpRequest();
		}
		return xmlhttp;
	}

	function __topMenuUpdate() {
		var url = (__contextURL ? __contextURL : "") + "/auth/listMenu.do";
		var params = "param=jsonLeft&menu.menuNo=-3";
		var xmlhttp = __getXmlHttpRequest();
		if(url) {
			xmlhttp.open("GET", url + "?" + params, true);
			xmlhttp.onreadystatechange = function() {
				if(xmlhttp.readyState == 4) {
					if(xmlhttp.status == 200) {
						var resText = xmlhttp.responseText;
						
						__topMenus = eval(resText);
						__buildTopMenu(__topMenus[0]);
					}
				}
			}
			xmlhttp.send(null);
		}
	}

	var admin_show = "";
	function __buildTopMenu(menu) {
		if (__topMenus.length <= 0) return;
		var href = menu.commandUrl.indexOf("http://") > -1 ? menu.commandUrl : ((__contextPath ? __contextPath : "") + menu.commandUrl);
		admin_show = "<a href='"+href+"'>"+menu.menuNm+"</a>";
	}

	if (("" + document.location).indexOf(__contextURL) > - 1 ) __topMenuUpdate();

//////////////////////////////////////
// IE Embed patch
//
// @author iezn@iezn.com
// @homepage http://iezn.com
// @create date 2006.04.19
// @last modify 2007.02.15
// @version 0.42
// 배포시 위내용을 포함해 주시기 바랍니다
//////////////////////////////////////
/**
* embed 패치 적용 컨테이너
* null인경우 document 값을 기본으로 합니다
* id값을 설정한경우 설정범위 내에만 적용이 됩니다
* 
* 본문이나 일부 노드에만 적용할경우 해당 노드의 id 값을 입력하실 수 있습니다
* 예)
* var __embed_target_id = "contents";
* 로 처리한경우 body 내에 <태그 id="contents">플래쉬,동영상...</태그>
* 안에 내용에만 패치가 적용됩니다
*/
if(typeof(__embed_target_id)=='undefined'){
	var __embed_target_id = null;
}

/**
* embed 패치를 적용할 태그를 설정합니다
* 기본값은 object,eembed,appelt 태그입니다
* false 값인경우 패치에서 제외됩니다
*/
if(typeof(__embed_tags)=='undefined'){
	var __embed_tags = {object:true,embed:true,applet:false}
}

/**
* 플래쉬파일중 flashvars 를 사용할경우 해당 플래쉬의 오브젝트아이디:true 값으로 object를 등록해 주세요
*/
/*
var __flash_force_objs = {};
if(navigator.userAgent.toLowerCase().indexOf('opera')==-1){//opera out
	if(document.attachEvent){
		document.write('<style type="text/css">');
		document.write('object,embed{display:none;}');
		document.write('</style>');
		document.attachEvent('onreadystatechange',
			function (){				
				if(__embed_target_id===null){
					var __target = document;
				}else{
					var __target = document.getElementById(__embed_target_id);
				}
				if (document.readyState == "complete"){
					function _replace(obj){
						var obj_re = document.createElement(obj.outerHTML);					
						obj_re.style.display='inline';
						obj.parentNode.replaceChild(obj_re,obj);
					}
					function _inner(obj){
						obj.style.display='inline';					
						var html = obj.outerHTML;
						var classid = obj.classid.toLowerCase();
						if(classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' && typeof(__flash_force_objs[obj.id])=='undefined'){//flash 인경우
							obj.insertAdjacentHTML('beforeBegin',html);
							obj.parentNode.removeChild(obj);
						}else if(classid=='clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b'){
							//퀵타임

						}else{
							//변경하고자하는 ActiveX classid 를 추가하시기 바랍니다
							if(classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' || //media 7
							classid=='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' || //6.4
							classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' ||
							classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'
							){
								embed_pos = html.indexOf('embed');
								if(embed_pos!=-1){//embed 가 존재하는경우
									var embed = '<'+html.substr(embed_pos);
									embed = embed.substr(0,embed.length-9);
									obj.insertAdjacentHTML('beforeBegin',embed);
									obj.parentNode.removeChild(obj);
								}else{
									//object로만 되어 있는경우 동영상 부분만 패치한다
									var embed = document.createElement('embed');
									if(obj.id){
										embed.id = obj.id;
									}
									var total = obj.childNodes.length;
									//embed.setAttribute('autostart',0);
									if(obj.width){
										embed.setAttribute('width',obj.width);
									}
									if(obj.height){
										embed.setAttribute('height',obj.height);
									}
									for(var k=0;k<total;k++){
										n = obj.childNodes.item(k).getAttribute("name");
										v = obj.childNodes.item(k).getAttribute("value");
										if(n=='URL' || n=='url' || n=='FileName'){
											n = 'src';
										}
										embed.setAttribute(n,v);
									}
									if(embed.getAttribute('src')){
										embed.style.display = 'inline';
										obj.parentNode.replaceChild(embed,obj);
									}else{
										//파일엑세스 object가 아닌경우는 유지한다								
									}
								}
							}
						}
					}

					if(__embed_tags.object===true){
						var objs = __target.getElementsByTagName('object');
						var i = objs.length;
						while(i-->0){
							_inner(objs[i]);
						}
					}
					if(__embed_tags.embed===true){
						var objs = __target.getElementsByTagName('embed');
						var i = objs.length;
						while(i-->0){
							_replace(objs[i])
						}
					}

					if(__embed_tags.applet===true){
						var objs = __target.getElementsByTagName('applet');
						var i = objs.length;
						while(i-->0){
							_replace(objs[i])
						}
					}
				}
			}
		);
	}
}
*/
var loc = ""+document.location;
var logo_swf = "logo2.swf";
var menu_swf = "menu.swf";
var flag = "";

__showCurrMenu();

function __showCurrMenu() {
	flag = "2";
	var loc = "" + document.location;
	
	//증권
	if (loc.indexOf("http://m-stock.chosun.com/") > -1 ||
		loc.indexOf("http://stock.chosun.com") > -1 ||
		loc.indexOf("http://m-stock1.chosun.com") > -1 ||
		loc.indexOf("http://m-stock3.chosun.com") > -1 ||
		loc.indexOf("http://m-stock2.chosun.com") > -1 ||
		loc.indexOf("http://m-stock1.chosun.com/concert/dizzo/mystock/my_stock.jsp") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=edaily") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=c1000") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=R00KEL0") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=R00KEC0") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=R00KEI0") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=R00KEJ0") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=R00KES0") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=R00KEB0") > -1 ) {
/*
	  loc.indexOf("http://money.chosun.com/svc/quick/list.html") > -1 ||
      loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=edaily&id=") > -1 ||
      loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=c1000&id=") > -1 ||
      loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=R00KEL0&id=") > -1 ||
      loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=R00KEC0&id=") > -1 ||
      loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=R00KEI0&id=") > -1 ||
      loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=R00KEJ0&id=") > -1 ||
      loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=R00KES0&id=") > -1 ||
      loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=R00KEB0&id=") > -1) {
*/
		menu_swf = "moneymenu_01.swf";
	}
	
	//부동산
	else if (loc.indexOf("http://m-realty.chosun.com/") > -1 ||
			loc.indexOf("http://m-realty1.chosun.com") > -1 ||
			loc.indexOf("http://m-realty2.chosun.com") > -1 ||
			loc.indexOf("http://m-realty3.chosun.com") > -1 ||
			loc.indexOf("http://m-realty4.chosun.com") > -1 ||
			loc.indexOf("http://m-realty5.chosun.com") > -1 ||
			loc.indexOf("http://realty5.chosun.com") > -1 ||
			loc.indexOf("http://rootiz.chosun.com") > -1 ||
			loc.indexOf("http://m-realty.chosun.com/svc/realty/news/list.html?pcode=c2000, ") > -1 ||
			loc.indexOf("http://m-realty.chosun.com/svc/realty/news/list.html") > -1) {
		menu_swf = "moneymenu_02.swf";
	}
	
	//재테크
	else if (loc.indexOf("http://m-finance.chosun.com") > -1 ||
		loc.indexOf("http://m-finance1.chosun.com") > -1 ||
		loc.indexOf("http://m-tax.chosun.com") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/html/200709/dollar.htm") > -1 ||
		loc.indexOf("http://m-economy.chosun.com") > -1 ||

		loc.indexOf("http://money.chosun.com/svc/news/list.html") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=cb000") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=c7000") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=c8000") > -1 ||
		loc.indexOf("http://bbs.chosun.com/bbs.message.list.screen?bbs_id=200611") > -1 ||
		loc.indexOf("http://bbs.chosun.com/bbs.message.view.screen?bbs_id=200611") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=lee") > -1 ) {
/*
	  loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=today") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=cb000") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=c7000") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=c8000") > -1 ||
	  loc.indexOf("http://www.chosun.com/money/companynews.html") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=lee") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/article.html?id=") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=cb000&id=") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=c7000&id=") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=c8000&id=") > -1 ||
	  loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=lee&id=") > -1) {
*/
		menu_swf = "moneymenu_03.swf";
	}
	
	//보험
	else if (loc.indexOf("http://m-gsinsu.chosun.com") > -1 ||
		loc.indexOf("http://money.chosun.com/svc/news/list.html?pcode=insurance") > -1 ) {
		//           loc.indexOf("http://money.chosun.com/svc/news/article.html?pcode=insurance&id=") > -1) {
		menu_swf = "moneymenu_04.swf";
	}
	
	//창업
	else if (loc.indexOf("http://m-bizplace.chosun.com") > -1) {
		menu_swf = "moneymenu_05.swf";
	}
	
	// Vod로 보는 자산관리
	else if (loc.indexOf("http://vodbook.chosun.com/chosunVodSectLarge.laf?category=003&sectLarge=09") > -1 ) {
		menu_swf = "moneymenu_06.swf";
	}
	
	else if (loc.indexOf("http://money.chosun.com/") > -1) {
		menu_swf = "menu_03.swf";
	}

	else if (loc.indexOf("http://businessnews.chosun.com/sucess/index.html") > -1 ||
		loc.indexOf("http://vodbook.chosun.com") > -1 ||		
		loc.indexOf("http://vipup.chosun.com") > -1 ||
		loc.indexOf("http://bbs.chosun.com/bbs.message.view.screen?bbs_id=2006186765") > -1 ||
		loc.indexOf("http://bbs.chosun.com/bbs.message.list.screen?bbs_id=2006186765") > -1) {
		menu_swf = "menu_04.swf";
	}
	
	else if (loc.indexOf("http://businessnews.chosun.com") > -1) {
		menu_swf = "menu_02.swf";
		// 성공 송 페이지
		if (loc.indexOf("http://businessnews.chosun.com/etc/Ecard") > -1) {
			menu_swf = "menu_1.swf";
		}
	}
	
	else if (loc.indexOf("http://businesstv.chosun.com/broad/BroadMain.do") > -1 ||
                loc.indexOf("http://businesstv.chosun.com/program/") > -1 ||
                loc.indexOf("http://businesstv.chosun.com/board/") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/category/") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/broad") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/schedule/mainSchedule.do") > -1 )  {
		menu_swf = "menu_01.swf";
	}
	
	else if (loc.indexOf("http://businesstv.chosun.com/html/event/") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/city/") > -1 ||
		loc.indexOf("http://businesstv.co.kr/html/event/") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/success") > -1 ||
		loc.indexOf("http://businesstv.co.kr/success") > -1 ||
		loc.indexOf("http://businesstv.co.kr/jsp/sitemap/sitemap.jsp") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/jsp/sitemap/sitemap.jsp") > -1) {
		menu_swf = "menu_1.swf";
	}
	
	else if (loc.indexOf("http://businesstv.chosun.com/html/broad/business_introduction.html") > -1 ||
		loc.indexOf("http://bbs.chosun.com/bbs.message.view.screen?bbs_id=200615656") > -1 ||
		loc.indexOf("http://bbs.chosun.com/bbs.message.list.screen?bbs_id=200615656") > -1 ||
		loc.indexOf("http://qna.chosun.com/qna/Write.html?code=BM03") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/html/broad/business_introduction_english.html") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/html/broad/business_introduction_en02.html") > -1 ||
		loc.indexOf("http://qna.chosun.com/qna/Write.html?code=BM05") > -1 ||
                loc.indexOf("http://qna.chosun.com/qna/Write.html?code=BM02") > -1 ||
                loc.indexOf("http://businesstv.chosun.com/broad/systemOperator.do") > -1 ||
		loc.indexOf("http://businesstv.chosun.com/html/broad/business_introduction_2.html") > -1 ) {
		menu_swf = "menu_05.swf";
	}
	else {
		logo_swf = "logo.swf";
		menu_swf = "menu.swf";
		flag = "1";
	}

	if (flag == "1") {
		document.write("<table width='986' border='0' cellspacing='0' cellpadding='0' ><tr> ");
		document.write("<td style='padding:0 0 0 17;' width='240' height='77'><object id='logo_id' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='240' height='77'>");
		document.write("<param name=movie value='http://businesstv.chosun.com/images/200711/"+logo_swf+"'><param name=quality value=high>");
		document.write("<embed src='http://businesstv.chosun.com/images/200711/"+logo_swf+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='240' height='77'>");
		document.write("</embed></object></td><td width='729'> ");
		document.write("<table width='729' border='0' cellspacing='0' cellpadding='0' height='77'>");
		document.write("<tr> <td align=right>");
		document.write("<table width='729' border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr> <td align=right class=small style='padding:0 5 5 0;'>");
	}
	else {
		document.write("<table width='986' border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr> <td width='185' height='96'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='185' height='96'>");
		document.write("<param name=movie value='http://businesstv.chosun.com/images/200711/"+logo_swf+"'><param name=quality value=high>");
		document.write("<embed src='http://businesstv.chosun.com/images/200711/"+logo_swf+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='185' height='96'>");
		document.write("</embed> </object></td><td width='801'>"); 
		document.write("<table width='801' border='0' cellspacing='0' cellpadding='0' height='96'>");
		document.write("<tr><td align=right>");
		document.write("<table width='801' border='0' cellspacing='0' cellpadding='0'>");
		document.write("<tr> <td align=right class=small style='padding:0 5 5 0;'> ");
	}

	//==========로그인, 로그아웃, 정보수정. 회원가입 처리시작
	if (("" + document.location).indexOf(__contextURL) > - 1 ) {
		if (__isSMSESSION) {
			document.write("<span id='admin' ></span>");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><a href='"+__logoutUrl+"'>로그아웃</a> ");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><img src='http://businesstv.chosun.com/images/200711/spot.gif' width='2' height='2'><a href='"+__modifyUrl+"'>정보수정 </a>");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><a href='http://businesstv.chosun.com/jsp/sitemap/sitemap.jsp'>사이트맵 </a>");
			document.write("</td><td width='141'><a href='http://businesstv.chosun.com/schedule/mainSchedule.do'><img src='http://businesstv.chosun.com/images/200711/renewa_slice_3.jpg' width='62' height='33' border='0'></a><a href='http://www.chosun.com' target='_blank'><img src='http://businesstv.chosun.com/images/200711/renewa_slice_4.jpg' width='79' height='33' border='0'></a></td>");
			document.write("</tr></table>");
		}	
		else {
			document.write("<span id='admin' ></span>");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><a href='"+__loginUrl+"'>로그인</a> ");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><img src='http://businesstv.chosun.com/images/200711/spot.gif' width='2' height='2'><a href='"+__registUrl+"'>회원가입 </a>");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><a href='http://businesstv.chosun.com/jsp/sitemap/sitemap.jsp'>사이트맵 </a>");
			document.write("</td><td width='141'><a href='http://businesstv.chosun.com/schedule/mainSchedule.do'><img src='http://businesstv.chosun.com/images/200711/renewa_slice_3.jpg' width='62' height='33' border='0'></a><a href='http://www.chosun.com' target='_blank'><img src='http://businesstv.chosun.com/images/200711/renewa_slice_4.jpg' width='79' height='33' border='0'></a></td>");
			document.write("</tr></table>");
		}
	}
	else {
		if (__isSMSESSION) {
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><a href='"+__logoutUrl+"'>로그아웃</a> ");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><img src='http://businesstv.chosun.com/images/200711/spot.gif' width='2' height='2'><a href='"+__modifyUrl+"'>정보수정 </a>");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><a href='http://businesstv.chosun.com/jsp/sitemap/sitemap.jsp'>사이트맵 </a>");
			document.write("</td><td width='141'><a href='http://businesstv.chosun.com/schedule/mainSchedule.do'><img src='http://businesstv.chosun.com/images/200711/renewa_slice_3.jpg' width='62' height='33' border='0'></a><a href='http://www.chosun.com' target='_blank'><img src='http://businesstv.chosun.com/images/200711/renewa_slice_4.jpg' width='79' height='33' border='0'></a></td>");
			document.write("</tr></table>");
		}	
		else {
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><a href='"+__loginUrl+"'>로그인</a> ");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><img src='http://businesstv.chosun.com/images/200711/spot.gif' width='2' height='2'><a href='"+__registUrl+"'>회원가입 </a>");
			document.write("<img src='http://businesstv.chosun.com/images/200711/spot.gif' width='6' height='20'><a href='http://businesstv.chosun.com/jsp/sitemap/sitemap.jsp'>사이트맵 </a>");
			document.write("</td><td width='141'><a href='http://businesstv.chosun.com/schedule/mainSchedule.do'><img src='http://businesstv.chosun.com/images/200711/renewa_slice_3.jpg' width='62' height='33' border='0'></a><a href='http://www.chosun.com' target='_blank'><img src='http://businesstv.chosun.com/images/200711/renewa_slice_4.jpg' width='79' height='33' border='0'></a></td>");
			document.write("</tr></table>");
		}

	}
	//==========로그인, 로그아웃, 정보수정. 회원가입 처리끝
	if (flag == "1") {
		document.write("</td></tr><tr> ");
		document.write("<td width='730' height='45'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='730' height='45'>");
		document.write("<param name=movie value='http://businesstv.chosun.com/images/200711/"+menu_swf+"'><param name=quality value=high>");
		document.write("<embed src='http://businesstv.chosun.com/images/200711/"+menu_swf+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='730' height='45'>");
		document.write("</embed></object></td></tr></table>");
		document.write("</td></tr></table>");
	}

	else {
		document.write("</td></tr><tr> ");
		document.write("<td width='801' height='66'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='801' height='66'>");
		document.write("<param name=movie value='http://businesstv.chosun.com/images/200711/"+menu_swf+"'><param name=quality value=high>");
		document.write("<embed src='http://businesstv.chosun.com/images/200711/"+menu_swf+"' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='801' height='66'>");
		document.write("</embed></object></td></tr></table></td></tr></table>");
	}
	if (("" + document.location).indexOf(__contextURL) > - 1 ) {
//		document.getElementById('admin').innerHTML = admin_show;
		setTimeout("document.getElementById('admin').innerHTML = admin_show", 200);
	}
}
	function write_live() {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="219" height="184">');
		document.write('              <param name=movie value="http://businesstv.chosun.com/images/200711/live.swf">');
		document.write('              <param name=quality value=high>');
		document.write('              <embed src="http://businesstv.chosun.com/images/200711/live.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="219" height="184">');
		document.write('              </embed>'); 
		document.write('            </object>');
	}

	function write_main(){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="303" height="239">');
		document.write('              <param name=movie value="http://businesstv.chosun.com/images/200711/main.swf">');
		document.write('              <param name=quality value=high>');
		document.write('              <embed src="http://businesstv.chosun.com/images/200711/main.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="303" height="239">');
		document.write('              </embed>'); 
		document.write('            </object>');
	}