/* ÇÃ·¡½Ã ½ºÅ©¸³Æ® ver2 */
function flashTrace(url,id,w,h,bg,vars,win){
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";
	document.write(flashStr);
}

/* ºê¶ó¿ìÁ® Å¸ÀÌÆ² */
document.title=":: AHNJAEWOOK ::";

/* ÀÚµ¿ ÀÌ¹ÌÁö Æ÷Ä¿½º ¾Æ¿ô */
/*function autoblur(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
	document.body.focus(); 
} 
document.onfocusin=autoblur;*/

/* ¸µÅ© °æ·Î */
function comm_01() {
	window.location.href = "/comm/comm_01.aspx";
}

/* PNG IE6 ¿¡¼­ ±¸ÇöÇÏ±â */
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='';  
	return ''; 
} 

// ÀÌ¹ÌÁö ·Ñ¿À¹ö  =======================================================================================================
function imgon() {
	this.src = this.src.replace("_off.gif", "_on.gif");
}
function imgoff() {
	this.src = this.src.replace("_on.gif", "_off.gif");
}

// ÅÇ¸Þ´º  =============================================================================================================
function initTab(menuElId) {
	var tabMenu = document.getElementById(menuElId).getElementsByTagName("a");
	for(i=0; i<tabMenu.length; i++) {
		thismenu = tabMenu.item(i);
		thismenu.menuContainer = document.getElementById(menuElId);
		thismenu.targetEl = document.getElementById(tabMenu.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.getElementsByTagName("img").item(0).onmouseover = imgoff;
		thismenu.getElementsByTagName("img").item(0).onmouseout = imgoff;
		thismenu.onclick = tabClick;
	}
	initmenu = tabMenu.item(0);
	initmenu.targetEl.style.display = "block";
	initmenu.getElementsByTagName("img").item(0).onmouseover = imgon;
	initmenu.getElementsByTagName("img").item(0).onmouseout = imgon;
	initmenu.getElementsByTagName("img").item(0).onmouseover();
	initmenu.menuContainer.current = initmenu;
}

function initTab2(menuElId, index) {
	var tabMenu = document.getElementById(menuElId).getElementsByTagName("a");
	for(i=0; i<tabMenu.length; i++) {
		thismenu = tabMenu.item(i);
		thismenu.menuContainer = document.getElementById(menuElId);
		thismenu.targetEl = document.getElementById(tabMenu.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		thismenu.getElementsByTagName("img").item(0).onmouseover = imgoff;
		thismenu.getElementsByTagName("img").item(0).onmouseout = imgoff;
		thismenu.getElementsByTagName("img").item(0).onmouseout();
		thismenu.onclick = tabClick;
	}
	initmenu = tabMenu.item(index);
	initmenu.targetEl.style.display = "block";
	initmenu.getElementsByTagName("img").item(0).onmouseover = imgon;
	initmenu.getElementsByTagName("img").item(0).onmouseout = imgon;
	initmenu.getElementsByTagName("img").item(0).onmouseover();
	initmenu.menuContainer.current = initmenu;
	thismenu = tabMenu.item(0);
	thismenu.getElementsByTagName("img").item(0).onmouseout();
}

function tabClick() {
	currentmenu = this.menuContainer.current;
	if (currentmenu != this) {
		currentmenu.targetEl.style.display = "none";
		currentmenu.getElementsByTagName("img").item(0).onmouseover = imgoff;
		currentmenu.getElementsByTagName("img").item(0).onmouseout = imgoff;
		currentmenu.getElementsByTagName("img").item(0).onmouseout();
	
		this.targetEl.style.display = "block";
		this.getElementsByTagName("img").item(0).onmouseover = imgon;
		this.getElementsByTagName("img").item(0).onmouseout = imgon;
		this.getElementsByTagName("img").item(0).onmouseover();
		this.menuContainer.current = this;
	}
	return false;
}

//¿À¸¥ÂÊ ¸¶¿ì½º ±ÝÁö  =============================================================================================================
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS) 
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

function mischandler(){
  if(EnableRightClick==1){ return true; }
  else {return false; }
}

function mousehandler(e){
  if(EnableRightClick==1){ return true; }
  var myevent = (isNS) ? e : event;
  var eventbutton = (isNS) ? myevent.which : myevent.button;
  if((eventbutton==2)||(eventbutton==3)) return false;
}

function keyhandler(e) {
  var myevent = (isNS) ? e : window.event;
  if (myevent.keyCode==96)
    EnableRightClick = 1;
  return;
}

document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
