
// °¡¿îµ¥ Á¤·Ä½Ã ÁÂÃø ÇÃ·¡½Ã¹è³Ê
function initLeftBanner(){
  floatingBanner("LeftBanner", 208, 250);
}
function initartmenu1(){
  floatingBanner1("artmenu1", 10, 66);
}
// start floating ¹è³Ê
function floatingBanner(objname, posX, posY){
	var obj = getRef(objname);
	obj.style.top = document.body.scrollTop + posY;
	obj.style.visibility = "visible";
	obj.style.setExpression("left", "calXBanner(" + posX + ")", "javascript");
	window.setInterval("calYBanner('" + objname +"', " + posY + ")", 10);
}
function floatingBanner1(objname, posX, posY){
	var obj = getRef(objname);
	obj.style.top = document.body.scrollTop + posY;
	obj.style.visibility = "visible";
	obj.style.setExpression("left", "calXBanner(" + posX + ")", "javascript");
	//window.setInterval("calYBanner('" + objname +"', " + posY + ")", 10);
}

function calXBanner(posX){
  var edge = (document.body.clientWidth - 960) / 2;
  if( edge < 0 ) edge = 5;
  return posX + edge;
}

function calYBanner(objname, posY){
	//alert(objName);
	var obj = getRef(objname);
	var yBannerPos, yScrollTopPos;
	var yLimitPos;
	var interval;
	var yNewPos;
	var yNewTop;
	var dHeight = posY;

	yScrollTopPos = parseInt(document.body.scrollTop, 10);
	yBannerPos = parseInt(obj.style.top, 10);
	if (document.body.scrollTop < dHeight) {
		yLimitPos = dHeight;
	}else {
		yLimitPos = document.body.scrollTop + 20;
	}

	if (yBannerPos != yLimitPos) {
	yNewPos = Math.ceil(Math.abs(yLimitPos - yBannerPos) / 10);

		if (yLimitPos < yBannerPos) {
			yNewPos = -yNewPos;
		}
	
		yNewTop = parseInt(obj.style.top, 10) + yNewPos;
		if (yNewTop > document.body.scrollHeight) {
			obj.style.top = document.body.scrollHeight;
		}else {
			obj.style.top = yNewTop;
		}
	}
}



<!-- ·¹ÀÌ¾î¸¦ °íÁ¤ÇÏ´Â ½ºÅ©¸³Æ® ½ÃÀÛ ------------------>

var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

function getRef(id) {
  if (isDOM) return document.getElementById(id);
  if (isIE4) return document.all[id];
  if (isNS4) return document.layers[id];
}
var isNS = navigator.appName == "Netscape";

<!-- ·¹ÀÌ¾î¸¦ °íÁ¤ÇÏ´Â ½ºÅ©¸³Æ® Á¾·á ----------------->
<!-- FAQ¿ë 
  var previd = null;

    function displaySub(subID)
	{
        if (previd != null)
		{
			if (previd != subID)
			{
			    previd.style.display = "none";
			}
		}

		if (subID.style.display == "none")
		{
			subID.style.display = "block";
		}
		else
		{
			subID.style.display = "none";
		}

		previd = subID;
        //titleID.style.bold = true;


	}
//-->

<!--Áñ°ÜÃ£±â ½ºÅ©¸³Æ®
function bookmark(){
window.external.AddFavorite('http://www.newstage.co.kr', 'Newstage')
}
//½ºÅ©¸³Æ® ³¡-->


<!-- 
/* ÀÌ¹ÌÁö Å©±â¿¡ ¸Â°Ô »õÃ¢ ¿­±â*/ 
function view(what) { 
  var imgwin =window.open("",'WIN','scrollbars=no,status=no,toolbar=no,resizable=1,location=no,menu=no,width=10,height=10'); 
  imgwin.focus(); 
  imgwin.document.open(); 
  imgwin.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n"); 
  imgwin.document.write("<html>\n"); 
  imgwin.document.write("<head>\n"); 
  imgwin.document.write("<title>È¨ÆäÀÌÁö</title>\n"); 
    imgwin.document.write("<sc"+"ript>\n"); 
  imgwin.document.write("function resize() {\n"); 
  imgwin.document.write("pic = document.il;\n"); 
  //imgwin.document.write("alert(eval(pic).height);\n"); 
  imgwin.document.write("if (eval(pic).height) { var name = navigator.appName\n"); 
  imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 60;  myWidth = eval(pic).width + 10;\n"); 
  imgwin.document.write("  } else { myHeight = eval(pic).height + 56; myWidth = eval(pic).width + 8; }\n"); 
  imgwin.document.write("  clearTimeout();\n"); 
  imgwin.document.write("  var height = screen.height;\n"); 
  imgwin.document.write("  var width = screen.width;\n"); 
  imgwin.document.write("  var leftpos = 10;\n"); 
  imgwin.document.write("  var toppos = 10; \n"); 
  imgwin.document.write("  self.moveTo(leftpos, toppos);\n"); 
  imgwin.document.write("  self.resizeTo(myWidth, myHeight);\n"); 
  imgwin.document.write("}else setTimeOut(resize(), 100);}\n"); 
  imgwin.document.write("</sc"+"ript>\n"); 
  imgwin.document.write("</head>\n"); 
  imgwin.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="#FFFFFF">\n'); 
  imgwin.document.write("<img border=0 src="+what+" xwidth=100 xheight=9 name=il onload='resize();' alt='ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù.' title='ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ´ÝÈü´Ï´Ù.' onClick='javascript:window.close()'>\n"); 
  imgwin.document.write("</body>\n"); 
  imgwin.document.write("</html>\n"); 
  imgwin.document.close(); 
} 
//--> 