<!--
var ap, dap

function show(img) {
    showimg = img;
    clearInterval(dap); //¸¶¿ì½º ¿Ã¸±¶§ »ç¶óÁö´Â ÇÔ¼ö ½ÇÇà½Ã ÇØÁ¦
    ap = setInterval("Appear(showimg)", 100); //ÀÌ¹ÌÁö¸¦ º¸ÀÌ±â À§ÇÑ ÇÔ¼ö ½ÇÇà(0.1ÃÊ °£°Ý)
}

function hide(img) {
    hideimg = img;
    clearInterval(ap); //¸¶¿ì½º ³»¸±¶§ ³ªÅ¸³ª´Â ÇÔ¼ö ½ÇÇà½Ã ÇØÁ¦
    dap = setInterval("DisAppear(hideimg)", 100); //ÀÌ¹ÌÁö°¡ »ç¶óÁöµµ·Ï ÇÔ¼ö ½ÇÇà(0.1ÃÊ °£°Ý)
}

function Appear(simg) {
    if (simg.filters.alpha.opacity < 100)
        simg.filters.alpha.opacity += 15;
    }

function DisAppear(himg) {
    if (himg.filters.alpha.opacity < 101)
        himg.filters.alpha.opacity -= 5;
    }
//-->


function open_window( filename, option, name )
{
	if( !name )
	{
		name = 'new'
	}


        win = window.open( filename, name, option );

        return win
}

function window_open( page, name, top, left, width, height )
{
	option = "'toolbar=no," +
		"location=no," +
		"directories=no," +
		"status=no," +
		"menubar=no," +
		"scrollbars=yes," +
		"resizable=yes," +
		"width=" + width + "," +
		"height=" + height + "," +
		"top=" + top + "," +
		"left=" + left + "'"

        window.open( page, name, option );
}

function open_poll_pop( mode, no )
{
	page = '/front/php/poll_r.php?mode=' + mode + '&no=' + no;
	window_open( page, 'poll', 100, 300, 466, 382 );
}

/*Left menu ¹ÝÅõ¸í ·¹ÀÌ¾î ±¸Çö*/
function Layer_overload(LayerName,Status) 
{
    if (navigator.appName == "Netscape")
    {
		LayerN = document.getElementById(LayerName).style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }	
    else
    {
		LayerN = document.all[LayerName].style;
		if (Status == 'show') LayerN.visibility = 'visible';
		if (Status == 'hide') LayerN.visibility = 'hidden';
    }
}

/*Left menu±¸Çö*/
var old='';

function menu(name)
{
	submenu=eval("submenu_"+name+".style");
	if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}


function Layer_rollover(img_name,img_url)
{
	var menu;	
	//tmp = new String( "document."+img_name );
	menu=eval("document."+img_name);		
	menu.src = img_url;
	return;
}

function image_zoom( product_no, main_cate_no, display_group )
{
	//href = '/front/php/image_zoom.php?img='+image+'&product_no='+document.frm.product_no.value;
	href = '/front/php/image_zoom.php?product_no='+product_no+'&main_cate_no='+main_cate_no+'&display_group='+display_group;
	option = 'toolbar=no,scrollbars=no,resizable=yes,width=800,height=640,left=0,top=0';
	win_name = 'image'

	window.open( href, win_name, option );
}


function na_restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  } 
}

function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length; i++) {
    document.preloadlist[top+i]     = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function na_change_img_src(name, nsdoc, rpath, preload)
{ 
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  } 
}


function blockError(){return true;} 
window.onerror = blockError; 

//copyright by procoding@hanmail.net 
function music_play(n) { var music = top.document.getElementById('music'); if(music) { if(n == "stop")  music.stop(); if(n == "play")  music.play(); if(n == "pause") { if (music.playstate == 2) music.pause(); else music.play(); } if(n == "pre") music.previous(); if(n == "next") music.next(); } } 
function music_player(color) { setemb = new set_Embed(); setemb.init('/music/file/music_play.swf','61','9','flash'); setemb.parameter('wmode','transparent'); setemb.parameter('quality','high'); setemb.parameter('bgcolor','#FFFFFF'); setemb.parameter('FlashVars','color=0x'+color+''); setemb.show(); } 
function gohome() { if(window == top) top.location.href = "/"; else location.href = "/front/php/category.php?cate_no=1"; } 