// ÄíÅ°°¡ ÀÖ³ª Ã£½À´Ï´Ù 
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 ""; 
} 




/*³³°ñ°ü¸®ºñÈ¯ºÒ ¾È³»¹® */ 
if ( getCookie( "Event1" ) != "done" ) { 
     noticeWindow  =  window.open('/newyear/newyear.htm','Event1','left=0, top=0, width=300,height=459'); 
  noticeWindow.opener = self; 
}

if ( getCookie( "Event2" ) != "done" ) { 
     noticeWindow  =  window.open('/newyear/newyear2.htm','Event2','left=320, top=0, width=300,height=390'); 
  noticeWindow.opener = self; 
}
//if ( getCookie( "Event3" ) != "done" ) { 
   // noticeWindow  =  window.open('/newyear/newyear3.htm','Event3','left=620, top=0, width=400,height=585'); 
//noticeWindow.opener = self; 
//}

// ÇÃ·¡½ÃÄÚµå 
function setFlash(src, w, h) {
		var Flash_html = "";
		Flash_html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
		Flash_html += '<param name="movie" value="'+src+'">';
		Flash_html += '<param name="quality" value="high">';
		Flash_html += '<param name="wmode" value="transparent">';
		Flash_html += '<param name="swliveconnect" value="true">';
		Flash_html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
		Flash_html += '<\/object>';

		document.write(Flash_html);
	}
