function ActFlash(url,w,h,t)
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0' width='"+w+"' height='"+h+"'><param name='movie' value='"+url+"'><param name='wmode' value='transparent' /><param name=loop value="+t+"><param name=menu value=false><param name=scale value=exactfit><param name=salign value=T><param name=devicefont value=true><embed src='"+url+"' loop=false menu=false quality=high scale=exactfit salign=T devicefont=true width='"+w+"' height='"+h+"' pluginspage='https://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed></object>")
}



function comic_swf(src,w,h){

	html = '';
	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=9,0,0,0" id="daum_pr" width="' + w + '" height="' + h + '">';
	html += '<param name="allowScriptAccess" value="never" />';
	html += '<param name="movie" value=" '+ src + '">';
	html += '<param name="loop" value="true">';
	html += '<param name="menu" value="false">';
	html += '<param name="quality" value="high">';
	html += '<embed src="' + src + '"loop="true" menu="false" allowScriptAccess="never" quality="high" wmode="transparent" bgcolor="#000000" width="'+w+'" height="'+h+'" name="daum_pr" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="' +  w + '" height="' + h + '"><\/embed>';
	html += '<\/object>';
	document.write(html);
}



window_top = 0;//ÆË¾÷¶ß´Â À§Ä¡(³ôÀÌ)
window_left = 0;//ÆË¾÷¶ß´Â À§Ä¡(°¡·Î)
function PointPop()//Æ÷ÀÎÆ® ¾È³»
{
var popupURL = "../popup/pop_point.html";//ÆË¾÷Ã¢ÀÇ À§Ä¡
  var popup = window.open(popupURL,"popup",'scrollbars=no,width=480,height=620,resizable=no,top='+ window_top +',left='+ window_left +'');
	if( navigator.appName.substring(0,8) == "Netscape" )
	{
		popup.location = popupURL;
	}
}
function CardPop()//Ä«µå ¹«ÀÌÀÚ
{
var popupURL = "../popup/pop_card.html";//ÆË¾÷Ã¢ÀÇ À§Ä¡
  var popup = window.open(popupURL,"popup",'scrollbars=no,width=486,height=478,resizable=no,top='+ window_top +',left='+ window_left +'');
	if( navigator.appName.substring(0,8) == "Netscape" )
	{
		popup.location = popupURL;
	}
}


function pop()
{
alert ('¿ÀÇÂ ÁØºñÁßÀÔ´Ï´Ù.');
}
//ÆË¾÷À©µµ¿ì, ½ºÅ©¸° Áß¾Ó¿¡ À§Ä¡, ´ÙÁß ¿ÀÇÂ ¹æÁö
var winname_1;
var openF = 0;
function popup(fileName, intWidth, intHeight, intLeft, intTop, vScrollbars, vResizable, vStatus){
        today = new Date();
        winName = today.getTime();

        var fileName, intWidth, intHeight;
        var screenWidth = screen.availwidth;
        var screenHeight = screen.availheight;

        if(intWidth >= screenWidth){ //½ºÅ©¸° »óÅÂ¿¡ µû¶ó ½ºÅ©·Ñ¹Ù ÀÚµ¿Ç¥½Ã
                intWidth = screenWidth - 40;
                vScrollbars = 1;
        }
        if(intHeight >= screenHeight){ //½ºÅ©¸° »óÅÂ¿¡ µû¶ó ½ºÅ©·Ñ¹Ù ÀÚµ¿Ç¥½Ã
                intHeight = screenHeight - 40;
                intWidth = intWidth + 20;
                vScrollbars = 1;
        }
        if(intLeft == 'auto' || intTop == 'auto'){ //½ºÅ©¸° Áß¾Ó¿¡ À§Ä¡ ½ÃÅ°±â
                var intLeft = (screenWidth - intWidth) / 2;
                var intTop = (screenHeight - intHeight) / 2;
        }
        var features = eval("'width=" + intWidth + ",height=" + intHeight + ",left=" + intLeft + ",top=" + intTop + ",scrollbars=" + vScrollbars + ",resizable=" + vResizable + ",status=" + vStatus + "'");
        if(openF == 1){
                if(winname_1.closed){
                        winname_1 = window.open(fileName,winName,features);
                }else{
                        winname_1.close();
                        winname_1 = window.open(fileName,winName,features);
                }
        }else{
                winname_1 = window.open(fileName,winName,features);
                openF = 1;
        }
        winname_1.focus();
}

window_top2 = 0;//ÆË¾÷¶ß´Â À§Ä¡(³ôÀÌ)
window_left2 =0;//ÆË¾÷¶ß´Â À§Ä¡(°¡·Î)
window_top3 = 0;//ÆË¾÷¶ß´Â À§Ä¡(³ôÀÌ)
window_left3 =0;//ÆË¾÷¶ß´Â À§Ä¡(°¡·Î)

function getCookie(Name) {
  var search = Name + "="
  if (document.cookie.length > 0) { // ÄíÅ°°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // ÄíÅ°°¡ Á¸ÀçÇÏ¸é
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset)
      // ÄíÅ° °ªÀÇ ¸¶Áö¸· À§Ä¡ ÀÎµ¦½º ¹øÈ£ ¼³Á¤
      if (end == -1)
        end = document.cookie.length
      return unescape(document.cookie.substring(offset, end))
    }
  }
}

function openNotice3()//
{
if (getCookie("mainpop11") != "pop_070214"){
  var popupURL2 = "popup/pop_070214.html";//ÆË¾÷Ã¢ÀÇ À§Ä¡
  var popup2 = window.open(popupURL2,"pop_070214",'scrollbars=no,width=465,height=270,resizable=no,top='+ window_top3 +',left='+ window_left3 +'');
	if( navigator.appName.substring(0,8) == "Netscape" )
	{
		popup.location = popupURL2;
	}
	}
}
function openNotice2()//
{
if (getCookie("mainpop2") != "pop_0805sale"){
  var popupURL2 = "popup/pop_0805sale.html";//ÆË¾÷Ã¢ÀÇ À§Ä¡
  var popup2 = window.open(popupURL2,"pop_0805sale",'scrollbars=no,width=450,height=666,resizable=no,top='+ window_top3 +',left='+ window_left3+'');
	if( navigator.appName.substring(0,8) == "Netscape" )
	{
		popup.location = popupURL2;
	}
	}
}
function openNotice()//
{
if (getCookie("mainpop") != "pop_0806branch"){
  var popupURL2 = "popup/pop_0806_branch.html";//ÆË¾÷Ã¢ÀÇ À§Ä¡
  var popup2 = window.open(popupURL2,"pop_0806branch",'scrollbars=no,width=350,height=425,resizable=no,top='+ window_top2 +',left='+ window_left2 +'');
	if( navigator.appName.substring(0,8) == "Netscape" )
	{
		popup.location = popupURL2;
	}
	}
}
function Alert()//±Ù¹«½Ã°£ ¾È³»
{
  alert('ÁØºñÁßÀÔ´Ï´Ù.');
}


// banner_roll("divÅÂ±× id", ¹è³Ê1°³³ôÀÌ, µô·¹ÀÌ, 1Ä­ÀÌµ¿¼Óµµ, 0);
function banner_roll(div_id, banner_height, banner_delay, banner_speed, this_height)
{
var div_tag = document.getElementById(div_id);
var a_tag, i;

this_height ++;
if(this_height < banner_height) {
div_tag.style.top = -this_height;
setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", " + this_height + ");", banner_speed);
} else {
a_tag = div_tag.getElementsByTagName("A");
div_tag.appendChild(a_tag[0]);
div_tag.style.top = 0;
setTimeout("banner_roll('" + div_id + "', " + banner_height + ", " + banner_delay + ", " + banner_speed + ", 0);", banner_delay);
}

return true;
}




function toppop(url,name,width,height,scrollbars,resizable) {
	msgWindow=window.open(url,name,'scrollbars='+scrollbars+',resizable='+resizable+',width='+width+',height='+height);
	msgWindow.focus();
}
