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 );
}

var favoriteurl="http://lotoco.com"
var favoritetitle="LOTOCO-Æ®·»µðÇÑ ¶óÀÌÇÁ ½ºÅ¸ÀÏÀÇ ¸ðµç °Í"
function addfavorites() {
window.external.AddFavorite(favoriteurl,favoritetitle)
}

function wepixswf(id, filepath, width, height, value){

 var wepixswf = "";

//IE
 if( navigator.appName.indexOf("Microsoft") > -1 ){ 

 wepixswf  += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' id='"+id+"'>";
 wepixswf  += "<param name='movie' value='"+filepath+"' />";
 wepixswf  += "<PARAM NAME='wmode' VALUE='transparent'>";
 wepixswf  += "<PARAM NAME='AllowScriptAccess' VALUE='always'>";
 wepixswf  += "<param name='quality' value='high' />";
 wepixswf  += "<param name='FlashVars'  value='"+value+"' />";
 wepixswf  += "<embed src='"+filepath+"' quality='high' width='"+width+"' height='"+height+"' name='"+id+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
 wepixswf  += "</object>";

 }else{   

 wepixswf  += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' id='"+id+"'>";
 wepixswf  += "<param name='movie' value='"+filepath+"' />";
 wepixswf  += "<param name='quality' value='high' />";
 wepixswf  += "<embed src='"+filepath+"?"+value+"' quality='high' width='"+width+"' height='"+height+"' name='"+id+"'";
 wepixswf  += "type='application/x-shockwave-flash' ";
 wepixswf  += "wmode='transparent' ";
 wepixswf  += "allowScriptAccess='always' ";
 wepixswf  += "pluginspage='http://www.macromedia.com/go/getflashplayer' />";
 wepixswf  += "</object>";



 }
 document.write(wepixswf);
}

function wepixswf2(id, filepath, width, height, value){

 var wepixswf = "";

//IE
 if( navigator.appName.indexOf("Microsoft") > -1 ){ 

 wepixswf  += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' id='"+id+"'>";
 wepixswf  += "<param name='movie' value='"+filepath+"' />";
 wepixswf  += "<PARAM NAME='wmode' VALUE='transparent'>";
 wepixswf  += "<PARAM NAME='AllowScriptAccess' VALUE='always'>";
 wepixswf  += "<param name='quality' value='high' />";
 wepixswf  += "<param name='FlashVars'  value='"+value+"' />";
 wepixswf  += "<embed src='"+filepath+"' quality='high' width='"+width+"' height='"+height+"' name='"+id+"' allowScriptAccess='always' swLiveConnect='true' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
 wepixswf  += "</object>";

 }else{   

 wepixswf  += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+width+"' height='"+height+"' id='"+id+"'>";
 wepixswf  += "<param name='movie' value='"+filepath+"' />";
 wepixswf  += "<param name='quality' value='high' />";
 wepixswf  += "<embed src='"+filepath+"?"+value+"' quality='high' width='"+width+"' height='"+height+"' name='"+id+"'";
 wepixswf  += "type='application/x-shockwave-flash' ";
 wepixswf  += "wmode='transparent' ";
 wepixswf  += "allowScriptAccess='always' ";
 wepixswf  += "pluginspage='http://www.macromedia.com/go/getflashplayer' />";
 wepixswf  += "</object>";



 }
 document.write(wepixswf);
}



var Ovr2='';
if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
	cot_t1_DOCtp="_top:expression(document.documentElement.scrollTop+document.documentElement.clientHeight-this.clientHeight);_left:expression(document.documentElement.scrollLeft + document.documentElement.clientWidth - offsetWidth);}";
}else{
	cot_t1_DOCtp="_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);_left:expression(document.body.scrollLeft + document.body.clientWidth - offsetWidth);}";
}

if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){
	cot_t1_DOCtp2="_top:expression(document.documentElement.scrollTop-20+document.documentElement.clientHeight-this.clientHeight);}";
}else{
	cot_t1_DOCtp2="_top:expression(document.body.scrollTop-20+document.body.clientHeight-this.clientHeight);}";
}

var cot_bgf0= "/wepix_design/noimagebg.jpg";

var cot_tl_bodyCSS='* html {background:url('+cot_bgf0+') fixed; background-repeat: repeat;background-position: right bottom;}';
var cot_tl_fixedCSS='#cot_tl_fixed{position:fixed;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'_position:absolute;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'bottom:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'right:0px;';
var cot_tl_fixedCSS=cot_tl_fixedCSS+'clip:rect(0 106 106 0);';
var cot_tl_fixedCSS=cot_tl_fixedCSS+cot_t1_DOCtp;
var cot_tl_popCSS='#cot_tl_pop {background-color: transparent;';
var cot_tl_popCSS=cot_tl_popCSS+'position:fixed;';
var cot_tl_popCSS=cot_tl_popCSS+'_position:absolute;';
var cot_tl_popCSS=cot_tl_popCSS+'height:85px;';
var cot_tl_popCSS=cot_tl_popCSS+'width: 25px;';
var cot_tl_popCSS=cot_tl_popCSS+'right: 120px;';
var cot_tl_popCSS=cot_tl_popCSS+'bottom: 20px;';
var cot_tl_popCSS=cot_tl_popCSS+'overflow: hidden;';
var cot_tl_popCSS=cot_tl_popCSS+'visibility: hidden;';
var cot_tl_popCSS=cot_tl_popCSS+'z-index: 100;';
var cot_tl_popCSS=cot_tl_popCSS+cot_t1_DOCtp2;

document.write('<style type="text/css">'+cot_tl_bodyCSS+cot_tl_fixedCSS+cot_tl_popCSS+'</style>');

function cot_tl_bigPopup(url){
	newwindow=window.open(url,'name','WIDTH=25,HEIGHT=35,FRAMEBORDER=0,MARGINWIDTH=0,MARGINHEIGHT=0,SCROLLING=no,allowtransparency=true');
	if(window.focus){
		newwindow.focus()
	}
	return false;
}


	document.write('<div id="cot_tl_fixed">');
	document.write('<table align=center cellpadding=0 cellspacing=0 border=0 width=25 height=85>');
	document.write('<tr>');
	document.write('<td valign="top"><A HREF="#"><IMG SRC="/web/upload/ugo_image/top.gif" border="0" align="absmiddle" ></A></td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</div>');



