/* ÇÃ·¡½Ã start */

function Flash(id,url,w,h,bg,t){
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="+w+" height="+h+" id="+id+">\
<param name='movie' value="+url+" />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src="+url+" wmode="+t+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}

/* ÇªÅÍ °íÁ¤ ÇÃ·¡½Ã */
function Flash_footer(id,bg,t){
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='1000' height='160' id="+id+">\
<param name='movie' value='/swf/footer.swf' />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src='/swf/footer.swf' wmode="+t+" width='1000' height='160' name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}

/* Äü¸Þ´º °íÁ¤ ÇÃ·¡½Ã : 080605 Àå¿õ:Äü¸Þ´º¼öÁ¤À» À§ÇÑ ÇÔ¼öÃß°¡*/
function Flash_quick(id,bg,t){
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='75' height='340' id="+id+">\
<param name='movie' value='../swf/quick.swf?link=../swf/xml/quick.xml' />\
<param name='wmode' value="+t+" />\
<param name='bgcolor' value="+bg+" />\
<param name='allowScriptAccess' value='sameDomain' />\
<param name='quality' value='high' />\
<param name='menu' value='false' />\
<embed src='../swf/quick.swf?link=../swf/xml/quick.xml' wmode="+t+" width='75' height='340' name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
</object>\
");
}

/* ÇÃ·¡½Ã end */



/* Äü¸Þ´º start */

var stmnLEFT = 0; // ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡ 690
var stmnGAP1 = 30; // ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é (ÀÌº¸´Ù À§·Î´Â ¿Ã¶ó°¡Áö ¾ÊÀ½) 
var stmnGAP2 = 130; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ 
var stmnBASE = 230; // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ stmnGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½) 
var stmnActivateSpeed = 200; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²) 
var stmnScrollSpeed = 10; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ) 
var mainScroll = document.getElementsByTagName('html')[0];
//var mainScroll = document.body.scrollTop;


function RefreshStaticMenu() { 
	var stmnStartPoint, stmnEndPoint, stmnRefreshTimer; 
	stmnStartPoint = parseInt(document.getElementById('quick_menu').style.top, 10); 
	stmnEndPoint = mainScroll.scrollTop + stmnGAP2 - 180; 
	if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1; 
	
	if ( stmnStartPoint != stmnEndPoint ) { 
	stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 20); 
	document.getElementById('quick_menu').style.top = parseInt(document.getElementById('quick_menu').style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount ); 
	stmnRefreshTimer = stmnScrollSpeed; 

	} 
	
	else { 
		stmnRefreshTimer = stmnActivateSpeed; 
	}
	setTimeout ("RefreshStaticMenu();", stmnRefreshTimer); 

	}

function InitializeStaticMenu() { 
	document.getElementById('quick_menu').style.top = mainScroll.scrollTop + stmnBASE; 
	RefreshStaticMenu(); 
	document.getElementById('quick_menu').style.left = stmnLEFT; 
} 




/* Äü¸Þ´º end */


/*div º¸ÀÌ±â Á¦¾î */

function clickshow(num) {
    for (i=1; i<=10; i++) {
        menu=eval("document.all.Layer"+i+".style");
        if (num==i) {
            if (menu.display=="block") {
                menu.display="none";
            }
            else {
                menu.display="block";
            }
        }
    }
}

/* ¼¾ÅÍ ·¹ÀÌ¾î ¶ç¿ì±â */

function _ID(obj){return parent.document.getElementById(obj)}
function _IDD(obj){return parent.document.getElementById(obj)}



function popupLayer(s,w,h)
{
	if (!w) w = 600;
	if (!h) h = 400;

	var pixelBorder = 0;
	var titleHeight = 0;
	w += pixelBorder * 0;
	h += pixelBorder * 0 + titleHeight;

	var bodyW = document.documentElement.clientWidth;
	var bodyH = document.documentElement.clientHeight;

	var posX = (bodyW - w) / 2;
	var posY = (bodyH - h) / 2;

	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = 0;
		top = 0;
		width = "100%";
		height = document.documentElement.scrollHeight;
		backgroundColor = "#000000";
		filter = "Alpha(Opacity=70)";
		opacity = "0.5";
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);

	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = document.body.clientWidth / 5;
		//alert(left);
		top = document.body.clientHeight / 9;
		zIndex = 50;
		width = w;
		height = h;
		backgroundColor = "#FFFFFF";
		border = "0px solid #000000";
	}
	obj.id = "objPopupLayer";
	document.body.appendChild(obj);

	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		width = w;
		height = h;
	}
	ifrm.frameBorder = 0;
	ifrm.src = s;
	obj.appendChild(ifrm);
}
function popupLayer_room(s,w,h)
{
	if (!w) w = 600;
	if (!h) h = 400;

	var pixelBorder = 0;
	var titleHeight = 0;
	w += pixelBorder * 0;
	h += pixelBorder * 0 + titleHeight;

	var bodyW = document.documentElement.clientWidth;
	var bodyH = document.documentElement.clientHeight;

	var posX = (bodyW - w) / 2;
	var posY = (bodyH - h) / 2;

	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = 0;
		top = 0;
		width = "100%";
		height = document.documentElement.scrollHeight;
		backgroundColor = "#000000";
		filter = "Alpha(Opacity=70)";
		opacity = "0.5";
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);

	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = 40;
		//alert(left);
		top = 245;
		zIndex = 50;
		width = w;
		height = h;
		backgroundColor = "#FFFFFF";
		border = "0px solid #000000";
	}
	obj.id = "objPopupLayer";
	document.body.appendChild(obj);

	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		width = w;
		height = h;
	}
	ifrm.frameBorder = 0;
	ifrm.src = s;
	obj.appendChild(ifrm);
}
function popupLayer_center(s,w,h)
{
	if (!w) w = 600;
	if (!h) h = 400;

	var pixelBorder = 0;
	var titleHeight = 0;
	w += pixelBorder * 0;
	h += pixelBorder * 0 + titleHeight;

	var bodyW = document.documentElement.clientWidth;
	var bodyH = document.documentElement.clientHeight;

	var bodyScrolltop = document.getElementsByTagName('html')[0].scrollTop;
	
	var posX = (bodyW - w) / 2;
	var posY = (bodyH - h) / 2  + bodyScrolltop;

	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
		left = 0;
		top = 0;
		width = "100%";
		height = document.documentElement.scrollHeight;
		backgroundColor = "#000000";
		filter = "Alpha(Opacity=70)";
		opacity = "0.5";
	}
	obj.id = "objPopupLayerBg";
	document.body.appendChild(obj);
	var obj = document.createElement("div");
	with (obj.style){
		position = "absolute";
//		left = document.body.clientWidth / 5;
		left = posX;
//		top = document.body.clientHeight / 9;
		top = posY;
		zIndex = 50;
		width = w;
		height = h;
		backgroundColor = "#FFFFFF";
		border = "0px solid #000000";
	}
	obj.id = "objPopupLayer";
	document.body.appendChild(obj);

	var ifrm = document.createElement("iframe");
	with (ifrm.style){
		width = w;
		height = h;
	}
	ifrm.frameBorder = 0;
	ifrm.src = s;
	obj.appendChild(ifrm);
}
	function closeLayer(){

		_ID('objPopupLayer').parentNode.removeChild( _ID('objPopupLayer') );
		_IDD('objPopupLayerBg').parentNode.removeChild( _IDD('objPopupLayerBg') );
	}

/* ¼¾ÅÍ ·¹ÀÌ¾î ¶ç¿ì±â */

/* »çÀÌ¹öÅõ¾î ÆË¾÷ */
function OpenWindow(url,intWidth,intHeight) {
      window.open(url, "cybertour", "width="+intWidth+",height="+intHeight+",resizable=0,scrollbars=0,toolbar=0,location=0,directories=0,status=0,menubar=0") ;
} 
