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="always" />';
	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="always" 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();
}



function MM_swapImage() { //v1.2 
var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData; 
for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) { 
objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1]; 
if ((objStr.indexOf('document.layers[')==0 && document.layers==null) || 
(objStr.indexOf('document.all[') ==0 && document.all ==null)) 
objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length); 
obj = eval(objStr); 
if (obj != null) { 
swapArray[j++] = obj; 
swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j]; 
obj.src = MM_swapImage.arguments[i+2]; 
} } 
document.MM_swapImgData = swapArray; //used for restore 
} 


window_top = (screen.height-800)/2;//ÆË¾÷¶ß´Â À§Ä¡(³ôÀÌ)
window_left = (screen.width-700)/2;//ÆË¾÷¶ß´Â À§Ä¡(°¡·Î)
function TimePop()//±Ù¹«½Ã°£ ¾È³»
{
var popupURL = "../popup/pop_time.html";//ÆË¾÷Ã¢ÀÇ À§Ä¡
  var popup = window.open(popupURL,"popup",'scrollbars=no,width=300,height=481,resizable=no,top='+ window_top +',left='+ window_left +'');
	if( navigator.appName.substring(0,8) == "Netscape" )
	{
		popup.location = popupURL;
	}
}

function Alert()//±Ù¹«½Ã°£ ¾È³»
{
        alert('ÁØºñÁßÀÔ´Ï´Ù.!');
}
function control_layer(seq){
  document.all.tbl0.style.display='none';
  document.all.tbl1.style.display='none';
  document.all.cate_01.style.display='none';
  document.all.cate_02.style.display='none';


 if ( seq == '0' ){
  document.all.tbl1.style.display='block';
  document.all.cate_02.style.display='block';
}

 if ( seq == '1' ) {
  document.all.tbl0.style.display='block';
  document.all.cate_01.style.display='block';
}
 }

function sc() {
document.form.search.value="";
document.form.search_url.value="";
document.form.type.value="";
document.form.action="../shop/searchlist.html";

}
function check(){
search_url=document.form.search_url.value;
type=document.form.type.value;

if(type>=0){
 
document.form.method="post";
document.form.action=search_url;
document.form.search.value="";
}
}



function page_link(var2)
{
    parent.location = var2;
    return;
}



var oldMenu = null;
function toggleMenu(currMenu) {
 if(currMenu != "F") {
 if(document.all) {
 thisMenu = eval("document.all." + currMenu + ".style");
 if(thisMenu.display == "block") {
 thisMenu.display = "none";
 } else {
 if(oldMenu!=null) {
 oldMenu.display = "none";
 }
 thisMenu.display = "block";
 oldMenu = thisMenu;
 }
 return false;
 } else {
 return true;
 }
 }
}


function change_display(id) {
	for(i=1; i<=2; i++) {
		someone = document.getElementById('comic_'+i).style;
		if(i === id) {
			someone.display='';
		} else {
			someone.display='none';
		}
	}
}








function menu(form) {
if(form.url.selectedIndex != 0)


document.location = form.url.options[form.url.selectedIndex].value


}
