<!--
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_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_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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


var EmbedStr = "";
function GetFlash(url,x,y) { 
	EmbedStr = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + x + "' height='" + y + "'>";
	EmbedStr += "<param name='allowScriptAccess' value='sameDomain' />";
	EmbedStr += "<param name='movie' value='" + url + "' />";
	EmbedStr += "<param name='quality' value='high' />";
	EmbedStr += "<param name='bgcolor' value='#ffffff' />";
	EmbedStr += "<param name='wmode' value='transparent' />";
	EmbedStr += "<embed src='" + url + "' quality='high' wmode='transparent' bgcolor='#ffffff' width='" + x + "' height='" + y + "' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	EmbedStr += "</object>";
	
	document.write(EmbedStr);
	return;
}

function GetPlayMP3(value, width, height) {
	var objectMP3;
	objectMP3 = "";

	objectMP3 += '<object width="' + width + '" height="' + height + '">';
	objectMP3 += '<embed src="' + value + '" width="' + width + '" height="' + height + '">';
	objectMP3 += '</embed>';
	objectMP3 += '</object>';

	document.write(objectMP3);
}



/* [Á¡¼± ¾ø¾Ö±â] ½ÃÀÛ ############################################################################*/
function allblur()
	{
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
	}

	document.onfocusin = allblur;
/* [Á¡¼± ¾ø¾Ö±â] ³¡ ##############################################################################*/


//ÅÇ¸Þ´º
function toggleLayers(showIds, hideIds)
{
    for(var i in hideIds)
        document.getElementById(hideIds[i]).style.display = 'none';
    for(var i in showIds)
        document.getElementById(showIds[i]).style.display = 'block';
}

//**  main tab menu **//
function tabchange(img,divid,usetitle){
	var tabarea=img.parentNode;
	var imgs=tabarea.getElementsByTagName('img');
	var setimgsrc,setimgcheck,imgtype,newname,obj;
	
	var iset=(!usetitle)?1:0;

	//off image set
	for(var i=iset; i<imgs.length; i++){
		imgs[i].style.cursor='pointer';
		setimgsrc=imgs[i].src.split("/");
		setimgcheck=setimgsrc[setimgsrc.length-1].split(".gif");
		imgcheck=setimgcheck[0];
		if(!usetitle){
			obj=eval(document.getElementById(divid+i));
		}else{
			obj=eval(document.getElementById(divid+(i+1)));
		}
		if(img==imgs[i]){
			if(imgcheck.indexOf('on')==-1){
				img.src=img.src.replace(imgcheck,imgcheck+'on');
			}
			if(obj) obj.style.display='block';
		}else{
			if(imgcheck.indexOf('on')!=-1){
				newname=imgcheck.replace('on','');
				imgs[i].src=imgs[i].src.replace(newname+'on',newname);
			}
			if(obj) obj.style.display='none';
		}
	}

}


//**  image change **//
function imgchange(imgobj){
 imgobj.onmouseover=function(){if(this.src.indexOf('on.gif')==-1) this.src=this.src.replace('.gif','on.gif');}
 imgobj.onmouseout=function(){if(this.src.indexOf('on.gif')!=-1) this.src=this.src.replace('on.gif','.gif');}
}

//**  main menu **//
function mainmenu(img,divid,subidno){
	var tabarea=img.parentNode;
	var imgs=tabarea.getElementsByTagName('img');
	var setimgsrc,setimgcheck,onlyimgname,imgtype,newname,obj,sobj;

	for(var i=0; i<imgs.length; i++){
		imgs[i].style.cursor='pointer';
		setimgsrc=imgs[i].src.split("/");
		setimgcheck=setimgsrc[setimgsrc.length-1].split(".gif");
		onlyimgname=setimgcheck[0];
		obj=eval(document.getElementById(divid+(i+1)));
		if(img==imgs[i]){
			if(setimgsrc[setimgsrc.length-1].indexOf('on.gif')==-1) img.src=img.src.replace(onlyimgname,onlyimgname+'on');
			imgs[i].onmouseout=function(){
				if(this.src.indexOf('on.gif')!=-1) this.src=this.src.replace('on.gif','.gif');
				sobj=eval(document.getElementById(divid+subidno));
				sobj.style.display='none';
			}
			obj.style.display='block';
			obj.onmouseover=function(){ 
				this.style.display='block';
				var myimgsrc=imgs[subidno-1].src.split("/");
				var myimgcheck=myimgsrc[myimgsrc.length-1].split(".");
				if(myimgsrc[myimgsrc.length-1].indexOf('on.gif')==-1) imgs[subidno-1].src=imgs[subidno-1].src.replace('.gif','on.gif');
			}
			obj.onmouseout=function(){
				this.style.display='none';
				var myimgsrc=imgs[subidno-1].src.split("/");
				var myimgcheck=myimgsrc[myimgsrc.length-1].split(".");
				if(myimgsrc[myimgsrc.length-1].indexOf('on.gif')!=-1) imgs[subidno-1].src=imgs[subidno-1].src.replace('on.gif','.gif');
			}
		}else{
			if(setimgsrc[setimgsrc.length-1].indexOf('on.gif')!=-1) imgs[i].src=imgs[i].src.replace('on.gif','.gif');
			obj.style.display='none';
		}
	}

}


//Äü¹è³Ê
function scrollMenu(objid,starttop,bottommargin){
	var obj=document.getElementById(objid);
	var ny=starttop+document.body.scrollTop;
	var mosttop=(document.body.clientHeight+document.body.scrollTop)-(bottommargin+obj.offsetHeight);
	var speed=10;
	if(mosttop<=starttop){
		mosttop=starttop;
		obj.style.top=(obj.offsetTop+((mosttop-obj.offsetTop)/speed))+'px';
	}else if(mosttop>starttop){
		if(document.body.clientHeight<document.body.scrollTop){
			obj.style.top=(obj.offsetTop+((mosttop-obj.offsetTop)/speed))+'px';
		}else{
			obj.style.top=(obj.offsetTop+((ny-obj.offsetTop)/speed))+'px';
		}
	}
	setTimeout("scrollMenu('"+objid+"',"+starttop+","+bottommargin+")",10);
}



//ÇÃ·¡½ÃÃâ·Â
function getFlash(id,url,w,h,t,bg){
	var flashOut='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width='+w+' height='+h+' id='+id+'>';
	flashOut+='<param name="movie" value='+url+' />';
	flashOut+='<param name="wmode" value='+t+' />';
	flashOut+='<param name="bgcolor" value='+bg+' />';
	flashOut+='<param name="allowScriptAccess" value="sameDomain" />';
	flashOut+='<param name="quality" value="high" />';
	flashOut+='<param name="menu" value="false" />';
	flashOut+='<embed src='+url+' width='+w+' height='+h+' name='+id+' wmode='+t+' bgcolor='+bg+' swLiveConnect="true" allowScriptAccess="sameDomain" quality="high" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	flashOut+='</embed>';
	flashOut+='</object>';

	document.write(flashOut);
}


// ÆË¾÷
function MM_openBrWindow(theURL,winName,features) { //v2.0 
window.open(theURL,winName,features); 
} 





// ¼Ò°³ - ÁÖ¿ä¾÷¹«
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

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_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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

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_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];}
}
//-->