
document.title="::(ÁÖ)¿¡µàÅ×Å©¼Ö·ç¼Ç¿¡ ¿À½Å°É È¯¿µÇÕ´Ï´Ù.::"

//IE º¯°æ¿¡ µû¸¥ »óÈ£ÀÛ¿ë ÄÁÆ®·Ñ °ü·Ã
function ShowFlash(strMediaURL,obj_width,obj_height)
{                                              

document.write('<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="' + obj_width + '" height="' + obj_height + '">   ');
document.write('        <param name="movie" value="' + strMediaURL + '">                                                                                                                                       ');
document.write('        <param name="quality" value="high">                                                                                                                                              ');
document.write('        <param name="wmode" value="transparent" />                                                                                                                                             ');
document.write('        <embed src="' + strMediaURL + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ obj_width + '" height="' + obj_height + '"></embed>       ');
document.write('      </object>                                                                                                                                                                          ');
}


// ¿£ÅÍ½Ã ´ÙÀ½ ÀÔ·ÂÆûÀ¸·Î ÀÌµ¿
function down(str)
{
	if(event.keyCode == 13) 
		f_next(str);
}

function f_next(nextComponentName){        
for(j=0;j<document.forms.length;j++){
	for(i = 0; i < document.forms[j].elements.length; i++){
		if( document.forms[j].elements[i].name == nextComponentName ){ 
						
			document.forms[j].elements[i].focus();
			event.returnValue = false; 
			return false;
		}
	}
	event.returnValue = false;
  }
}
	
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 




// »õÃ¢ ¶ç¿ì±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



//site link(select box »çÀÌÆ® ÀÌµ¿)
function goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


//Äü¸Þ´º
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

function CheckUIElements()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bExplorer4plus ) {  // IE ¿ë ¼³Á¤
                //yButtonFrom = parseInt (divLinkButton.style.top, 10);
                //yButtonTo   = document.body.scrollTop + document.body.clientHeight - 55;
                yMenuFrom   = parseInt (shop.style.top, 10);
                yMenuTo     = document.body.scrollTop + 150; // À§ÂÊ À§Ä¡ 91
        }

        timeoutNextCheck = 100;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("CheckUIElements()", timeoutNextCheck);
                return;
        }


        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bExplorer4plus )
                        shop.style.top = parseInt (shop.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function Slide()
{
        var y;

        // Æä¿¡Áö ·Îµù½Ã Æ÷Áö¼Ç
        if ( bExplorer4plus ) {
                shop.style.top = document.body.scrollTop;
                shop.style.visibility = "visible";
        }

        CheckUIElements();
        
        return true;
}