/*
IWINDOW(¾ÆÀÌÅÛ Ã¢) ·¹ÀÌ¾î »ý¼º ½ºÅ©¸³Æ®

	È°¿ë °¡´ÉÇÑ º¯¼ö
		* this_skin  :  º» ½ºÅ² µð·ºÅä¸®¿¡ ´ëÇÑ °æ·Î( ....technote/skin_board/½ºÅ²¸í/ )
		* this_url  :  ÇöÀç Ãâ·ÂµÈ º¸µåÀÇ ÁÖ¼Ò( ....technote/board.php?board=º¸µå¸í&page=3&....  )
		* TnTimgurl  : °ø¿ë img µð·ºÅä¸® ÁÖ¼Ò(....technote/img/)
		* is_Admin  :  °ü¸®ÀÚ ·Î±×ÀÎ »óÅÂÀÌ¸é == 1
		* is_Member  :  È¸¿ø ·Î±×ÀÎ »óÅÂÀÌ¸é == 1

	ÁÖÀÇ ¹× Âü°í
		* ÅÂ±×³»ÀÇ name=' '   È¤Àº   id=' '   ´Â ÀÓÀÇ »èÁ¦,¼öÁ¤ ÇÏ¸é ¾ÈµÊ.
		* ½Öµû¿ÈÇ¥´Â »ðÀÔÇÏÁö ¸»°Í.
		* ¼Ò½º ¼öÁ¤ÈÄ Ãâ·Â È®ÀÎ½Ã¿¡´Â ºÎ¶ó¿ìÀú¿¡¼­ '»õ·Î°íÄ§'À» ÇÒ°Í.
		* ´ÜÁö ÀÌ¹ÌÁö º¯°æÀÌ ¸ñÀûÀÌ¶ó¸é º» ¼Ò½º´Â ¼öÁ¤ÇÏÁö ¸»°í,
			....technote/skin_board/½ºÅ²¸í/iwindow/immg/  ³»ÀÇ ÀÌ¹ÌÁö ÆÄÀÏÀ» ±³Ã¼ÇÒ°Í.
		* ±âÅ¸ ÀÚ¼¼ÇÑ ¼³¸í : »ç¿ëÀÚ¸Å´º¾ó¡æ[12,ÀÀ¿ë,È®Àå]¡æ[iwindow ¾ÆÀÌÅÛ Ã¢]
*/



document.write("<style type=text/css> ");
document.write(" .trsp_frame{filter:alpha(opacity=90); opacity:0.90;} "); // Å×µÎ¸® Åõ¸íµµ
document.write(" .trsp_body{filter:alpha(opacity=96); opacity:0.96;} "); // º»¹® Åõ¸íµµ
document.write(" </style>");


// iwindow »ý¼º
function create_iwindow(no,css){

	var tempobj=document.createElement('div');
	tempobj.setAttribute('id','TnTeIwin'+no);
	if(css) tempobj.style.cssText=css;
	tempobj.style.position='absolute';
	tempobj.style.padding='0px 0px 0px 0px';
	tempobj.style.visibility='visible';

	tempobj.innerHTML=""+
	"  <table border=0 cellpadding=0 cellspacing=0 onmouseover=set_iwindow_focus_change('"+no+"')>"+

	"    <tr id='TnTeiwinTopTr"+no+"'>"+
	"        <td class=trsp_frame width=10 height=27><img src="+this_skin+"/iwindow/immg/box1.gif></td>"+
	"        <td class=trsp_frame id='TnTeiwinToptd"+no+"' valign=top height=27 style='padding-top:4;' background="+this_skin+"/iwindow/immg/box2.gif>"+

	"           <table width=100% border=0 cellpadding=0 cellspacing=0><tr>"+
	"                <td onmousedown='DragResize_DN(0,event)' onmouseup='DragResize_UP()' width='99%' class='TnT_Layer_dragin'><"+it_img_tag+" src="+this_skin+"/iwindow/immg/title_default.gif border=0 id='TnTeiwintitle"+no+"' class='TnT_Layer_dragin' align=absmiddle></td>"+
	"                <td style='cursor:pointer; display:none;' onClick='TnT_layer_help()' id='TnTeiwinhelp"+no+"'></td>"+
	"                <td style='cursor:pointer; display:none;' onClick='iwindow_ENLARGE()' id='TnTeiwinlarge"+no+"'><img src="+this_skin+"/iwindow/immg/btn_enlarg.gif class='TnT_Top_button' onmouseover=top_btn_act(this) onmouseout=top_btn_act(this)></td>"+
	"                <td style='cursor:pointer' onClick='iwindow_CLOSE()'  id='TnTeiwinclose"+no+"'><img src="+this_skin+"/iwindow/immg/btn_close.gif onmouseover=top_btn_act(this) onmouseout=top_btn_act(this)></td>"+
	"            </tr></table>"+

	"        </td>"+
	"        <td class=trsp_frame width=10 height=27><img src="+this_skin+"/iwindow/immg/box3.gif></td>"+
	"    </tr>"+

	"    <tr id='TnTeiwin2stTr"+no+"' style='display:none'>"+
	"        <td class=trsp_frame width=10 height=10><img src="+this_skin+"/iwindow/immg/box1_1.gif></td>"+
	"        <td class=trsp_frame height=10 background="+this_skin+"/iwindow/immg/box2_1.gif></td>"+
	"        <td class=trsp_frame width=10 height=10><img src="+this_skin+"/iwindow/immg/box3_1.gif></td>"+
	"    </tr>"+

	"    <tr>"+
	"        <td class=trsp_frame width=10 background="+this_skin+"/iwindow/immg/box4.gif></td>"+
	"        <td class=trsp_body bgcolor=#ffffff id='TnTeiwinCenter"+no+"' width=50 height=50>"+
	"                <iframe id='TnTeIwinframeid"+no+"' name='TnTeIwinframename"+no+"' frameBorder='0' scrolling='auto' width='100%' height='100%' onmouseover=drag_time_true()></iframe>"+
	"        </td>"+
	"        <td class=trsp_frame width=10 background="+this_skin+"/iwindow/immg/box5.gif></td>"+
	"      </tr>"+

	"    <tr>"+
	"        <td class=trsp_frame width=10 height=10><img src="+this_skin+"/iwindow/immg/box6.gif></td>"+
	"        <td class=trsp_frame height=10 background="+this_skin+"/iwindow/immg/box7.gif></td>"+
	"        <td class=trsp_frame width=10 height=10><"+it_img_tag+" src="+this_skin+"/iwindow/immg/box8.gif border=0 style='cursor:se-resize;' class=TnT_Layer_dragin onmousedown='DragResize_DN(1,event)' onmouseup='DragResize_UP()'></td>"+
	"    </tr>"+

	"  </table>";

	document.body.appendChild(tempobj);
	set_iwindow_focus_change(no);
}


iwinzidx=10;
tntactiwin='';
function set_iwindow_focus_change(no){
	if(tntactiwin=='TnTeIwin'+no) return;
	iwindowLAYER=document.getElementById('TnTeIwin'+no);
	iwindowTopTr=document.getElementById('TnTeiwinTopTr'+no);
	iwindowToptd=document.getElementById('TnTeiwinToptd'+no);
	HideBox_title=document.getElementById('TnTeiwintitle'+no);
	layer_help_btn=document.getElementById('TnTeiwinhelp'+no);
	layer_large_btn=document.getElementById('TnTeiwinlarge'+no);
	layer_close_btn=document.getElementById('TnTeiwinclose'+no);
	iwindowTopTr2=document.getElementById('TnTeiwin2stTr'+no);
	TntiwindowTable=document.getElementById('TnTeiwinCenter'+no);
	HideBox_id=document.getElementById('TnTeIwinframeid'+no);
	HideBox_name=eval('frames.TnTeIwinframename'+no);
	if(iwindowLAYER.style.zIndex<iwinzidx)iwindowLAYER.style.zIndex=++iwinzidx;
	tntactiwin='TnTeIwin'+no;
}

// ¿ì.»ó´Ü ¹öÆ° onmouse over/out
function top_btn_act(img_this){
	img_this.src=(img_this.src.match(/2\.gif$/))?img_this.src.replace(/2\.gif$/,'.gif') : img_this.src.replace(/\.gif$/,'2.gif');
}

// iwindow ³» ½ºÅ©·Ñ¹Ù
// iwindow Ãâ·Â¼Ò½º(html)ÀÇ ÀÚ¹Ù½ºÅ©¸³Æ® ¿¡ document.write(parent.iwindow_SCROLL()); ÇØ Áà¾ß Àû¿ëµÊ
function iwindow_SCROLL(){
	return '<style type=text/css> body{'	+
	' scrollbar-face-color:			#e8f1fd;' +
	' scrollbar-3dlight-color:	#ffffff;' +
	' scrollbar-highlight-color:	#ffffff;' +
	' scrollbar-shadow-color:	#cde1fb;' +
	' scrollbar-darkshadow-color:#ffffff;' +
	' scrollbar-track-color:		#ffffff;' +
	' scrollbar-arrow-color:		#bed6f9;' +
	'}</style>';
}



