/*==========================================*
 MS 익스플러 컨트롤 제어
*==========================================*/
//swf
function objectlaunchSwft(width, height, url){
	document.write("<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=" + width + " height=" + height + ">");
	document.write("<param name=movie value=" + url + ">");
	document.write("<param name=wmode value=transparent>");
	document.write("<param name=quality value=high>");
	document.write("<embed wmode=transparent src=" + url + " quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=" + width + " height=" + height + "></embed>");
	document.write("</object>");
}

function objectlaunchSwf(width, height, url){
	document.write("<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 width=" + width + " height=" + height + ">");
	document.write("<param name=movie value=" + url + ">");
	document.write("<param name=quality value=high>");
	document.write("<embed wmode=transparent src=" + url + " quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash width=" + width + " height=" + height + "></embed>");
	document.write("</object>");
}


/*==========================================*
투명 png
*==========================================*/

function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 

/*==========================================*
LINK 처리하기
*==========================================*/
//var KILC_CONTEXT = "http://localhost.kita.net/kilc"
//var KILCORG_CONTEXT = "http://local.kita.net/kilc_org"

var KILC_CONTEXT = "http://kilc.kita.net/kilc";
var KILCORG_CONTEXT = "http://kilc.kita.org/kilc_org";

function kilcSite(str) {
  var num = Number(str);
  switch (num) {
	case 9001 :	// 관리자
		window.location.href = KILC_CONTEXT+"/admin/admin01.jsp";
  		break;  		
  	case 9002 :	// 국문사이트
  		window.location.href = KILC_CONTEXT+"/main.jsp";
  		break;  		
  	case 9003 :	// 영문사이트
  		window.location.href = KILCORG_CONTEXT+"/main.jsp";
  		break;  		
  
    case 1001 : // 국제물류지원단 홈페이지
      window.location.href = "main.jsp";
      break;
    case 1002 : // 중국물류 홈페이지
      window.location.href = "http://www.chinalogis.net/";
      break;
    case 1003 : // 일본물류 홈페이지 
      window.location.href = "";
      break;  
      
    case 1101 : // About KILC > Head's Message  
      window.location.href = KILCORG_CONTEXT+"/about/about01.jsp";
      break; 
      
    case 1102 : // About KILC > What We do (introduction)
    	window.location.href = KILCORG_CONTEXT+"/about/about02.jsp";
      break; 

    case 11022 : // About KILC > What We do (Mission)
    	window.location.href = KILCORG_CONTEXT+"/about/about03.jsp";
      break;
      
    case 11023 : // About KILC > What We do (Services)
    	window.location.href = KILCORG_CONTEXT+"/about/about04.jsp";
      break;      
      
    case 1103 : // About KILC > Organization Chart
    	window.location.href = KILCORG_CONTEXT+"/about/about05.jsp";
      break;

    case 1104 : // About KILC > How to Come
    	window.location.href = KILCORG_CONTEXT+"/about/about06.jsp";
      break;
      
    case 1201 : //Logistics Statistics > Logistics Industry in Korea
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics01.jsp";
      break;
      
    case 1202 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics02.jsp";
      break;
    case 12021 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics02.jsp";
      break;
    case 120212 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics02_2.jsp";
      break;
    case 120213 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics02_3.jsp";
      break;
    case 120214 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics02_4.jsp";
      break;
    case 120215 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics02_5.jsp";
      break;
    case 12022 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics03.jsp";
      break;
    case 12023 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics04.jsp";
      break;
    case 120232 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics04_2.jsp";
      break;
    case 120233 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics04_3.jsp";
      break;
    case 120234 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics04_4.jsp";
      break;
    case 120235 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics04_5.jsp";
      break;
    case 120236 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics04_6.jsp";
      break;
    case 120237 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics04_7.jsp";
      break;
    case 12024 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics05.jsp";
      break;
    case 120242 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics05_2.jsp";
      break;
    case 120243 : //Logistics Statistics > Logistics Infrastructure
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics05_3.jsp";
      break;
      
    case 1203 : //Logistics Statistics > Investment Promotion Policies
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics06.jsp";
      break;
      
    case 12031 : //Logistics Statistics > Investment Promotion Policies
    	window.location.href = KILCORG_CONTEXT+"/logistics/logistics06.jsp";
      break;

      
    case 1301 : // What's New > News 
      window.location.href = KILCORG_CONTEXT+"/notice/news.jsp";
      break;
      
    case 1401 : // Archives > Photo Gallery 
      window.location.href = KILCORG_CONTEXT+"/archives/archive01.jsp";
      break;
      
    case 1402 : // Archives > Policy Materials  
      window.location.href = KILCORG_CONTEXT+"/archives/archive02.jsp";
      break; 
      
    case 1403 : // Archives > Useful Links  
      window.location.href = KILCORG_CONTEXT+"/archives/archive03.jsp";
      break; 
      
    case 1404 : // Archives > Logistics Data 
      window.location.href = KILCORG_CONTEXT+"/archives/archive04.jsp";
      break;
                               
    }
}

/*==========================================*
페이지 수정 팝업
*==========================================*/
function editContent(){
 	var winURL ="../webeditor/webeditor.jsp";
 	var winName = "editor";
	var winWidth = 800;
  	var winHeight = 600;
  	var winTop = 100;
  	var winLeft = 100;
 	var winOption = "width=" + winWidth + ",height=" + winHeight + ",top=" + winTop + ",left=" + winLeft;
	var winPop = window.open(winURL, winName, winOption+",scrollbar=yes");
	winPop.focus();
}
/*==========================================*
로그인 로그아웃 
*==========================================*/
function kilcLogin(url) {
	location.href="http://login.kita.net/login/login.jsp?geturl=" + url;
}
function kilcLogout(url) {
	location.href="http://login.kita.net/login/logout.jsp?geturl=" + url;
}
