
function goCyberTour() {
	window.open("/cybertour/index.jsp","cybertour","left=0,top=0,width=758,height=551") ;
}

// ÆÐ¹Ð¸® »çÀÌÆ® :: ¹Î¼Ó¹Ú¹°°ü
function openFamilyMuseum() {
	window.open('/museum/museum.jsp','family_website','left=0,top=0,width=890,height=620,scrollbars=0,toolbar=0,menubar=0,status=0,resizable=0,location=0,directories=0') ;
}

// ÆÐ¹Ð¸® »çÀÌÆ® :: °¶·¯¸®
function openFamilyGallery() {
	window.open('/gallery/gallery.jsp','family_website','left=0,top=0,width=890,height=620,scrollbars=0,toolbar=0,menubar=0,status=0,resizable=0,location=0,directories=0') ;
}

// ÆÐ¹Ð¸® »çÀÌÆ® :: ¼îÇÎ¸ô
function openFamilyShopping() {
	window.open('/shopping/shopping.jsp','family_website','left=0,top=0,width=890,height=620,scrollbars=0,toolbar=0,menubar=0,status=0,resizable=0,location=0,directories=0') ;
}

// ÆÐ¹Ð¸® »çÀÌÆ® :: ½ºÆ÷Ã÷
function openFamilySports() {
	window.open('/sports/sports.jsp','family_website','left=0,top=0,width=890,height=620,scrollbars=0,toolbar=0,menubar=0,status=0,resizable=0,location=0,directories=0') ;
}

/*************************************************
* ÀÛ¼ºÀÚ : ÀÌ¼±Çù
* ¼Ò¼Ó : ¾ÆÀÌµ§ºñ(IDENVI)
* ¸ÞÀÏ : dungboy@idenvi.com
* ÀÛ¼ºÀÏ : 2005-03-22
* ¼³¸í : ÆäÀÌÁö ³» ¸µÅ©¸¦ Á¤¸®ÇÒ ¼ö ÀÖ´Â ÇÔ¼ö (¸µÅ©°ü¸®ÀÇ Ã¼°èÈ­)
* ÆÄ¶ó¸ÞÅÍ :
	- num : ¸µÅ©±¸ºÐÀ» À§ÇÑ ¼ýÀÚÇü º¯¼ö
	- target : ¸µÅ©ÀÇ Å¸°Ù (new¸¦ ³Ñ±â¸é »õÃ¢À¸·Î ¶ç¿ò)
* »ç¿ë¿¹ : <a href="javascript:goPageLink(100,'new');">¸µÅ©1</a>
*************************************************/
function goPageLink(num,target) {
	linkObj = new Object() ;

	// ¾îµåº¥Ã³
	linkObj.m10000 = "javascript:;" ;
	linkObj.m10100 = "javascript:;" ;

	// ¸ÅÁ÷¾ÆÀÏ·£µå
	linkObj.m20000 = "javascript:;" ;
	linkObj.m20100 = "javascript:;" ;

	// ¿ùµåÆä½ºÆ¼¹ß
	linkObj.m30000 = "javascript:;" ;
	linkObj.m30100 = "javascript:;" ;

	// ÆÝ & Á¶ÀÌ
	linkObj.m40000 = "javascript:;" ;
	linkObj.m40100 = "javascript:;" ;

	// ÀÌº¥Æ®
	linkObj.m50000 = "/event/online/list.htm" ;
	linkObj.m50100 = "/event/online/list.htm" ;
	linkObj.m50101 = "/event/online/list.htm" ;
	linkObj.m50102 = "/event/online/winner.htm" ;
	linkObj.m50200 = "/event/online/list.htm" ;
	linkObj.m50300 = "/event/quiz/quiz.htm" ;
	linkObj.m50301 = "/event/quiz/quiz.htm" ;
	linkObj.m50302 = "/event/quiz/list.htm" ;
	linkObj.m50400 = "/event/research/research.htm" ;
	linkObj.m50401 = "/event/research/research.htm" ;
	linkObj.m50402 = "/event/research/list.htm" ;

	// ÀÌ¿ë°¡ÀÌµå
	linkObj.m60000 = "javascript:;" ;
	linkObj.m60100 = "javascript:;" ;

	// °í°´¼¾ÅÍ
	linkObj.m80000 = "javascript:;" ;
	linkObj.m80100 = "javascript:;" ;

	// ¸â¹ö½±
	linkObj.m90000 = "javascript:;" ;
	linkObj.m90100 = "javascript:;" ;

	if (linkObj["m"+num]) {
		if (target == "new") {
			window.open(linkObj["m"+num]) ;
		} else {
			top.location.href = linkObj["m"+num] ;
		}
	}
}

/*************************************************
FAQ  °ü·Ã ·¹ÀÌ¾î ÇÔ¼ö
*************************************************/
function viewFAQ(num) {
	objQ = top.document.getElementById("q_1") ;
	objA = top.document.getElementById("a_1") ;
	for (i=1 ; objQ && objA ; i++) {
		if (i == num) {
			objQ.className = "link02" ;
			objA.style.display = "block" ;
		} else {
			objQ.className = "" ;
			objA.style.display = "none" ;
		}
		objQ = top.document.getElementById("q_"+(i+1)) ;
		objA = top.document.getElementById("a_"+(i+1)) ;
	}
}

/*************************************************
½º¸±°ø°¨  °ü·Ã ·¹ÀÌ¾î ÇÔ¼ö
*************************************************/
function viewList(num) {
	objQ = top.document.getElementById("list_1") ;
	objA = top.document.getElementById("view_1") ;
	for (i=1 ; objQ && objA ; i++) {
		if (i == num) {
			objQ.className = "link04" ;
			objA.style.display = "block" ;
		} else {
			objQ.className = "" ;
			objA.style.display = "none" ;
		}
		objQ = top.document.getElementById("list_"+(i+1)) ;
		objA = top.document.getElementById("view_"+(i+1)) ;
	}
}

/*************************************************
* ÀÛ¼ºÀÚ : ÀÌ¼±Çù
* ¼Ò¼Ó : ¾ÆÀÌµ§ºñ(IDENVI)
* ¸ÞÀÏ : dungboy@idenvi.com
* ÀÛ¼ºÀÏ : 2005-04-11
* ¼³¸í : ·¹ÀÌ¾îÀÇ Visible ÄÜÆ®·Ñ (¼±ÅÃÇÑ ·¹ÀÌ¾î¸¸ º¸¿©ÁÖ°í ³ª¸ÓÁö ·¹ÀÌ¾î´Â ¼û±è, ·¹ÀÌ¾îÀÇ ÀÌ¸§Àº ÀÏÁ¤ÇÑ ±ÔÄ¢ÇÏ¿¡ ³×ÀÌ¹Ö µÇ¾î¾ß ÇÔ)
* ÆÄ¶ó¸ÞÅÍ :
	- objName : ·¹ÀÌ¾î¸í¿¡ »ç¿ëµÈ ±¸ºÐÀÚ
	- layerNum : ·¹ÀÌ¾î¸í¿¡ »ç¿ëµÈ ±¸ºÐ¼ýÀÚ
* »ç¿ë¿¹ : <a onClick="javascript:showHideLayer('layer',2);">1¹ø ·¹ÀÌ¾î º¸ÀÓ</a>
*************************************************/
function showHideLayer(objName , layerNum) {
	startLayerNumber = 0 ;
	obj = document.getElementById(objName+startLayerNumber) ;
	for (i=startLayerNumber ; obj ; i++) {
		if (i == layerNum) {
			obj.style.display = "" ;
		} else {
			obj.style.display = "none" ;
		}
		obj = document.getElementById(objName+(i+1)) ;
	}
}

/*************************************************
* ÀÛ¼ºÀÚ : ÀÌ¼±Çù
* ¼Ò¼Ó : ¾ÆÀÌµ§ºñ(IDENVI)
* ¸ÞÀÏ : dungboy@idenvi.com
* ÀÛ¼ºÀÏ : 2004-10-26
* ¼³¸í : Ã¢ ¿­±â ÇÔ¼ö
* ÆÄ¶ó¸ÞÅÍ :
	- url : »õ·Î ¿­ URL
	- name : Window ÀÌ¸§
	- propety : »õ·Î ¿­ Ã¢ÀÇ ¼Ó¼º°ª (¿¹:»õ·Î ¿­ XÁÂÇ¥, »õ·Î¿­ YÁÂÇ¥...)
* »ç¿ë¿¹ : <a onClick="javascript:windowOpen('/popup.htm','popup','left=0,top=0,width=500,height=500');">Close</a>
*************************************************/
function windowOpen(url,name,propety) {
	if (url) {
		if (!name) name = "" ;
		if (!propety) propety = "" ;
		window.open(url,name,propety) ;
	}
}

/*************************************************
* ÀÛ¼ºÀÚ : ÀÌ¼±Çù
* ¼Ò¼Ó : ¾ÆÀÌµ§ºñ(IDENVI)
* ¸ÞÀÏ : dungboy@idenvi.com
* ÀÛ¼ºÀÏ : 2004-10-26
* ¼³¸í : Ã¢ ´Ý±â ÇÔ¼ö
* ÆÄ¶ó¸ÞÅÍ : -
* »ç¿ë¿¹ : <a onClick="javascript:winClose();">Close</a>
*************************************************/
function winClose() {
	opener = self ; self.close() ;
}

/*************************************************
* ÀÛ¼ºÀÚ : ÀÌ¼±Çù
* ¼Ò¼Ó : ¾ÆÀÌµ§ºñ(IDENVI)
* ¸ÞÀÏ : dungboy@idenvi.com
* ÀÛ¼ºÀÏ : 2004-11-15
* ¼³¸í : ÆäÀÌÁö ½ºÅ©·ÑÀ» ÃÖ»ó´ÜÀ¸·Î ÀÌµ¿ (#¸µÅ©¿Í µ¿ÀÏ)
* ÆÄ¶ó¸ÞÅÍ : -
* »ç¿ë¿¹ : <a onClick="javascript:pageUp();">Top</a>
*************************************************/
function pageUp() {
	document.body.scrollTop = 0 ;
}

/*************************************************
* ÀÛ¼ºÀÚ : ÀÌ¼±Çù
* ¼Ò¼Ó : ¾ÆÀÌµ§ºñ(IDENVI)
* ¸ÞÀÏ : dungboy@idenvi.com
* ÀÛ¼ºÀÏ : 2005-05-20
* ¼³¸í : GET¹æ½ÄÀÇ º¯¼ö¸¦ ±¸ÇÔ
* ÆÄ¶ó¸ÞÅÍ :
	- vars : °¡Á®¿Ã º¯¼ö¸í
* »ç¿ë¿¹ : a = getQueryString("a") ;
*************************************************/
function getQueryString(vars) {
	this.dl = "" ; this.qVar = "" ; this.qValue = "" ; this.result = "" ;
	this.q = [] ; this.qstr = [] ;
	this.dl = top.document.location.href ;
	this.q = this.dl.split("?") ;
	if (this.q.length > 1) this.qstr = this.q[1].split("&") ; else this.qstr = "" ;
	for (this.i=0 ; this.i<this.qstr.length ; this.i++) {
		this.q = this.qstr[this.i].split("=") ;
		this.qVar = this.q[0] ;
		this.qValue = this.q[1] ;
		if (this.qVar == vars) this.result = this.qValue ;
	}
	if (this.result != "") return this.result ; else return "" ;
}

/*************************************************
* ÀÛ¼ºÀÚ : ÀÌ¼±Çù
* ¼Ò¼Ó : ¾ÆÀÌµ§ºñ(IDENVI)
* ¸ÞÀÏ : dungboy@idenvi.com
* ÀÛ¼ºÀÏ : 2005-05-17
* ¼³¸í : ½ºÄ«ÀÌ ½ºÅ©·¡ÆÛ (ÆäÀÌÁö³» ÀÏÁ¤ À§Ä¡¿¡ µû¶ó´Ù´Ï´Â ·¹ÀÌ¾î)
* ÆÄ¶ó¸ÞÅÍ :
* »ç¿ë¿¹ : <body onLoad="javascript:D_SkyScraper();"></body>
*************************************************/
// ½ºÅ©·¡ÆÛ ÀÛµ¿ºÎ
function D_SkyScraper(dss_oid , dss_width , dss_height , dss_sx , dss_sy , dss_fx , dss_fy , dss_sp , dss_per) {

	// º¯¼öÀâ±â
	this.oid = "" ;
	this.swidth = 0 ;
	this.sheight = 0 ;
	this.sx = 0 ;
	this.sy = 0 ;
	this.fx = 0 ;
	this.fy = 0 ;
	this.sp = 1 ;
	this.per = 1000 ;
	this.ssHTML = "" ;
	this.ssIntervalID = 0 ;
	this.ssObj = top.document.getElementById(dss_oid) ;

	if (dss_oid) this.oid = dss_oid.toString() ;
	if (dss_sx) this.swidth = parseInt(dss_width) ;
	if (dss_sx) this.sheight = parseInt(dss_height) ;
	if (dss_sx) this.sx = parseInt(dss_sx) ;
	if (dss_sy) this.sy = parseInt(dss_sy) ;
	if (dss_fx) this.fx = parseInt(dss_fx) ;
	if (dss_fy) this.fy = parseInt(dss_fy) ;
	if (dss_sp) this.sp = parseFloat(dss_sp) ;
	if (dss_per) this.per = parseInt(dss_per) ;

	// ½ºÅ©·¡ÆÛ »ý¼º
	if (this.ssObj) {
		this.ssObj.style.display = "none" ;
		this.ssHTML = this.ssObj.innerHTML ;
		this.ssObj.innerHTML = "" ;
	}
	if (this.ssHTML.length > 0) {
		top.document.write('<div id="DssBody_'+this.oid+'" style="position:absolute ; left:'+this.sx+'px ; top:'+this.sy+'px ; z-index:1000">') ;
		top.document.write(this.ssHTML) ;
		top.document.write('</div>') ;
		this.ssObj = top.document.getElementById("DssBody_"+this.oid) ;
		this.ssIntervalID = setInterval("parent.active()" , this.per) ;
	}

	// ½ºÅ©·¡ÆÛ ¿£Áø (½ÇÁ¦ ÀÛµ¿ºÎºÐÀÌ¹Ç·Î Á¶½ÉÁ¶½ÉÇØ¼­ ¼öÁ¤^^)
	function parent.active() {
		this.now_x = parseInt(parent.ssObj.style.left) ;
		this.now_y = parseInt(parent.ssObj.style.top) ;
		this.new_x = top.document.body.scrollLeft + parent.fx ;
		this.new_y = top.document.body.scrollTop + parent.fy ;
		if (top.document.body.clientHeight < (parent.fy + parent.sheight)) {
			this.new_y = top.document.body.scrollTop + 100 ;
		}
		if (this.new_y > (top.document.body.scrollHeight - parent.sheight)) {
			this.new_y = top.document.body.scrollHeight - parent.sheight ;
		}
		if (this.new_x > (top.document.body.scrollWidth - parent.swidth)) {
			this.new_x = top.document.body.scrollWidth - parent.swidth ;
		}
		this.next_x = parseInt(this.now_x + ((this.new_x - this.now_x) * parent.sp)) ;
		this.next_y = parseInt(this.now_y + ((this.new_y - this.now_y) * parent.sp)) ;
		if ((this.now_x == this.next_x) && (this.next_x != this.new_x)) {
			this.next_x -= (this.new_x - this.next_x) / (this.next_x - this.new_x) ;
		}
		if ((this.now_y == this.next_y) && (this.next_y != this.new_y)) {
			this.next_y -= (this.new_y - this.next_y) / (this.next_y - this.new_y) ;
		}
		parent.ssObj.style.left = this.next_x ;
		parent.ssObj.style.top = this.next_y ;
	}

}

//-->