document.write("<div id='BannerLay' style='LEFT:expression((document.body.clientWidth/2)); TOP:140px; position:absolute;width:340px; height:400px; z-index:100;display:none; filter:revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); ' onmouseover='dragObj=BannerLay; drag=1;move=0' onmouseout='drag=0'>");
document.write("<table border=0 cellspacing=0 cellpadding=0> <tr><td>");

document.write("<table width=535 border=0 cellspacing=0 cellpadding=5 bgcolor=#339933>");
document.write("<tr><td><table width=525 border=0 cellspacing=0 cellpadding=0>");
document.write("<tr><td><a href=http://"+location.hostname+"/samsung/ target=_blank>");
document.write("<img src=http://www.bohumplaza.com/ABP/popup/20091112/img/01.gif alt=»ï¼ºÈ­Àç ¿¬±ÝÀúÃà ¾Æ¸§´Ù¿î»ýÈ°¿¬±Ýº¸Çè border=0></a></td></tr>");
document.write("<tr><td><table width=100% border=0 cellspacing=0 cellpadding=0>");
document.write("<tr><td height=18 valign=top bgcolor=#e3e3e3 style=font-family: µ¸¿ò; font-size: 11px; line-height: -1;>&nbsp;");
document.write("<a href=# onClick=javascript:closeWinRay('A')  style=font-family: µ¸¿ò; font-size: 11px; line-height: -1; text-decoration:none; color: #666;>");
document.write("<input type='checkbox' name='Notice2' value='' >¿À´ÃÀº ¿­Áö¾Ê±â</a></td>");
document.write("<td width=50 align=right  bgcolor=#e3e3e3><a href=# onClick=javascript:closeWinRay('B')>");
document.write("<img src=http://bohumplaza.hankyung.com/popup/20071120/img/04.gif  border=0></a></td>");
document.write("</tr></table></td>");
document.write("</tr></table></td></tr></table>");

document.write("</td><td valign=top>");
document.write("<table width=390 height=311 border=0 cellspacing=0 cellpadding=5 bgcolor=#3366cc><tr>");
document.write("<td><table width=380 border=0 cellspacing=0 cellpadding=0><tr><td>");
document.write("<img src=http://www.bohumplaza.com/ABP/popup/20100308/img/01.gif alt=±¤°í½ÉÀÇ±ÔÁ¤ border=0></td>");
document.write("</tr><tr><td><table width=100% border=0 cellspacing=0 cellpadding=0><tr>");
document.write("<td height=18 valign=top bgcolor=#e3e3e3 style=font-family: µ¸¿ò; font-size: 11px; line-height: -1;>&nbsp;");
document.write("<a href=# onClick=javascript:closeWinRay('A')  style=font-family: µ¸¿ò; font-size: 11px; line-height: -1; text-decoration:none; color: #666;>");
document.write("<input type=checkbox name=Notice value= >¿À´ÃÀº ¿­Áö¾Ê±â</a></td><td width=50 align=right  bgcolor=#e3e3e3><a href='#' onClick=javascript:closeWinRay('B')><img src=http://bohumplaza.hankyung.com/popup/20071120/img/04.gif  border=0></a></td>");
document.write("</tr></table></td></tr></table></td></tr></table>");
document.write("</td></tr></table>");

document.write("</div>");

	function setCookieCHS( name, value, expiredays )
{
        var todayDate = new Date();
        todayDate.setDate( todayDate.getDate() + expiredays );
        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function getCookieCHS( 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;
				document.all["BannerLay"].style.display="none";
        }
		document.all["BannerLay"].style.display="block";
        return "";
}

function closeWinRay(Str) 
{      
	if(Str=="A"){
		setCookieCHS( "Notice2", "done" , 1);
	}	
	document.all["BannerLay"].style.display="none";
} 




delayTime=500;  //±¤°í°¡ ³ªÅ¸³ª´Â ½Ã°£
type=1; // 1ÀÏ°æ¿ì ±¤°í°¡ Ã³À½¿¡ ³ªÅ¸³µ´Ù°¡ ½Ã°£ÀÌ Áö³ª¸é »ç¶óÁý´Ï´Ù. 0ÀÏ°æ¿ì ±¤°í°¡ »ç¶óÁöÁö ¾Ê½À´Ï´Ù.   

var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);
adCount=0;
function initAd(){
	if(!ns && !ie && !w3) return;
	if(ie)		adDiv=eval('document.all.BannerLay.style');
	else if(ns)	adDiv=eval('document.layers["BannerLay"]');
	else if(w3)	adDiv=eval('document.getElementById("BannerLay").style');
	randAd=Math.ceil(Math.random()*type);
        if (ie||w3)
        adDiv.visibility="visible";
        else
        adDiv.visibility ="show";
	if(randAd==1) showAd();
}
function showAd(){
if(adCount<delayTime*10){adCount+=1;
	if (ie){documentWidth  =document.body.offsetWidth/2+document.body.scrollLeft+230; 
	documentHeight =document.body.offsetHeight/2+document.body.scrollTop-0;}	
	else if (ns){documentWidth=window.innerWidth/2+window.pageXOffset-20;
	documentHeight=window.innerHeight/2+window.pageYOffset-10;} 
	else if (w3){documentWidth=self.innerWidth/2+window.pageXOffset-20;
	documentHeight=self.innerHeight/2+window.pageYOffset-10;} 
	adDiv.left=documentWidth-700;adDiv.top =documentHeight-300;
	setTimeout("showAd()",100);}else closeAd();
}
function closeAd(){
if (ie||w3)
adDiv.display="none";
else
adDiv.visibility ="hide";
}
onload=initAd;

	var Start_year = 2008
	var Start_month = 7 //¿ùÀº ÇöÀç¿ù¿¡¼­ -1 ÇÒ°Í
	var Start_date =19
	var Start_hours = 0
	var Start_minutes =0
	var Start_seconds =0 
	var Start_ms=0

	var End_year = 2099
	var End_month = 8
	var End_date =1
	var End_hours = 0
	var End_minutes =0
	var End_seconds =0 
	var End_ms=0

	Start_DateObj=new Date(Start_year,Start_month,Start_date,Start_hours,Start_minutes,Start_seconds,Start_ms);
	End_DateObj=new Date(End_year,End_month,End_date,End_hours,End_minutes,End_seconds,End_ms);
	
	if ( (Date.parse(Start_DateObj)< Date.parse(new Date())) && (Date.parse(End_DateObj)> Date.parse(new Date())) )
	{	initAd();getCookieCHS('Notice2'); }
