function ikhan_swf(url, width, height, allowDomain) {
	if (allowDomain = "") {allowDomain = false;}
	try {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 + '">');
	if (allowDomain = true) {
		document.write('<param name="allowScriptAccess" value="sameDomain"/>');}
		document.write('<param name="quality" value="high"><param name="wmode" value="transparent"><PARAM NAME="menu" VALUE="false">');
		document.write('<embed src="' + url + '" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" menu="false"></embed>');
		document.write('</object>');} catch(E){}
}

function IKHAN(id)
{document.write(id.innerHTML); id.id="";}

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();} 
document.onfocusin=bluring;

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


function openWin(name,tt,otl,opt,opw,oph,scr,res) {
window.open(name, tt, "left="+otl+", top="+opt+", width="+opw+", height="+oph+", menubar=no, statusbar=no, scrollbars="+scr+", directories=no, toolbar=no, location=no, resizable="+res);
}
/* ·¹ÀÌ¾î ÆË¾÷ */
function popupLayer(s,w,h){
	if (!w) w = 600;
	if (!h) h = 400;

	var pixelBorder = 3;
	var titleHeight = 0;
	w += pixelBorder * 2;
	h += pixelBorder * 2 + titleHeight;

	var bodyW = document.body.clientWidth;
	var bodyH = document.body.clientHeight;

	var posX = (bodyW - w) / 2;
	var posY = (bodyH - h) / 2;

	hiddenSelectBox('hidden');

/* ¹é±×¶ó¿îµå ·¹ÀÌ¾î */
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		zIndex =2;
		left = 0;
		top = 0;
		height = document.body.scrollHeight;
		width= document.body.clientWidth;
		backgroundColor = "#000000";
		filter = "Alpha(Opacity=65)";
		opacity = "0.5";
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);

/* ³»¿ë */
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		zIndex = 3;
		left = posX + document.body.scrollLeft;
		top = posY + document.body.scrollTop;
		width = w;
		height = h;
		backgroundColor = "#000000";
		border = "5px solid #000000";
	}
	obj.id = "objPopupLayer";
	document.body.appendChild(obj);

/* ´Ý±â¹öÆ° ·¹ÀÌ¾î */
	var bottom = document.createElement("div");
	with (bottom.style){
		position = "absolute";
		zIndex = 2;
		width = w - pixelBorder * 2+7;
		height = titleHeight;
		left = 0;
		top =0;
		padding = "0px 0 0px 0";
		textAlign = "right";
		backgroundColor = "#000000";
		color = "#000000";
	}
	bottom.innerHTML = "<a href='javascript:closeLayer()'><img src='img/close.gif' border='0'></a>";
	obj.appendChild(bottom);

/* ¾ÆÀÌÇÁ·¹ÀÓ */
	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		width = w - 6;
		height = h - pixelBorder * 2 - titleHeight+8;
		border = "10 solid #000000";
		backgroundColor = "#000000";
		color = "#000000";
	}
	ifrm.frameBorder = 0;
	ifrm.src = s;
	ifrm.className = "scroll";
	obj.appendChild(ifrm);
}

function _ID(obj){
	return document.getElementById(obj)
}

function hiddenSelectBox(mode){
	var obj = document.getElementsByTagName('select');
	for (i=0;i<obj.length;i++){
		obj[i].style.visibility = mode;
	}
}

function closeLayer(){
	hiddenSelectBox('visible');
	_ID('objPopupLayer').parentNode.removeChild( _ID('objPopupLayer') );
	_ID('objPopupLayerBg').parentNode.removeChild( _ID('objPopupLayerBg') );
}

//°øÁö
function com01(){
	popupLayer("http://olive2u.ploggers.co.kr/board/List.aspx?BID=notice", 880, 600);
}

//Áú¹®
function com02(){
	popupLayer("http://olive2u.ploggers.co.kr/board/List.aspx?BID=qna", 880, 600);
}

//Æ÷Åä
function com03(){
	popupLayer("http://olive2u.ploggers.co.kr/board/Photo.aspx?BID=photo", 880, 600);
}

//ÈÄ±â
function com04(){
	popupLayer("http://olive2u.ploggers.co.kr/board/List.aspx?BID=review", 880, 600);
}

//ÀÌº¥Æ®
function com05(){
	popupLayer("/ik_ct/bbs/board.php?bo_table=db2", 880, 600);
}

//½Ç½Ã°£
function reser04(){
	popupLayer("/online.htm", 880, 600);
}
//map
function map(){
	popupLayer("map.htm", 800, 600);
	backgroundColor = "#000000";
}

