//ÆË¾÷
function openPop( filesrc, filename ,mywidth, myheight){
	
	var popWidth = mywidth;
	var popHeight = myheight;
	window.open( filesrc, filename,'width='+popWidth+',height='+popHeight+',top=0,left=0,toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars=0, resizable=0');
}

//Ç®½ºÅ©¸° ÆË¾÷
function fullpop(){
	window.open( 'main.php', 'buttoncom' , 'fullscreen=yes' );
}

// ÇÃ·¡½Ã
function flash_contents(file,width,height){
document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+width+"' HEIGHT='"+height+"' id='contents' ALIGN=''>");
document.writeln("<PARAM NAME=allowScriptAccess VALUE=always />");
document.writeln("<PARAM NAME=movie VALUE='"+file+"' />");
document.writeln("<PARAM NAME=quality VALUE=high>");
document.writeln("<PARAM NAME=bgcolor VALUE=#FFFFFF>");
document.writeln("<PARAM NAME=wmode VALUE=transparent> ");
document.writeln("<PARAM NAME=base VALUE=.> ");
document.writeln("<embed base='.' src='"+file+"' quality='high' bgcolor='#FFFFFF' width='"+width+"' height='"+height+"' name='contents' align='middle' allowScriptAccess='always' swLiveConnect='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
document.writeln("</OBJECT>");
}

//Åõ¸í ¾ÆÀÌÇÁ·¹ÀÓ
function ifmView(ifrLeft,ifrTop,ifrWidth,ifrHeight,myUrl) {  
document.all.contentFrames.style.left = ifrLeft;
document.all.contentFrames.style.top = ifrTop;
document.all.contentFrames.style.width = ifrWidth;
document.all.contentFrames.style.height = ifrHeight;
contentFrames.location.href = myUrl;
document.all.contentFrames.style.display = 'block';
}

function ifmHide(){
 document.all.contentFrames.style.display = 'none';
 contentFrames.location.href = "about:blank";
}

//ÄÁÅÙÃ÷ °Ë»ö
function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}


//top¹öÆ°
function back_top()
{
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
        step = 2;

        while ((x != 0) || (y != 0)) {
                scroll (x, y);
                step += (step * step / 300);
                x -= step;
                y -= step;
                if (x < 0) x = 0;
                if (y < 0) y = 0;
        } 
        scroll (0, 0);
}