//Open PopUP
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//Sliding Menu
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if(browserName == "Netscape" && browserVer >= 3) {
	init = "net";
} else {
	init = "ie";
}

var _scroll_topmargin=223;/*ÀÌµ¿ ¸Þ´ºÀÇ »ó´Ü ÇÑ°è ÇÈ¼¿*/
var _scroll_ing_topmargin=30;/*¿òÁ÷ÀÌ´Â µµÁßÀÇ »ó´Ü°úÀÇ °£°Ý*/
var _scroll_activate_speed=0;/*ÃÊ±â ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ½Ã°£Â÷ÀÌ (1/1000ÃÊ)*/
var _scroll_ing_activate_speed=0;/*¿òÁ÷ÀÌ±â ½ÃÀÛÇÑ ÀÌÈÄ¿¡ °¨ÁöÇÏ´Â ½Ã°£Â÷ÀÌ (1/1000ÃÊ)*/

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";

function moveRightEdge() {
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset+_scroll_ing_topmargin;
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop)+_scroll_ing_topmargin;
	}
	if(yMenuTo<_scroll_topmargin) yMenuTo = _scroll_topmargin;

	timeoutNextCheck = _scroll_activate_speed;

	if (yMenuFrom != yMenuTo) {
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 10);
		if (yMenuTo < yMenuFrom) yOffset = -yOffset;
		if (isNS4) divMenu.top += yOffset;
		else if (isDOM) divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
		timeoutNextCheck = _scroll_ing_activate_speed;
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck);
}


// Image Filter
<!--
function bt(id,after) 
{ 
eval(id+'.filters.blendTrans.stop();'); 
eval(id+'.filters.blendTrans.Apply();'); 
eval(id+'.src="'+after+'";'); 
eval(id+'.filters.blendTrans.Play();'); 
} 
//-->


/* swap ÀÌ¹ÌÁö°ü·Ã ¼Ò½º */
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
//-->
