//-- °øÅë ÇÔ¼ö ½ÃÀÛ --//
function pop_open(divid){
	eval("document.all."+divid).style.display='inline';
}
function pop_close(divid){
	eval("document.all."+divid).style.display='none';
}
function setCookie( name, value, expiredays ){
        var todayDate = new Date();
        todayDate.setDate( todayDate.getDate() + expiredays );
        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
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 position_change(w, h){
	if(document.body.clientWidth > 996){
		event_div1.style.left = w/2 - 500;
		event_div1.style.top = 0;
	}else{
		event_div1.style.left = 0;
		event_div1.style.top = 0;
	}
}
//-- °øÅë ÇÔ¼ö ³¡ --//


function closeWin1(){ 
	if ( pop1.event1.checked ){
		setCookie( "Notice1", "done" , 1);
	}
	document.all.event_div1.style.display='none';
} 
function closeWin2(){ 
	if ( pop2.event2.checked ){
		setCookie( "Notice2", "done" , 1);
	}
	document.all.event_div2.style.display='none';
} 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function goWhere(){
	window.open("http://www.seoksuandpuriss.co.kr/h_event/20090615/event_2.asp");
	pop_close("event_div1");
}

function goWhere2(){
	window.open("http://www.seoksuandpuriss.co.kr/customer/news/view.asp?cpage=1&wt=&cnum=78&cstype=title&ckey=","_self");
	pop_close("event_div2");
}

function check_pop(){
	if ( getCookie( "Notice1" ) != "done" ){
		pop_open("event_div1");
	}
	if ( getCookie( "Notice2" ) != "done" ){
 		pop_open("event_div2");
 	}
}

function check_pop_eventpage(){
//	if ( getCookie( "Notice2" ) != "done" ){
//		pop_open("event_div2");
//	}
}