//Popup
function popup(Fn,Win, X, Y, Scroll){
l = (screen.width) ?	(screen.width- X) / 2 : 0;
t = (screen.height) ?	(screen.height- Y) / 2 : 0;
	NewWindow=window.open(Fn,Win,'width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}

// 점선 없애기 시작 
function allblur() {
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
}
document.onfocusin = allblur;

//flash
function flash(id, width, height){
document.write('<object align=center classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id=ShockwaveFlash1>'
+'<param name="movie" value="'+id+'">'
+'<param name="quality" value="high">'
+'<param name="wmode" value="transparent">'
+'<embed src="'+id+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash"></embed>'
+'</object>');
}

function mov_func_notoolbar(url,id,width,height){
    var flObjectElement = document.createElement('<OBJECT id="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player Components..." type="application/x-oleobject" width="'+width+'" height="'+height+'"></OBJECT>');

    var myParamElement0 = document.createElement('<param name="Filename" value="'+url+'">');
    var myParamElement1 = document.createElement("<PARAM NAME='AutoStart' VALUE='1'>");
    var myParamElement2 = document.createElement("<PARAM NAME='AutoSize' VALUE='1'>");
    var myParamElement3 = document.createElement("<PARAM NAME='AnimationAtStart' VALUE='0'>");
    var myParamElement4 = document.createElement("<PARAM NAME='DisplayMode' VALUE='4'>");
    var myParamElement5 = document.createElement("<PARAM NAME='Enabled' VALUE='1'>");
    var myParamElement6 = document.createElement("<PARAM NAME='ShowControls' VALUE='0'>");
    var myParamElement7 = document.createElement("<PARAM NAME='ShowAudioControls' VALUE='0'>");
    var myParamElement8 = document.createElement("<PARAM NAME='ShowDisplay' VALUE='0'>");
    var myParamElement9 = document.createElement("<PARAM NAME='ShowGotoBar' VALUE='0'>" );
    var myParamElement10 = document.createElement("<PARAM NAME='ShowPositionControls' VALUE='0'>" );
    var myParamElement11 = document.createElement("<PARAM NAME='ShowStatusBar' VALUE='0'>" );
    var myParamElement12 = document.createElement("<PARAM NAME='ShowCaptioning' VALUE='0'>" );

    flObjectElement.appendChild(myParamElement0); 
    flObjectElement.appendChild(myParamElement1); 
    flObjectElement.appendChild(myParamElement2); 
    flObjectElement.appendChild(myParamElement3); 
    flObjectElement.appendChild(myParamElement4); 
    flObjectElement.appendChild(myParamElement5); 
    flObjectElement.appendChild(myParamElement6); 
    flObjectElement.appendChild(myParamElement7); 
    flObjectElement.appendChild(myParamElement8); 
    flObjectElement.appendChild(myParamElement9); 
    flObjectElement.appendChild(myParamElement10); 
    flObjectElement.appendChild(myParamElement11); 
    flObjectElement.appendChild(myParamElement12); 

    id.appendChild(flObjectElement);
  }

  function move(){
  		document.body.scrollTop = 380;
  }
  
  function move2(cnt){
  	var top = 380;
  	top += 500;
  	for(var i=0;i<cnt;i++){
  		top += 69;
  	}
  	document.body.scrollTop = top;
  }
  
  function move3(cnt){
  	var top = 380;
  	top += 200;
  	for(var i=0;i<cnt;i++){
  		top += 70;
  	}
  	document.body.scrollTop = top;
  }