function cal(){ window.open('/ecalendar/main.html' ,'cal' ,'width=790,height=550');}
function kor(){ location.href="/index.asp";}
function eng(){ location.href="/eng/index.asp";}
//function eng_contact(){ location.href="mailto:museum@hoammuseum.org";}
function eng_contact(){ location.href="mailto:juliana.park@samsung.com";}

u1="/eng/info/main.html";
u2="/eng/gallery/main.html"
//u2="http://www.leeum.org/eng/collection/ancient.asp";
u3="/eng/exhibit/main.html";
u4="/eng/heewon/main.html";
u5="/eng/program/research.html";
u6="/eng/program/main.html";
u7="/eng/sitemap/main.html";

function link(){
	var url = "";
	var depth = arguments.length;
	try{
		if(depth==0) return;
		else if(depth==1) url = eval("u"+arguments[0]);
		else if(depth==2) url = eval("u"+arguments[0]+arguments[1]);
		else if(depth==3) url = eval("u"+arguments[0]+arguments[1]+arguments[2]);
		else if(depth==4) url = eval("u"+arguments[0]+arguments[1]+arguments[2]+arguments[3]);

		//if(arguments[0]==2) { window.open(url,'leeum','width=1024,height=768,location=1,directories=1,resizable=1,status=1,toolbar=1,menubar=1,scrollbars=1');}
		if(url=="") alert("ÁØºñÁßÀÔ´Ï´Ù.");
		else
		{
			if(top.location == null)
			{
				location.href=url;
			}
			else
			{
				top.location.href=url;
			}

			//window.top.location.href = url;
		}

	}catch(e) { alert("¸µÅ©°ªÀÌ ¾ø½À´Ï´Ù!"); }

}

//ÀÌ¿Ã¶ó½º
function getFlash(url, wid, hei){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+wid+" height="+hei+"><param name='movie' value='"+url+"'><param name='quality' value='high'><param name='allowScriptAccess' value='sameDomain'><param name='wmode' value=transparent><embed src='"+url+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width="+wid+" height="+hei+"></embed></object>");
}
