//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 menuOn(imgEl)
{
	imgEl.src = imgEl.src.replace("_off.gif", "_on.gif");
}
function menuOut(imgEl)
{
	imgEl.src = imgEl.src.replace("_on.gif", "_off.gif");
}

/*----------------------------------------------------------------------------
â ȭ   Լ
----------------------------------------------------------------------------*/
function newwin(w_url,w_title,w_width,w_height,w_resizable,w_scrollbars)
{
	var option = "alwaysRaised,toolbar=0,status=0,menubar=0";
	
	var w_left = (screen.width)?(screen.width-w_width)/2:100;
	var w_top = (screen.height)?(screen.height-w_height)/2:100;
	
	//width  height   ȭ  ǥѴ
	if (w_width) option = option + ",width=" + w_width + ",left=" + w_left;
	if (w_height) option = option + ",height=" + w_height + ",top=" + w_top;
	//âũ ɰ ũѹ ǥô ⺻  , Ҷ δ
	if (w_resizable == true) option = option + ",resizable=1";
	if (w_scrollbars == true) option = option + ",scrollbars=1";

	var new_instance = window.open(w_url,w_title,option,"");
	new_instance.focus();
//	window.open(w_url,w_title,option,"");
}