var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 803 //set x offset of bar in pixels
var startY = 166 //set y offset of bar in pixels

document.write('<div align="left" id="sub_floater">');
document.write('<table border="0" cellpadding="0" cellspacing="0">');
document.write('	<col width="7">');
document.write('	<col width="">');
document.write('	<col width="7">');
document.write('	<tr>');
document.write('		<td><img src="../../img/common/float/box01_t_l.gif" alt="" border="0"></td>');
document.write('		<td background="../../img/common/float/box01_t.gif"></td>');
document.write('		<td><img src="../../img/common/float/box01_t_r.gif" alt="" border="0"></td>');
document.write('	</tr>');
document.write('	<tr>');
document.write('		<td background="../../img/common/float/box01_l.gif"></td>');
document.write('		<td>');
document.write('		<!-- FLASH -->');

	document.write('		<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="86" height="107" id="gnb_flash" align="middle">');
	document.write('		<param name="allowScriptAccess" value="always" />');
	document.write('		<param name="movie" value="/common/flash/r_module.swf" />');
	document.write('		<param name=flashvars value="" />');
	document.write('		<param name="wmode" value="transparent" />');
	document.write('		<param name="menu" value="false" />');
	document.write('		<param name="quality" value="high" />');
	document.write('		<param name="bgcolor" value="#ffffff" />');
	document.write('		<embed src="/common/flash/r_module.swf" FlashVars="" wmode="transparent" menu="false" quality="high" bgcolor="#ffffff" width="86" height="107" name="gnb_flash" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> ');
	document.write('		</object>');

document.write('		<table border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">');
document.write('			<tr>');
document.write('				<td height="2"></td>');
document.write('			</tr>');
document.write('			<tr>');
document.write('				<td height="24"><a href="javascript:leftmenu_onclick(\'1\', \'2\', \'1\', \'1\');"><img src="../../img/common/float/txt01_off.gif" alt="¿¹¹è½Ã°£" border="0" onmouseover="setOver(this, \'on\');" onmouseout="setOver(this, \'off\');"></a></td>');
document.write('			</tr>');
document.write('			<tr bgcolor="#EDEBE2">');
document.write('				<td height="1"></td>');
document.write('			</tr>');
document.write('			<tr>');
document.write('				<td height="24"><a href="javascript:leftmenu_onclick(\'1\', \'1\', \'6\', \'1\');"><img src="../../img/common/float/txt02_off.gif" alt="¿À½Ã´Â±æ" border="0" onmouseover="setOver(this, \'on\');" onmouseout="setOver(this, \'off\');"></a></td>');
document.write('			</tr>');
document.write('			<tr bgcolor="#EDEBE2">');
document.write('				<td height="1"></td>');
document.write('			</tr>');
document.write('			<tr>');
document.write('				<td height="24"><a href="javascript:leftmenu_onclick(\'1\', \'3\', \'1\', \'1\');"><img src="../../img/common/float/txt03_off.gif" alt="»õ°¡Á·¾È³»" border="0" onmouseover="setOver(this, \'on\');" onmouseout="setOver(this, \'off\');"></a></td>');
document.write('			</tr>');
document.write('			<tr bgcolor="#EDEBE2">');
document.write('				<td height="1"></td>');
document.write('			</tr>');
document.write('			<!--//¿¬¸»Á¤»ê ½ÅÃ»¾ç½Ä ½ÃÀÛ -->' );
document.write('			<!--tr>');
document.write('				<td height="24"><a href="#" onclick="sin()"><img src="../../img/common/float/txt11_off.gif" alt="¿¬¸»Á¤»ê½ÅÃ»" border="0" onmouseover="setOver(this, \'on\');" onmouseout="setOver(this, \'off\');"></a></td>');
document.write('			</tr>');
document.write('			<tr bgcolor="#EDEBE2">');
document.write('				<td height="1"></td>');
document.write('			</tr-->');
document.write('			<!--//¿¬¸»Á¤»ê ½ÅÃ»¾ç½Ä ³¡ -->' );
document.write('			<tr valign="top">');
document.write('				<td height="24" style="padding-top: 8px;"><a href="javascript:leftmenu_onclick(\'1\', \'4\', \'2\', \'1\');"><img src="../../img/common/float/txt04_off.gif" alt="¿Â¶óÀÎ»ç¹«±¹" border="0" onmouseover="setOver(this, \'on\');" onmouseout="setOver(this, \'off\');"></a></td>');
document.write('			</tr>');
document.write('			<!--tr bgcolor="#EDEBE2">');
document.write('				<td height="1"></td>');
document.write('			</tr>');
document.write('			<tr valign="top">');
document.write('				<td height="22" style="padding-top: 8px;"><a href="http://neo.soongeui.com" target="_blank"><img src="../../img/common/float/txt10_off.gif" alt="ÀÌÀü È¨ÆäÀÌÁö" border="0" onmouseover="setOver(this, \'on\');" onmouseout="setOver(this, \'off\');"></a></td>');
document.write('			</tr-->');
document.write('		</table>');
document.write('		<!--// FLASH -->');
document.write('		</td>');
document.write('		<td background="../../img/common/float/box01_r.gif"></td>');
document.write('	</tr>');
document.write('	<tr>');
document.write('		<td><img src="../../img/common/float/box01_b_l.gif" alt="" border="0"></td>');
document.write('		<td background="../../img/common/float/box01_b.gif"></td>');
document.write('		<td><img src="../../img/common/float/box01_b_r.gif" alt="" border="0"></td>');
document.write('	</tr>');
document.write('</table>');
	document.write('		<!-- º£³Ê>');
	document.write('		<br>');
    document.write('<table border="0" cellpadding="0" cellspacing="0">');
	document.write('	<col width="7">');
	document.write('	<col width="">');
	document.write('	<col hight="7">');
	document.write('	<tr>');
	document.write('		<td><a href="http://www.godswill.or.kr/information/reserve01.asp" target="_self"><img src="/img/banner/banner_mission20080608s.png" alt="2008³ôÀº¶æ¿øÁ¤´ë-ÅÂ¾ÈBANNER" border="0"></a></td>');
	document.write('			</tr>');
    document.write('</table>');
    document.write('		<º£³ÊEND-->');
document.write('</div>');

function sin(){
		
				winstyle="width=520,height=520,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no,copyhistory=no";
				window.open("/information/YearEnd_sin.asp","new",winstyle);	     
		
}

function iecompattest() {
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function get_cookie(Name) {
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
			offset += search.length
			end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}

var verticalpos="fromtop"

function closebar() {
	if (persistclose) document.cookie="remainclosed=1"
	document.getElementById("sub_floater").style.visibility="hidden"
}

function staticbar() {

	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id){
		var el=d.getElementById(id);
		if (!persistclose || persistclose && get_cookie("remainclosed")=="")
		el.style.visibility="visible"
		if(d.layers)el.style=el;
		el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
		el.y -= startY;
		}
		return el;
	}
	window.stayTopLeft=function(){
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : iecompattest().scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		}
		else{
		var pY = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("sub_floater");
	stayTopLeft();
}

if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar