/////////////////////// ÀÌ¹ÌÁö ·Ñ ¿À¹ö ½ÃÀÛ ///////////////////////////
function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}
/////////////////////// ÀÌ¹ÌÁö ·Ñ ¿À¹ö ³¡ ///////////////////////////

////////////////////// »õÃ¢ ¿­±â ////////////////////////////
function openWin(dest, w, h)
{
	var hi=h
    //newWin = window.open(dest, "newWin", "scrollbars=no,toolbar=no,location=no,directories=no,width="+w+",height="+h+",resizable=no,mebar=no,left=250,top=65");
    newWin = window.open(dest, "t_newWin", "scrollbars=yes, toolbar=no,location=no,directories=no,width="+w+",height="+h+",resizable=yes,mebar=no");
    newWin.focus();
}

// ÀÌ¹ÌÁö »çÀÌÁî Á¶Àý
// name : ÀÌ¹ÌÁöÀÌ¸§
// imgObj : ÀÌ¹ÌÁö°æ·Î
function resizeImg(name, imgObj)
{
	img_conf1= new Image();
	img_conf1.src=(imgObj);
	if (img_conf1.width > 500 )
	{
		eval("document."+name+".width=500");
	}
}

function resizeImg1(name, imgObj, width)
{
	img_conf1= new Image();
	img_conf1.src=(imgObj);
	if (img_conf1.width > width )
    {
        eval("document."+name+".width=" + width);
    }
}

//===========================

function call_logo() 
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='163' height='142' >");
	document.write("<param name='movie' value='imgs/logo.swf'>");
	document.write("<param name='quality' value='high'>");
	document.write("<PARAM NAME=wmode value=transparent>");
	document.write("<embed src='imgs/logo.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='163' height='142' ></embed></object>");
}

function call_m_top() 
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0'  width='749' height='142'>");
	document.write("<param name='movie' value='imgs/m_top.swf'>");
	document.write("<param name='quality' value='high'>");
	document.write("<PARAM NAME=wmode value=transparent>");
	document.write("<embed src='imgs/m_top.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='749' height='142' ></embed></object>");
}

function call_m_f() 
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='430' height='353'>");
	document.write("<param name='movie' value='imgs/m_f.swf'>");
	document.write("<param name='quality' value='high'>");
	document.write("<PARAM NAME=wmode value=transparent>");
	document.write("<embed src='imgs/m_f.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='430' height='353'></embed></object>");
}
