// FLASH EMBED noTransparent Åõ¸í¾Æ´Ò¶§//
function FlashEmbed(fid,fn,wd,ht,para)
{
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + wd + '" height="' + ht + '" id="' + fid + '" align="middle">');
 document.write('<param name="allowScriptAccess" value="sameDomain">');
 document.write('<param name="movie" value="' + fn + para + '">');
 document.write('<param name="loop" value="false" />');
 document.write('<param name="menu" value="false" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="wmode" value="opaque">');
 document.write('<param name="scale" value="noscale" />');
 document.write('<param name="salign" value="lt" />');
 document.write('<embed src="' + fn + para + '" menu="false" quality="high" wmode="opaque" width="' + wd + '" height="' + ht + '" name="' + fid + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}

// FLASH EMBED Transparent Åõ¸íÀÏ¶§//
function FlashEmbedTrans(fid,fn,wd,ht,para)
{
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + wd + '" height="' + ht + '" id="' + fid + '" align="middle">');
 document.write('<param name="allowScriptAccess" value="sameDomain">');
 document.write('<param name="movie" value="' + fn + para + '">');
 document.write('<param name="loop" value="false" />');
 document.write('<param name="menu" value="false" />');
 document.write('<param name="quality" value="high" />');
 document.write('<param name="wmode" value="transparent" />');
 document.write('<embed src="' + fn + para + '" menu="false" quality="high" wmode="transparent" width="' + wd + '" height="' + ht + '" name="' + fid + '" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
 document.write('</object>');
}

//»õÃ¢¿­±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}

//½ºÅ©·Ñ Å¾¹öÆ°
function scrollLayer() 
		{ 
		    var top_point, start_point, end_point, timer; 
		
		    var obj_layer   = document.getElementById('Qmn'); 
		
		    top_point   = obj_layer.style.top;
		    start_point = parseInt(top_point, 0); 
		    end_point   = document.body.scrollTop + 107; 
		    limit_point = parseInt(window.document.body.scrollHeight) - parseInt(obj_layer.offsetHeight) - 75; 
		
		    if ( end_point > limit_point )  end_point = limit_point; 
		    if ( end_point < top_point )    end_point = top_point; 
		
		    if ( start_point != end_point ) 
		    { 
		        scroll_amount = Math.ceil( Math.abs( end_point - start_point ) / 15 ); 
		        obj_layer.style.top = parseInt(top_point, 0) + ( ( end_point < start_point ) ? -scroll_amount : scroll_amount ); 
		    } 
		
		    timer = setTimeout ("scrollLayer('Qmn', 0);", 1); 
} 

//°øÅë
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];}
}

//Á¶Á÷À§¿øÈ¸
var rollFlag=0;

	function txt_roll(str)
	{
		sub_num = str.substring(str.length - 2);
		sub_str = str.substring(0, str.length -2);
	
		if (document.all[str].style.display=="")
		{
			document.all[str].style.display="none";
			rollFlag=0;
			return;
		}
		else
			{
			if(rollFlag != 0)
			{
				document.all[sub_str+rollFlag].style.display="none";
				document.all[str].style.display="";
			}
		
			document.all[str].style.display="";
			rollFlag=sub_num;
		}
		
	}