 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='';obj.src=''; 
        return '';
    }


function Call_Swf(URL,SizeX,SizeY,Transparent_YN,strConditionAll){


	document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');

	document.write(	'				codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');

	document.write(	'				width="'+SizeX+'" height="'+SizeY+'" id="productXc" align="middle">');

	document.write(	'				<param name="movie" value="'+URL+'" />');

	document.write(	'				<param name="quality" value="high" />');

	document.write(	'				<param name="allowScriptAccess" value="always" />');

	document.write(	'				<param name="allowFullScreen" value="false" />');
	document.write(	'				<param name="menu" value="false" />');
	document.write( '              <param name="FlashVars" value="'+strConditionAll+'" />');

	if(Transparent_YN == 'Y') {

		document.write(	'				<param name="wmode" value="transparent"/>');

	}
	document.write(	'				<embed src="'+URL+'"  FlashVars="'+strConditionAll+'"  wmode="transparent" quality="high" allowScriptAccess="always" allowFullScreen="false" ');
	document.write(	'						bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="productXc1"');
	document.write(	'						align="middle" ');
	document.write(	'						type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write(	'		</object>		');

}



	

function rondom_pic() {

 function getRandom(nums)  

 {  

 var ranNum= Math.round(Math.random()*nums);  

return ranNum;  

 }  


// Tells us how many images we have available.  

 var numberOfImages    = 4;  

 var randomNumber        = getRandom(numberOfImages);  

    

 // Create an array to hold the names of all images.  

 var image = new Array(numberOfImages);  

 image[0]="/img/kor/layout/bike_1.png";  

 image[1]="/img/kor/layout/bike_2.png";  
 
 image[2]="/img/kor/layout/bike_4.png";
 
 image[3]="/img/kor/layout/bike_4.png";

 image[4]="/img/kor/layout/bike_5.png";




 // Write the img tag with a random image name.  

 document.write("<img src='" + image[randomNumber] + "'  width='348' class='png24'  />");  

   
}

//call alert
function set_alert(val){
	alert(val);
}



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_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_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 pagetop() {
window.scrollTo(0,0);
}


function login_need() {
 alert("·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.");	
 document.location.href = "login.asp"
 
}

function login_need_e() {
 alert("Login is required");	
 document.location.href = "login.asp"
 
}

function login_need_jp() {
 alert("«í«°«¤«óª·ªÆª¯ªÀªµª¤");	
 document.location.href = "login.asp"
 
}






var panelWidth = 2000;    // Width of help panel
var slideSpeed = 3000;        // Higher = quicker slide
var slideTimer = 100;    // Lower = quicker slide
var slideDisplayWidth = 300;    // Lower = quicker slide
var slideActive = true;    // Slide active ?
var initBodyMargin = 0;    // Left or top margin of your <body> tag (left if panel is at the left, top if panel is on the top)
var pushMainContentOnSlide = false;    // Push your main content to the right when sliding
var panelPosition = 0;     // 0 = left , 1 = top

/*    Don't change these values */
var slideLeftPanelObj=false;
var slideInProgress = false;
var startScrollPos = false;
var panelVisible = false;
var blockobj = '1';
var layw= '';
var layh = '';
function initSlideLeftPanelStart(bobj,w,h){

	blockobj=bobj;
	layw=w;
	layh=h;
	initSlideLeftPanel();
}
function initSlideLeftPanel(expandOnly)
{


    if(slideInProgress)return;
    if(!slideLeftPanelObj){
        if(document.getElementById('dhtmlgoodies_leftPanel')){    // Object exists in HTML code?
            slideLeftPanelObj = document.getElementById('dhtmlgoodies_leftPanel');
            if(panelPosition == 1)slideLeftPanelObj.style.width = '100%';
        }else{    // Object doesn't exist -> Create <div> dynamically
            slideLeftPanelObj = document.createElement('DIV');
            slideLeftPanelObj.id = 'dhtmlgoodies_leftPanel';
            slideLeftPanelObj.style.display='block';
            document.body.appendChild(slideLeftPanelObj);
        }

        if(panelPosition == 1){
            slideLeftPanelObj.style.top = "-" + panelWidth + 'px';
            slideLeftPanelObj.style.left = '0px';
            slideLeftPanelObj.style.height = panelWidth + 'px';
        }else{
            slideLeftPanelObj.style.left = "-" + (panelWidth) + 'px';
            slideLeftPanelObj.style.top = '0px';
            slideLeftPanelObj.style.width = '100%';
        }


        if(!document.all || navigator.userAgent.indexOf('Opera')>=0)slideLeftPanelObj.style.position = 'fixed';;
    }
    if(panelPosition == 0){
        if(document.documentElement.clientHeight){
            slideLeftPanelObj.style.height = document.documentElement.clientHeight + 'px';
        }else if(document.body.clientHeight){
            slideLeftPanelObj.style.height = document.body.clientHeight + 'px';
        }
        var leftPos = slideLeftPanelObj.style.left.replace(/[^0-9\-]/g,'')/1;

    }else{
        if(document.documentElement.clientWidth){
            slideLeftPanelObj.style.width = document.documentElement.clientWidth + 'px';
        }else if(document.body.clientHeight){
            slideLeftPanelObj.style.width = document.body.clientWidth + 'px';
        }
        var leftPos = slideLeftPanelObj.style.top.replace(/[^0-9\-]/g,'')/1;
    }



    slideLeftPanelObj.style.display='block';

    if(panelPosition==1)
        startScrollPos = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
    else
        startScrollPos = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
    if(leftPos<(0+startScrollPos)){


        if(slideActive){
            slideLeftPanel(slideSpeed);

        }else{
            document.body.style.marginLeft = panelWidth + 'px';
            slideLeftPanelObj.style.left = '0px';
        }
    }else{
        if(expandOnly)return;
        if(slideActive){
            slideLeftPanel(slideSpeed*-1);
        }else{
            if(panelPosition == 0){
                if(pushMainContentOnSlide)document.body.style.marginLeft =  initBodyMargin + 'px';
                slideLeftPanelObj.style.left = (panelWidth*-1) + 'px';
            }else{
                if(pushMainContentOnSlide)document.body.style.marginTop =  initBodyMargin + 'px';
                slideLeftPanelObj.style.top = (panelWidth*-1) + 'px';
            }
        }
    }

    if(navigator.userAgent.indexOf('MSIE')>=0 && navigator.userAgent.indexOf('Opera')<0){
        window.onscroll = repositionHelpDiv;

        repositionHelpDiv();
    }
    window.onresize = resizeLeftPanel;

if(blockobj=="about:blank"){
	document.getElementById('ria_layer').style.display="none";
	slideLeftPanelObj.style.display="none";

}else{
	slideLeftPanelObj.style.display="block";
	document.getElementById('ria_layer').style.display="block";
	document.getElementById('popupwin').src=blockobj;
	document.getElementById('popupwin').style.width=layw + "px";
	document.getElementById('popupwin').style.height=layh + "px";
}

}

function resizeLeftPanel()
{



    if(panelPosition == 0){
       if(document.documentElement.clientHeight){
            slideLeftPanelObj.style.height = document.documentElement.clientHeight + 'px';
        }else if(document.body.clientHeight){
            slideLeftPanelObj.style.height = document.body.clientHeight + 'px';
        }
            slideLeftPanelObj.style.width = '100%';
    }else{
		alert();
        if(document.documentElement.clientWidth){
        }else if(document.body.clientWidth){
            slideLeftPanelObj.style.width = '100%';
        }
    }


}
function slideLeftPanel(slideSpeed){



    slideInProgress =true;
    var scrollValue = 0;
    if(panelPosition==1)
	{
        var leftPos = slideLeftPanelObj.style.top.replace(/[^0-9\-]/g,'')/1;
	}
    else
	{
        var leftPos = slideLeftPanelObj.style.left.replace(/[^0-9\-]/g,'')/1;

	}



    leftPos+=slideSpeed;

    okToSlide = true;
    if(slideSpeed<0){
        if(leftPos < (((panelWidth-slideDisplayWidth)*-1) + startScrollPos)){
            leftPos = ((panelWidth-slideDisplayWidth)*-1) + startScrollPos;
            okToSlide=false;



        }
    }
    if(slideSpeed>0){
        if(leftPos > (0 + startScrollPos)){
            leftPos = 0 + startScrollPos;
            okToSlide = false;
       }
    }


    if(panelPosition==0){
        slideLeftPanelObj.style.left = leftPos + startScrollPos + 'px';
        if(pushMainContentOnSlide)document.body.style.marginLeft = leftPos - startScrollPos + panelWidth + 'px';
    }else{
        slideLeftPanelObj.style.top = leftPos + 'px';
        if(pushMainContentOnSlide)document.body.style.marginTop = leftPos - startScrollPos + panelWidth + 'px';

    }
    if(okToSlide)setTimeout('slideLeftPanel(' + slideSpeed + ')',slideTimer); else {
        slideInProgress = false;
        if(slideSpeed>0)panelVisible=true; else panelVisible = false;



    }

}


function repositionHelpDiv()
{
    if(panelPosition==0){
        var maxValue = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
        slideLeftPanelObj.style.top = maxValue;
        var maxValue = Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
        slideLeftPanelObj.style.left = maxValue;
    }else{
        var maxTop = Math.max(document.body.scrollTop,document.documentElement.scrollTop);
        if(!slideInProgress)slideLeftPanelObj.style.top = (maxTop - (panelVisible?0:panelWidth)) + 'px';
    }
}

function cancelEvent()
{
    return false;
}
function keyboardShowLeftPanel()
{
        initSlideLeftPanel();
        return false;

}

function leftPanelKeyboardEvent(e)
{
    if(document.all)return;



    if(e.keyCode==112){
        initSlideLeftPanel();
        return false;
    }

}

function setLeftPanelContent(text)
{
    document.getElementById('leftPanelContent').innerHTML = text;
    initSlideLeftPanel(true);

}

function insertFlash(swf, width, height, bgcolor, id, flashvars, title)
{
	var strFlashTag = new String();

	if (navigator.appName.indexOf("Microsoft") != -1)
	{
		strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
		strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
		strFlashTag += 'id="' + id + '" title="' + title + '" width="' + width + '" height="' + height + '">';
		strFlashTag += '<param name="movie" value="' + swf + '"/>';

		if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
		strFlashTag += '<param name="quality" value="best"/>';
		strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
		strFlashTag += '<param name="menu" value="false"/>';
		strFlashTag += '<param name="salign" value="LT"/>';
		strFlashTag += '<param name="scale" value="noscale"/>';
		strFlashTag += '<param name="wmode" value="transparent"/>';
		strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
		strFlashTag += '</object>';
	}
	else
	{
		strFlashTag += '<embed src="' + swf + '" ';
		strFlashTag += 'quality="best" ';
		strFlashTag += 'bgcolor="' + bgcolor + '" ';
		strFlashTag += 'width="' + width + '" ';
		strFlashTag += 'height="' + height + '" ';
		strFlashTag += 'menu="false" ';
		strFlashTag += 'scale="noscale" ';
		strFlashTag += 'id="' + id + '" ';
		strFlashTag += 'salign="LT" ';
		strFlashTag += 'wmode="transparent" ';
		strFlashTag += 'allowScriptAccess="sameDomain" ';
		if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
		strFlashTag += 'type="application/x-shockwave-flash" ';
		strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
		strFlashTag += '</embed>';
	}

	document.write(strFlashTag);
}
