<!-- // JavaScript Document

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


//-->


//½ÃÀÛÆäÀÌÁö¼³Á¤
function setStartPage()
{
	document.links[0].style.behavior = 'url(#default#homepage)' ;
	document.links[0].setHomePage("http://rexhum.com") ;
	
	//window.style.behavior='url(#default#homepage)' ;
	//window.setHomePage('') ;
}

//Áñ°ÜÃ£±â
function BookMark()
{
	window.external.AddFavorite('http://rexhum.com', 'Rexhum¿¡ ¿À½Å °ÍÀ» È¯¿µÇÕ´Ï´Ù.');
}

//ActiveX - XP Update KB912945 - »ç¿ë¹ý: <comment id="__NOSCRIPT_ID__"> ~ </comment><script>__ShowEmbedObject(__NOSCRIPT_ID__);< /script>
function __ShowEmbedObject(__ELEMENT_ID) {
	document.write( __ELEMENT_ID.innerHTML );
	__ELEMENT_ID.id = "";
}

function __ShowFlash(efile,ewidth,eheight,equality,ename,ewmode)
{
	fval  = '<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="'+ ewidth +'" height="'+ eheight +'" id="'+ ename +'">';
	fval += '<param name="movie" value="'+ efile +'">';
	fval += '<param name="quality" value="'+ equality +'">';
	fval += '<param name="wmode" value="'+ ewmode +'">';
	fval += '<embed src="'+ efile +'" width="'+ ewidth +'" height="'+ eheight +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>';
	fval += '</object>';
	
	document.write(fval);
}

// ÀÚµ¿À¸·Î 'onfocus=this.blur()' ´Þ±â
function bluring() {
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

nUrl = location.href;

nUrl = nUrl.replace('http://','');

nUrl = nUrl.substring(nUrl.indexOf('/'));

if(nUrl == "/html/main.html")
	uLastScrollY = -0;
else
	uLastScrollY = -0;


// Quick Menu ½ºÅ©·Ñ
self.onError=null;
currentX = currentY = 0;  
whichIt = null;           
lastScrollX = 0; lastScrollY = uLastScrollY;
NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1: 0;
<!-- STALKER CODE -->
function heartBeat() {
	if(IE) { 
		diffY = document.body.scrollTop; 
		diffX = 0; 
	}
	if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
	if(diffY != lastScrollY) {
		percent = .1 * (diffY - lastScrollY);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.quick.style.pixelTop += percent;
		if(NS) document.quick.top += percent; 
		lastScrollY = lastScrollY + percent;
	}
	if(diffX != lastScrollX) {
		percent = .1 * (diffX - lastScrollX);
		if(percent > 0) percent = Math.ceil(percent);
		else percent = Math.floor(percent);
		if(IE) document.all.quick.style.pixelLeft += percent;
		if(NS) document.quick.top += percent;
		lastScrollY = lastScrollY + percent;
	}	
}
	
function init()
{
	if(document.all.quick)
	{
		if(NS || IE) action = window.setInterval("heartBeat()",1);
	}
}




// ¼­ºê¸Þ´º : <% lt = Trim(Request("lt")) %>, bt('name','images.gif'), <%if lt="01" then%>_over<%end if%>, style="filter:blendTrans(duration=0.3)"
function bt(id,after)
{
  eval(id+'.filters.blendTrans.stop();'); 
  eval(id+'.filters.blendTrans.Apply();'); 
  eval(id+'.src="'+after+'";'); 
  eval(id+'.filters.blendTrans.Play();'); 
}

//ÅÇ - »ç¿ë¹ý : javascript:chgTab('tb', 3, 1), id="tb1" style="display:none"
function chgTab(tbName, tbCount, tbNum) {
	for(i=1;i<=tbCount;i++){
		obj = document.getElementById(tbName+i);
		if(i != tbNum) {
			obj.style.display = 'none';
		}
		else {
			obj.style.display = 'block';
		}
	}
}

// Åä±Û FAQ
function toggle(tblObject, tblCount, tblNum){
	if (document.all[tblObject+tblNum].style.display != "none") {
	  	document.all[tblObject+tblNum].style.display = "none"
	}
	else {
		for (i=1; i<=tblCount; i++) {
			document.all[tblObject+i].style.display = "none";
		}
//			document.all.tbl5.style.display = "none";
			document.all[tblObject+tblNum].style.display = "";
	}
}

// Jump Menu
function changeURL(url) {
if (url != "") window.open(url);
}

// <select name="family" onChange="javascript:select_change(this.value);" class="select1" style="width:140px;height:16px">
function select_change(e)
{
	if(e != "")
		window.open(e,'','');
}

// ÆÐ¹Ð¸®»çÀÌÆ® <select name="link" onchange="MM_jumpMenu('new',this,0)" style="width: 145px ;background-color:#FFFFFF;border:1px solid #EDEDED;font-family:µ¸¿ò;font-size:9pt;">
function jumpMenu(targ,selObj,restore){ //v3.0
  if(targ=="new") 
    window.open(selObj.value);
	//window.open(selObj.value,"new"); 
  else 
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// µ¿¿µ»óÀç»ý
function play1() {
  document.winplay.Play();
}
function play2() {
  document.winplay.Pause();
}
function play3() {
  document.winplay.Stop();
  document.winplay.CurrentPosition = 0;
}

// ie¿¡¼­ Åõ¸í png »ç¿ëÇÏ±â #1 - img ÅÂ±×¿¡ Àû¿ë
function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter =
	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src=''; 
	return '';
}


//-------------------------------------------------------------------//
//  °ø¹éÁ¦°ÅÈÄ ±æÀÌ Ã¼Å© (±æÀÌ¹ÝÈ¯)                                  //
//-------------------------------------------------------------------//
function ReplaceStr(strOriginal, strFind, strChange)
{
	var position, strOri_Length;
  position = strOriginal.indexOf(strFind);  
    
  while (position != -1)
  {
		strOriginal = strOriginal.replace(strFind, strChange);
    position    = strOriginal.indexOf(strFind);
  }
  
  strOri_Length = strOriginal.length;
  return strOri_Length;
}


//-------------------------------------------------------------------//
//  ¿µ¹® ´ë¹®ÀÚ·Î º¯È¯ÇÏ´Â ÇÔ¼ö                                      //
//-------------------------------------------------------------------//
function ToUpper(comp) 
{
	var strNew; 
	var str = comp.value;
	
	if (comp.value != 0) 
	{
		for( var i =0 ; i<str.length; i++ )
		{
			if( str.charAt(i) >= 'a' && str.charAt(i) <= 'z' )
				strNew = strNew + str.charAt(i).toUpperCase() ;
			else
				strNew = strNew + str.charAt(i);
		}
		comp.value = strNew.substring(9);
	}
	return;
}

