function orgIng()
	{
		var org  = document.all.orgIng;
		var orgSDetail = document.all.orgDetail;	
		var orgSClose  = document.all.orgClose;
		
		if	(org.style.display == "none")
			{org.style.display = "block";
			 orgDetail.style.display = "none";
			 orgClose.style.display = "block";}
		
		else	{org.style.display = "none";
				 orgDetail.style.display = "block";
				 orgClose.style.display = "none";}
	}


function siteIng()
	{
		var site  = document.all.siteIng;
		var siteSDetail = document.all.siteDetail;	
		var siteSClose  = document.all.siteClose;
		
		if	(site.style.display == "none")
			{site.style.display = "block";
			 siteDetail.style.display = "none";
			 siteClose.style.display = "block";}
		
		else	{site.style.display = "none";
				 siteDetail.style.display = "block";
				 siteClose.style.display = "none";}
	}


function calcHeight(FrameName) 
{ 
  
  var the_height= document.getElementById(FrameName).contentWindow.document.body.scrollHeight; 
document.getElementById(FrameName).height=the_height; 
} 

/**************************
 * ³»¿ëÀÇ Å©±â¿¡ µû¶ó iframe Å©±â ÀÚµ¿ º¯°æ
 **************************/
function ResizeFrame(name){

	var iechk = navigator.appName.indexOf('Netscape');

	if (iechk == 0) {
		var fName = document.all(name);
		fName.style.height = namosw_page_height();
	} else {
		var fBody = document.frames(name).document.body;
		var fName = document.all(name);

		fName.style.height = fBody.scrollHeight + (fBody.offsetHeight - fBody.clientHeight);
	}
}

function namosw_page_height()
{
  var is_ns4 = navigator.appName.indexOf('Netscape', 0) != -1 && !document.getElementById;
  var is_ns6 = (navigator.appName.indexOf('Netscape', 0) != -1 && document.getElementById);

  return (is_ns4 || is_ns6) ? innerHeight : document.body.clientHeight;
}



nlast = 0; //  0~3 ±îÁö ÃÊ±â ¼±ÅÃÀÌ¹ÌÁö ÀÎµ¦½º ÁöÁ¤,  -1 ÀÌ¸é ¼±ÅÃÀÌ¹ÌÁö ¾øÀ½

function handle_mouseover()
{
 if(event.srcElement.id == "RO")
  for(var i=0; i<RO.length;i++)
   if(RO[i] == event.srcElement)
   {
    RO[i].src = "../image/student/item_list_4_2_4_2_"+(i+1)+"_off.gif";
    break;
   }
}

function handle_mouseout()
{
 if(event.srcElement.id == "RO")
  for(var i=0; i<RO.length;i++)
   if(RO[i] == event.srcElement)
   {
    if(i == nlast) 
     RO[i].src = "../image/student/item_list_4_2_4_2_"+(i+1)+"_off.gif";
    else
     RO[i].src = "../image/student/item_list_4_2_4_2_"+(i+1)+"_over.gif";
    break;
   }
}

function handle_click()
{
 if(event.srcElement.id == "RO")
 {
  if(nlast >= 0)
   RO[nlast].src = "../image/student/item_list_4_2_4_2"+(nlast+1)+".gif";
  for(var i=0; i<RO.length;i++)
   if(RO[i] == event.srcElement)
   {
    nlast = i;
    break;
   }
 }
}

document.onmouseover = handle_mouseover;
document.onmouseout = handle_mouseout;
document.onclick = handle_click;

function flashString(mID, mUrl, mWidth, mHeight, mParams) {
	var buff = [];
	buff.push("<object style='border:1px' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='" + mID + "' width='" + mWidth + "' height='" + mHeight + "'>");
	buff.push("<param name='allowScriptAccess' value='always' />");
	buff.push("<param name='movie' value='" + mUrl + "' />");
	buff.push("<param name='menu' value='false' />");
	buff.push("<param name='quality' value='high' />");
	buff.push("<param name='wmode' value='transparent' />");
	buff.push("<param name='bgcolor' value='#FFFFFF' />");
	buff.push("<param name='wmode' value='transparent' />");
	buff.push("<param name='flashvars' value='" + mParams + "' />");
	buff.push("<embed name='" + mID + "' allowScriptAccess='always' src='" + mUrl + "' quality='high' wmode='transparent' bgcolor='#FFFFFF' width='" + mWidth + "' height='" + mHeight + "' ");
	buff.push("flashvars='" + mParams + "' ");
	buff.push("type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' />");
	buff.push("</object>");
	
	return buff.join("");
}

function flashObject(mID, mUrl, mWidth, mHeight, mParam) {
	document.write(flashString(mID, mUrl, mWidth, mHeight, mParam));
}



var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

/*
Äü¸Þ´º ¸µÅ©¿ë
*/


// PNGÀÌ¹ÌÁö ¾ËÆÄÈ¿°ú /////////////////////////////////////////
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 '';
}