/********* �÷��� *********/
function showFlash(flaFile, widths, heights, btrans) { 

  var strings = '<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="' + widths + '"  height="' + heights + '"><param name="movie" value="' + flaFile + '"> <param name="quality" value="high"> '; 

  if (btrans == 'y') { 
    strings += '<param name="wmode" value="transparent">'; 
  } 

  strings += '<embed src="' + flaFile + '" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + widths + '" height="' + heights + '"> </embed> </object>'; 

  document.write(strings); 

  return; 
} 
/********* �÷��� *********/

<!-- �??
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

//���ݱ�
function winClose() {
window.close()
} 
//?시??영?보?
function winOpenEngAntarctic() {
window.open("../../../english/popup/movie_antarctic.html","newWin","width=420,height=590,toolbar=no")
} 

function winOpenEngArctic() {
window.open("../../../english/popup/movie_arctic.html","newWin","width=420,height=590,toolbar=no")
}

//?터
function goto_new(url) {
	var windowprops = ""; // ?업창의 ?션
	if(url != ""){
		popup = window.open(url,'',windowprops);
	}
}


// �ǽð� �����󺸱�
function winOpensejong() {
window.open("../../infra/popup/movie_sejong.html","newWin","width=420,height=590,toolbar=no")
} 

function winOpendasan() {
window.open("../../infra/popup/movie_dasan.html","newWin","width=420,height=590,toolbar=no")
} 


/********* ��ü����޴?*********/
function openmenuview() 
{ 
    menu_view.style.visibility="visible";
	}
	
function closemenuview() 
{ 
    menu_view.style.visibility="hidden";
	}
/********* //��ü����޴?*********/

/********* ��޴�����޴� *********/
function openmenuquick() 
{ 
    quick_close.style.visibility="visible";
	}
	
function closemenuquick() 
{ 
    quick_close.style.visibility="hidden";
	}
/********* //��޴�����޴� *********/

/********* ��ũ�� ���ٴϴ� ���̾� *********/
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function JSFX_FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	var px = document.layers ? "" : "px";
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.cx = el.sx = sx;el.cy = el.sy = sy;
	el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};

	el.floatIt=function()
	{
		var pX, pY;
		pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
		document.documentElement && document.documentElement.clientWidth ? 
		document.documentElement.clientWidth : document.body.clientWidth;
		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
		document.documentElement.scrollTop : document.body.scrollTop;
		if(this.sy<0) 
		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
		document.documentElement.clientHeight : document.body.clientHeight;
		this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.floatIt()", 30);
	}
	return el;
}
//����: ������ ��ü ��=�� �Ʒ��ڵ� ����
//JSFX_FloatDiv("wing", 880,143).floatIt();



/********* ��ܸ޴?*********/
//About KOPRI
function menu01_0101(){window.open("/english/eng_about/eng_greetings/eng_greetings.cms","_self")} //Greetings
function menu01_0201(){window.open("/english/eng_about/eng_vision/eng_vision.cms","_self")} //Vision & Mission
function menu01_0301(){window.open("/english/eng_about/eng_history/eng_history.cms","_self")} //History
function menu01_0401(){window.open("/english/eng_about/eng_ci/eng_ci.cms","_self")} //CI
function menu01_0501(){window.open("/english/eng_about/eng_organization/eng_organization.cms","_self")} //Organization
function menu01_0601(){window.open("/english/eng_about/eng_about/eng_staff/staffEng.do","_self")} //Staff
function menu01_0701(){window.open("/english/eng_about/eng_contact/eng_contact.cms","_self")} //Contact
function menu01_0801(){window.open("/english/eng_about/eng_visitorinformation/eng_visitorinformation.cms","_self")} //Visitor Information
function menu01_0901(){window.open("/english/eng_about/eng_brochure/eng_brochure.cms","_self")} //Eng_brochure
function menu01_1001(){window.open("/english/eng_about/eng_annual_report/eng_annual_report.cms","_self")} //Eng_brochure

//Research Activities
function menu02_0101(){window.open("/english/eng_research/eng_majortopics/eng_majortopic01/eng_majortopic01.cms","_self")} //Major Topics
function menu02_0201(){window.open("/english/eng_research/eng_yearResearchTasks/eng_research/reportList.do","_self")} //Researches
function menu02_0301(){window.open("/english/eng_research/eng_science/eng_science.cms","_self")} //Enhancement of basic polar science


//Stations & IceBreaker
function menu03_0101(){window.open("/english/eng_infra/eng_antarctic/eng_antarctic_intro/eng_antarctic_intro.cms","_self")} //Antarctic King Sejong Station
function menu03_0201(){window.open("/english/eng_infra/eng_arctic/eng_arctic_intro/eng_arctic_intro.cms","_self")} //Arctic Dasan Station
function menu03_0301(){window.open("/english/eng_infra/eng_antarctic_continental/eng_antarctic_continental.cms","_self")} //Antarctic Continental Station
function menu03_0401(){window.open("/english/eng_infra/eng_araon_intro/eng_araon_intro.cms","_self")} //Korean Research IceBreaker


//Data Center
function menu04_0101(){window.open("/english/eng_datacenter/eng_kpdc/eng_kpdc_intoduction/eng_kpdc_intoduction.cms","_self")} //KPDC
function menu04_0201(){window.open("/english/eng_datacenter/eng_adds/eng_adds_intoduction/eng_adds_intoduction.cms","_self")} //ADDS
//function menu04_0301(){window.open("#","_blank")} //External
function menu04_0401(){window.open("http://kpdc.kisti.re.kr/meta/index.jsp","_blank")} //Meta Data Search
function menu04_0501(){window.open("http://gcmd.gsfc.nasa.gov/KeywordSearch/Home.do?Portal=amd&MetadataType=0","_blank")} //AMD Data Search


//Multimedia
function menu05_0101(){window.open("/english/eng_multimedia/eng_image/eng_image_arctic/userBbs/bbsList.do?bbs_cd_n=37","_self")} //Photo
function menu05_0201(){window.open("/english/eng_multimedia/eng_movie/eng_movie_arctic/userBbs/bbsList.do?bbs_cd_n=39","_self")} //Movies
function menu05_0301(){window.open("/english/eng_multimedia/eng_wallpaper/userBbs/bbsList.do?bbs_cd_n=41","_self")} //Wall Papers

function setClipBoard(target_url)
{
 window.clipboardData.setData('Text', "http://kopri.re.kr"+target_url);
 alert('Copy Complete.');
}
/********* //��ܸ޴?*********/
