//-----------------------------------------------------------------------------------------------
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_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 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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//-----------------------------------------------------------------------------------------------
function findImgUrl(str)
{
	var oldImgUrl = document.images[str].src;
	var findText = "/";
	var findTextNum = oldImgUrl.lastIndexOf(findText) + 1;
	return(oldImgUrl.substring(0,findTextNum));
}

//-----------------------------------------------------------------------------------------------
function imgOver(imgName)
{
		newImgUrl = findImgUrl(imgName);
		document.images[imgName].src = newImgUrl + imgName + "on.gif";
}

//-----------------------------------------------------------------------------------------------
function imgOut(imgName)
{
		newImgUrl = findImgUrl(imgName);
		document.images[imgName].src = newImgUrl + imgName + "off.gif";
}

//-----------------------------------------------------------------------------------------------
function showFlashObject(objID, objSource, objWidth, objHeight, objQuality, objWmode, objBgcolor)
{
	//page url
	var pageUrl = self.window.location.href;
	if(pageUrl.substring(0,5) == 'https') {
		swfUrl = "https";
	} else {
		swfUrl = "http";
	}
	/* Default Value Setting */
	if (objID == "") objID = 'ShockwaveFlash1';
	if (objWidth == "") objWidth = '0';
	if (objHeight == "") objHeight = '0';
	if (objQuality == "") objQuality = 'best';
	if (objWmode == "") {
		objWmode = 'transparent';
	} else {
		objWmode = '';
	}
	/* Flash 8.0 version */
	document.write('<OBJECT id="' + objID + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('type="application/x-shockwave-flash" ');
	document.write('data="' + objSource + '" ');
	document.write('codebase="' + swfUrl +'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ');
	document.write('WIDTH="' + objWidth + '" HEIGHT="' + objHeight + '">');
	document.write('<PARAM NAME=menu value=false>');
	document.write('<PARAM NAME=allowScriptAccess value=SameDomain>');
	document.write('<PARAM NAME=wmode value="'+ objWmode +'">');
	document.write('<PARAM NAME=movie VALUE="'+ objSource +'">');
	document.write('<PARAM NAME=quality VALUE="'+ objQuality +'">');
	document.write('<PARAM NAME=bgcolor VALUE="'+ objBgcolor +'">');
	document.write('<embed allowScriptAccess="SameDomain" swLiveConnect="true" src="' + objSource + '" menu="false" quality="' + objQuality + '" wmode="' + objWmode + '" bgcolor="' + objBgcolor + '" width="' + objWidth + '" height="' + objHeight + '" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
	document.write('</OBJECT>');
}

//-----------------------------------------------------------------------------------------------
var myAnchors=document.all.tags("A"); 
function allblur() {
	for (i=0;i<myAnchors.length;i++) { 
		myAnchors[i].onfocus=new Function("myAnchors["+i+"].blur()");
	} 
}

//-----------------------------------------------------------------------------------------------
function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

// image roll
function menuOver() {
 this.src = this.src.replace(".gif", "_on.gif");
}
function menuOut() {
 this.src = this.src.replace("_on.gif", ".gif");
}

function imageOver(imgEl) {
 imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}
function imageOut(imgEl) {
 imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}

// main_tab
function tab_button(val,n) {
for(var i = 1; i <= n; i++) {
		if (i != val) {
			document.all['tab_'+ i].style.display = "none";
		} else {
			document.all['tab_'+ i].style.display = "block";
		}
	}
}


// tabbed menu
function initTabMenu(menuElId , args) {

 var tabMenu = document.getElementById(menuElId).getElementsByTagName("a");
 var itemValue	=	0;
 
 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 = menuOver;
  thismenu.getElementsByTagName("img").item(0).onmouseout = menuOut;
  thismenu.onclick = tabMenuClick;
 }

  
  if(args != null || typeof(args) !=  'undefined' )	itemValue	=	Number(args);

 initmenu = tabMenu.item(itemValue);
 initmenu.targetEl.style.display = "block";
 initmenu.getElementsByTagName("img").item(0).onmouseover();
 initmenu.getElementsByTagName("img").item(0).onmouseover = null;
 initmenu.getElementsByTagName("img").item(0).onmouseout = null;
 initmenu.menuContainer.current = initmenu;
}


function tabMenuClick() {
 currentmenu = this.menuContainer.current;
 if (currentmenu != this) {
  currentmenu.targetEl.style.display = "none";
  currentmenu.getElementsByTagName("img").item(0).onmouseover = menuOver;
  currentmenu.getElementsByTagName("img").item(0).onmouseout = menuOut;
  currentmenu.getElementsByTagName("img").item(0).onmouseout();
 
  this.targetEl.style.display = "block";
  this.getElementsByTagName("img").item(0).onmouseover = null;
  this.getElementsByTagName("img").item(0).onmouseout = null;
  this.menuContainer.current = this;
 }
 return false;
}
//¿À´Ãº»»óÇ°
var allCheck = 0;
var obj2;
var max = 0;
var num1 = 1;
var num2 = 2;