//-----------------------------------------------

// 		ÄíÅ°°ª¾ò±â

//-----------------------------------------------

function getCookie( name )

{

	var nameOfCookie = name + "=";

	var x = 0;

	while ( x <= document.cookie.length )

	{

		var y = (x+nameOfCookie.length);

		if ( document.cookie.substring( x, y ) == nameOfCookie )

		{

			if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )

			endOfCookie = document.cookie.length;

			return unescape( document.cookie.substring( y, endOfCookie ) );

		}

		x = document.cookie.indexOf( " ", x ) + 1;

		if ( x == 0 )

		break;

	}

	return "";

}



//-----------------------------------------------

// 		·Î±×¾Æ¿ô 

//-----------------------------------------------

function deleteCookie( name, domain )

{

	var todayDate = new Date();

	todayDate.setDate( todayDate.getDate()-1 );

	document.cookie = name+"=; domain="+domain+"; path=/; expires="+todayDate.toGMTString()+";";

}

function removeCookie( name )

{

	deleteCookie( name, ".netian.com" );

}



function logout()

{

	removeCookie( "NHOSTING_ID" );

	removeCookie( "NHOSTING_REQNO" );

	removeCookie( "NHOSTING_REQNO2" );

	//ÇÁ·¹ÀÓ¾ø´Â °æ¿ì

	//history.go(0);

	//ÇÁ·¹ÀÓÀÖ´Â °æ¿ì

	window.top.location="javascript:history.go(0);";

}



//-----------------------------------------------

// 		·Î±×ÀÎ¿©ºÎ È®ÀÎ 

//-----------------------------------------------

function printLoginButton2()

{

	var img, url;

	var netian_id = getCookie("NETIAN_ID");

	if ( netian_id != "" ) // logout

	{
		img = "<img src='/netian_img/text_logout.gif' align='absmiddle' align='left' name='Image23' width='41' border='0'>";
		url ="javascript:logout();";
		document.write( "<A HREF='"+url+"' onMouseOut='MM_swapImgRestore();' onMouseOver=\"MM_swapImage('Image23','','/netian_img/text_logout_over.gif',1)\">"+img+"</A>" );
	}

	else // login

	{

		img = "<img src='/netian_img/text_login.gif' align='absmiddle' align='left' name='Image24' width='29' border='0'>";

		

		url ="http://login.netian.com/login.netian.com/index.html?M?"+window.top.location;

		document.write( "&nbsp;<A TARGET=_top HREF='"+url+"' onMouseOut='MM_swapImgRestore();' onMouseOver=\"MM_swapImage('Image24','','/netian_img/text_login_over.gif',1)\">"+img+"</A>");

	}

	//return;

}

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_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_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')?'':(v=='none')?'none':v; }
    obj.display=v; }
}


function netian_myweb_Header() {

document.writeln("<style type='text/css'>");
document.writeln("<!--");
document.writeln("body {font-size:9pt; margin-top:0;}");
document.writeln(".sub_gnb {font-family:'µ¸¿ò'; font-size: 9pt; color:#000000;}");
document.writeln(".sub_gnb A {font-family:'µ¸¿ò'; font-size: 9pt; color:#000000;}");
document.writeln(".sub_gnb A:link {font-size:9pt;color:#000000;text-decoration:none;}");
document.writeln(".sub_gnb A:active {font-size:9pt;color:#000000;text-decoration:none;}");
document.writeln(".sub_gnb A:visited {font-size:9pt;color:#000000;text-decoration:none;}");
document.writeln(".sub_gnb A:hover{font-size:9pt;color:#A726D2;text-decoration:underline;}");
document.writeln("-->");
document.writeln("</style>");
document.writeln("");

//document.writeln("<body leftmargin="0' topmargin='0' marginwidth='0' marginheight='0'>');
document.writeln("  <table width='980' height='45' align='center' cellpadding='0' cellspacing='0'>");
document.writeln("	<tr>");
document.writeln("	  <td align='left' valign='top'>");
document.writeln(" 		 <table height='45' cellpadding='0' cellspacing='0'>");
document.writeln(" 		   <tr>");
document.writeln(" 		     <td width='100'><a href='http://www.netian.com/' target='_top' onFocus='this.blur()'><img src='/netian_img/new_bi.gif' width='100' height='45' border='0'></a></td>"); 
document.writeln(" 		     <td align='left'><a href='http://myweb.netian.com/' target='_top' onFocus='this.blur()'><img src='/netian_img/top_title_myweb1.gif' width='72' height='45' border='0'></a></td>");
document.writeln(" 		   </tr>");
document.writeln(" 		 </table>");		
document.writeln("	  </td>");
//    »ó´Ü GNB °øÅë ºÎºÐ 
document.writeln("	  <td width='580' align='right' valign='top'>");
document.writeln("      <table height='24' border='0' align='right' cellpadding='0' cellspacing='0'>");
document.writeln("        <tr>");
document.writeln("          <td width='65' align='left' valign='top'><a href='http://bbs.netian.com/' target='_top' onFocus='this.blur()'><img src='/netian_img/bbs2_icon.gif' width='60' height='24' border='0'></a></td>");
document.writeln("          <td width='436' align='right'>");
document.writeln("            <table width='460' height='24' border='0' cellpadding='0' cellspacing='0'>");
document.writeln("              <tr>");
document.writeln("                <td height='5' colspan='5' align='left' bgcolor='#BCBEC0'><img src='/netian_img/yoyo01.gif' width='5' height='5'></td>");
document.writeln("                <td bgcolor='#BCBEC0'></td>");
document.writeln("                <td width='5' height='5' bgcolor='#BCBEC0'><img src='/netian_img/yoyo02.gif' width='5' height='5'></td>");
document.writeln("              </tr>");
document.writeln("              <tr>");
document.writeln("                <td width='12' height='22'></td>");
document.writeln("                <td height='30'class='sub_gnb' ><a href='http://cinewel.netian.com/' target='_top'>¿£ÅÍÅ×ÀÎ¸ÕÆ®</a> <font color='#CCCCCC'>|</font> <a href='http://news.netian.com/' target='_top'>´º½º</a> <font color='#CCCCCC'>|</font> <a href='http://www.netian.com/r/ml' target='_top'>¸ÞÀÏ</a> <font color='#CCCCCC'>|</font> <a href='http://search.netian.com/' target='_top'>°Ë»ö</a> <font color='#CCCCCC'>|</font> <a href='http://myweb.netian.com/' target='_top'>¸¶ÀÌÀ¥</a> <font color='#CCCCCC'>|</font> <a href='http://www.netian.com/homepages/main.html' target='_top'>¸¶ÀÌÈ¨</a> <font color='#CCCCCC'>|</font> <a href='http://shop.netian.com/' target='_top'>¼îÇÎ</a></td>");
document.writeln("                <td width='24'></td>");
document.writeln("                <td width='39' height='22' align='left' ><a href='http://www7.netian.com/cgi-bin/sitemap/sitemap.cgi' target='_top' onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Image22','','/netian_img/text_sitemap_over.gif',1)\"><img src='/netian_img/text_sitemap.gif' name='Image22' width='39' height='12' border='0'></a></td>");
document.writeln("                <td width='13' height='22' align='absmiddle'><img src='/netian_img/text_point.gif' width='13'></td>");
document.writeln("                <td  width='41' align='left' height='22'>");
printLoginButton2()
document.writeln("                </td>");
document.writeln("                <td width='5'></td>");
document.writeln("              </tr>");
document.writeln("            </table>");	
document.writeln("          </td>");
document.writeln("        </tr>");
document.writeln("      </table>");
document.writeln("	  </td>");
//   »ó´Ü GNB °øÅë ºÎºÐ
document.writeln("    </tr>");
document.writeln("</table>");

document.writeln("<table CELLPADDING=0 CELLSPACING=0 BORDER=0 ALIGN=center>");
document.writeln("<tr>");
document.writeln("<td align=center>");

//document.writeln("</body>");

}