/*--------------------------------
       Ä«Å×°í¸® Å¸ÀÌÆ²
ÁÖÀÇ 
1.Å¸ÀÌÆ²ÀÌ¶õ ±ÛÀº »èÁ¦ÇÏÁö¸¶¼¼¿ä ¿¹) /Å¸ÀÌÆ²STYLE/ 
2.¼öÁ¤¹æ¹ý  
¿¹)(title," STYLE & sub_title2=±ÛÀÔ·Â & sub_title3=±ÛÀÔ·Â & ")
-----------Ã¹¹øÂ°ÁÙ-----------µÎ¹øÂ°ÁÙ------------¼¼¹øÂ°ÁÙ---
3.±ÛÀÌ ÀÔ·ÂµÈ ¹Ù·ÎµÚ¿¡´Â &(±¸ºÐ)°¡ ºÙ¾î¾ßÇÕ´Ï´Ù.
4.¿£ÅÍ»ç¿ë±ÝÁöÇÕ´Ï´Ù.
5.Æ¯¼ö¹®ÀÚ &(ÇÃ·¡½Ã¿¡¼­ ±¸ºÐÀ¸·Î »ç¿ëµÊ¿¡µû¶ó) Á¦ÇÑÀÌµË´Ï´Ù.
  ´Ü Á¤»óÃâ·ÂÇÏ½Ã·Á¸é %26 À¸·Î º¯°æÇÏ½Ã¸éµË´Ï´Ù.
  ¿¹) ½Å¹ß & ½´Áî , Q & A ÀÌ°ÍÀ» Á¤»óÃâ·ÂÇÏ½Ã·Á¸é
    ½Å¹ß %26 ½´Áî  Q %26 A ÀÌ·¸°Ô »ç¿ëÇÏ¸éµË´Ï´Ù.
6.¸¸¾à »óÇ°Ä«Å×°í¸®¸íÀÌ BAG&SHOES Ã³·³ ¹®±¸¸¦ ³ÖÀ¸½Ç°æ¿ì
ÀÌºÎºÐÀº /Å¸ÀÌÆ²BAG/gi; ±îÁö¸¸ ³Ö¾îÁÖ¼¼¿ä &ÀÌÈÄÀÇ ±ÛÀº Ãâ·Â¾ÈµË´Ï´Ù.

±Ã±ÝÇÏ½Å»çÇ×ÀÌ ÀÖÀ¸½Ã´Ù¸é ¾ðÁ¦µçÁö ¹®ÀÇÁÖ½Ã±æ¹Ù¶ø´Ï´Ù.

---------------------------------*/ 
function title_change() 
 { 
  var obj=document.getElementById('title_data');
  var temp_value = obj.innerHTML;
/*--------------------------------
¼öÁ¤»çÇ× ½ÃÀÛ
---------------------------------*/ 
/////////////////////////////////////////////////////////////////////////////////////////////
// Ä«Å×°í¸® º¯°æ
/////////////////////////////////////////////////////////////////////////////////////////////
/*--------------------------------
       ´ëºÐ·ù) ABOUT
---------------------------------*/ 
var title = /Å¸ÀÌÆ²ABOUT/gi;

temp_value = temp_value.replace(title,"ABOUT&sub_title2=½ºÅ¸ÀÏ³ª´Â ´õ ½ºÅä¸®&sub_title3=´õ ½ºÅä¸®ÀÇ ÀÌ¹ÌÁöÄÆÀ» ¼Ò°³ÇÕ´Ï´Ù. ÁøÁ¤ÇÑ ½ºÅ¸ÀÏÀ» ¿øÇÏ½Å´Ù¸é ÁÖÀú¸¶½Ã°í ±¸¸ÅÇÏ¼¼¿ä~ÀÌ ÇÃ·¡½Ã¼Ó ÅØ½ºÆ®´Â °ü¸®ÀÚÆäÀÌÁö¿¡¼­ ¼öÁ¤°¡´ÉÇÏ½Ê´Ï´Ù.&");
/*--------------------------------
       ´ëºÐ·ù) GALLERY
---------------------------------*/ 

var title = /Å¸ÀÌÆ²GALLERY/gi;

temp_value = temp_value.replace(title,"GALLERY&sub_title2=´õ ½ºÅä¸®ÀÇ TEEºÐ·ùÀÔ´Ï´Ù&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");
/*--------------------------------
       ´ëºÐ·ù) SHOP
---------------------------------*/ 

var title = /Å¸ÀÌÆ²shop/gi;

temp_value = temp_value.replace(title,"SHOP&sub_title2=¼¥&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");
/*--------------------------------
       ÁßºÐ·ù) TOP -> Skull
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Skull/gi;

temp_value = temp_value.replace(title,"SKULL&sub_title2=»óÇ°ºÐ·ù&sub_title3=»óÇ°ºÐ·ù ¼³¸í±ÛÀ» ³ÖÀ¸¼¼¿ä&");
/*--------------------------------
       ÁßºÐ·ù) TOP -> Ring
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Ring/gi;

temp_value = temp_value.replace(title,"RING&sub_title2=´õ ½ºÅä¸®ÀÇ TEEºÐ·ùÀÔ´Ï´Ù&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");
/*--------------------------------
       ÁßºÐ·ù) TOP - Pendant
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Pendant/gi;

temp_value = temp_value.replace(title,"PENDANT&sub_title2=´õ ½ºÅä¸®ÀÇ TEEºÐ·ùÀÔ´Ï´Ù&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");

/*--------------------------------
       ÁßºÐ·ù) TOP - Bracelet
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Bracelet/gi;

temp_value = temp_value.replace(title,"BRACELET&sub_title2=´õ ½ºÅä¸®ÀÇ TEEºÐ·ùÀÔ´Ï´Ù&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");

/*--------------------------------
       ÁßºÐ·ù) TOP - Earring
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Earring/gi;

temp_value = temp_value.replace(title,"EARRING&sub_title2=´õ ½ºÅä¸®ÀÇ TEEºÐ·ùÀÔ´Ï´Ù&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");

/*--------------------------------
       ÁßºÐ·ù) TOP - Etc
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Etc/gi;

temp_value = temp_value.replace(title,"ETC&sub_title2=´õ ½ºÅä¸®ÀÇ TEEºÐ·ùÀÔ´Ï´Ù&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");

/*--------------------------------
       ÁßºÐ·ù) TOP - Leather
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Leather/gi;

temp_value = temp_value.replace(title,"LEATHER&sub_title2=´õ ½ºÅä¸®ÀÇ TEEºÐ·ùÀÔ´Ï´Ù&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");

/*--------------------------------
       ÁßºÐ·ù) TOP - Special
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Special/gi;

temp_value = temp_value.replace(title,"SPECIAL&sub_title2=½ºÆä¼£&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");

/*--------------------------------
       ÁßºÐ·ù) TOP - Collaboration
---------------------------------*/ 

var title = /Å¸ÀÌÆ²Collaboration/gi;

temp_value = temp_value.replace(title,"Collaboration&sub_title2=°øµ¿ÀÛ¾÷&sub_title3=´õ ½ºÅä¸®ÀÇ Æ¼¿¡´ëÇÑ ¼³¸íÀÔ´Ï´Ù. ¼³¸í±ÛÀ» ³Ö¾îÁÖ¼¼¿ä...&");

/*--------------------------------
       ÁßºÐ·ù) TOP - °³ÀÎ°áÁ¦
---------------------------------*/ 

var title = /Å¸ÀÌÆ²°³ÀÎ°áÁ¦/gi;

temp_value = temp_value.replace(title,"PRIVATE&sub_title2=°³ÀÎ°áÁ¦&sub_title3=°³ÀÎ°áÁ¦ ¼³¸í¹®±¸&");


/////////////////////////////////////////////////////////////////////////////////////////////
// °Ô½ÃÆÇ º¯°æ
/////////////////////////////////////////////////////////////////////////////////////////////

/*--------------------------------
       °øÁö»çÇ×
---------------------------------*/ 

var title = /Å¸ÀÌÆ²°øÁö»çÇ×/gi;

temp_value = temp_value.replace(title,"NOTICE&sub_title2=°øÁö»çÇ×&sub_title3=°øÁö»çÇ×ÀÔ´Ï´Ù.&");

/*--------------------------------
       Áú¹®
---------------------------------*/ 

var title = /Å¸ÀÌÆ²»óÇ° Q/gi;

temp_value = temp_value.replace(title,"Q %26 A&sub_title2=»óÇ°¹®ÀÇ&sub_title3=¹«¾ùÀÌµç ¹°¾îº¸¼¼¿ä&");
/*--------------------------------
       ÈÄ±â
---------------------------------*/ 

var title = /Å¸ÀÌÆ²»óÇ° »ç¿ëÈÄ±â/gi;

temp_value = temp_value.replace(title,"REVIEW&sub_title2=±¸¸ÅÈÄ±â&sub_title3=±¸¸ÅÈÄ±âÀÔ´Ï´Ù&");
/*--------------------------------
       ÀæÀºÁú¹®
---------------------------------*/ 

var title = /Å¸ÀÌÆ²ÀÌ¿ë¾È³» FAQ/gi;

temp_value = temp_value.replace(title,"FAQ&sub_title2=ÀæÀºÁú¹®&sub_title3=°í°´´Ôµé²²¼­ ÀÚÁÖÁú¹®ÇÏ½Ã´Â Áú¹®µéÀÔ´Ï´Ù&");





///////////////////////////////

obj.innerHTML=temp_value;
 }

/*Áñ°ÜÃ£±âÃß°¡*/

var favoriteurl="http://bmfa97.cafe24.com" 
var favoritetitle="-Å·Å©·ÎÄ¡- No.1 ½ºÅÐ¸µ½Ç¹ö ¾Ç¼¼»ç¸®" 
function addfavorites(){ 
if (document.all) 
window.external.AddFavorite(favoriteurl,favoritetitle) 
} 
//ÇÏ´Ü¸µÅ©¼öÁ¤
//¹è¼ÛÁ¶È¸
function link_delivery(){
 window.open('https://www.doortodoor.co.kr/parcel/pa_004.jsp','delevery','left=0,top=0,toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes');
}
//ºí·Î±×
function link_blog(){
 window.open('http://blog.naver.com/bmfa96','blog','left=0,top=0,toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes');
}
//½Ç¹ö¿¬ÇÕ
function link_silver(){
 /*
window.open('http://silverbastards.com','silver','left=0,top=0,toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes');
*/
}

// 
/*--------------------------------
¼öÁ¤»çÇ× ³¡
---------------------------------*/ 


/*--------------------------------
³×ºñ°ÔÀÌ¼Ç URL ½ÃÀÛ
---------------------------------*/ 

function link(num){
 if(num=='home'){ 
  location.href='/front/php/category.php?cate_no=12';  // HOME
 } 
 else if(num=='about'){ 
  location.href='/front/php/com_intro.php';  // ABOUT
 } 
 else if(num=='gallery'){ 
  location.href='/front/php/project/project.php?main_cate_no=13'; //gallery
 } 
 else if(num=='cate'){ 
  location.href='/front/php/category.php?cate_no=12'; //SHOP
 } 
  else if(num=='cate01'){ 
  location.href='/front/php/category.php?cate_no=24'; //1
 } 
  else if(num=='cate02'){ 
  location.href='/front/php/category.php?cate_no=25'; //2
 } 
  else if(num=='cate03'){ 
  location.href='/front/php/category.php?cate_no=26'; //3
 } 
  else if(num=='cate04'){ 
  location.href='/front/php/category.php?cate_no=27'; //4
 } 
   else if(num=='cate05'){ 
  location.href='/front/php/category.php?cate_no=28'; //5
 } 
   else if(num=='cate06'){ 
  location.href='/front/php/category.php?cate_no=29'; //6
 } 
   else if(num=='cate07'){ 
  location.href='/front/php/category.php?cate_no=30'; //7
 } 
   else if(num=='cate08'){ 
  location.href='/front/php/category.php?cate_no=31'; //8
 } 
   else if(num=='cate09'){ 
  location.href='/front/php/category.php?cate_no=35'; //9
 } 
   else if(num=='cate10'){ 
  location.href='/front/php/category.php?cate_no=32'; //10
 } 

 ///°Ô½ÃÆÇ
   else if(num=='community'){ 
  location.href='/front/php/b/board_list.php?board_no=6'; //BOARD
 }
    else if(num=='notice'){ 
  location.href='/front/php/b/board_list.php?board_no=1'; //1
 } 
    else if(num=='qna'){ 
  location.href='/front/php/b/board_list.php?board_no=6'; //2
 } 
    else if(num=='review'){ 
  location.href='/front/php/b/board_list.php?board_no=4'; //3
 } 
    else if(num=='faq'){ 
  location.href='/front/php/b/board_list.php?board_no=2'; //4
 } 


 ///¸â¹ö
    else if(num=='member'){ 
  location.href='/front/php/login/login_f.php'; //MEMBER
 }
     else if(num=='login'){ 
  location.href='/front/php/login/login_f.php'; //login
 }
     else if(num=='logout'){ 
  location.href='/front/php/login/login_a.php?mode=logout'; //logout
 } 
     else if(num=='join'){ 
  location.href='/front/php/c/member_regist_f.php'; //join
 } 
     else if(num=='cart'){ 
  location.href='/front/php/basket.php'; //cart
 } 
      else if(num=='mypage'){ 
  location.href='/front/php/myshop/myshop.php'; //mypage
 } 
     else if(num=='wishlist'){ 
  location.href='/front/php/basket.php'; //wishlist
 } 
/// ±âÅ¸
   else if(num=='delevery'){ 
 window.open('http://service.epost.go.kr/iservice/trace/Trace.jsp','delevery','left=0,top=0');
 }
 

 else{ 
  alert('ÁØºñÁßÀÔ´Ï´Ù'); 
 } 
}

/*--------------------------------
³×ºñ°ÔÀÌ¼Ç ³¡
---------------------------------*/ 


/*ºñ¾îÀÖ´Â Àå¹Ù±¸´Ï*/
function warning()
     {  
         alert("»óÇ°ÀÌ ¾ø½À´Ï´Ù.");
      }
  

/*ÇÏ´Ü·¹ÀÌ¾î °íÁ¤*/
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);}";
}
var foot_bodyCSS='*html {background:url(.) fixed;background-repeat: repeat;background-position: right bottom;}';
var foot_fixedCSS='#foot_fixed{position:fixed;';
var foot_fixedCSS=foot_fixedCSS+'_position:absolute;';
var foot_fixedCSS=foot_fixedCSS+'z-index:1;';
var foot_fixedCSS=foot_fixedCSS+'width:100%;';
var foot_fixedCSS=foot_fixedCSS+'text-align:center;';
var foot_fixedCSS=foot_fixedCSS+'bottom:0px;';
var foot_fixedCSS=foot_fixedCSS+'right:0px;';
var foot_fixedCSS=foot_fixedCSS+'clip:rect(0 100% 100% 0);';
var foot_fixedCSS=foot_fixedCSS+cot_t1_DOCtp;

document.write('<style type="text/css">'+foot_bodyCSS+foot_fixedCSS+'</style>'); 

//·¹ÀÌ¾î»çÀÌÁî
function large(){ 
 document.all['foot_fixed'].style.height = 200; 
} 
function small(){ 
 document.all['foot_fixed'].style.height = 50; 
}



/* Å×ÀÌºí ¶ó¿îµù */


function roundTable(objID) {
var obj = document.getElementById(objID);
var Parent, objTmp, Table, TBody, TR, TD;
var bdcolor, bgcolor, Space;
var trIDX, tdIDX, MAX;
var styleWidth, styleHeight;

// get parent node
Parent = obj.parentNode;
objTmp = document.createElement('SPAN');
Parent.insertBefore(objTmp, obj);
Parent.removeChild(obj);

// get attribute
bdcolor = obj.getAttribute('rborder');
bgcolor = obj.getAttribute('rbgcolor');
radius = parseInt(obj.getAttribute('radius'));
if (radius == null || radius < 1) radius = 1;
else if (radius > 6) radius = 6;

MAX = radius * 2 + 1;

/*
create table {{
*/
Table = document.createElement('TABLE');
TBody = document.createElement('TBODY');

Table.cellSpacing = 0;
Table.cellPadding = 0;

for (trIDX=0; trIDX < MAX; trIDX++) {
TR = document.createElement('TR');
Space = Math.abs(trIDX - parseInt(radius));
for (tdIDX=0; tdIDX < MAX; tdIDX++) {
TD = document.createElement('TD');

styleWidth = '1px'; styleHeight = '1px';
if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
else if (radius > 2) {
if (Math.abs(tdIDX - radius) == 1) styleWidth = '2px';
if (Math.abs(trIDX - radius) == 1) styleHeight = '2px';
}

if (styleWidth != null) TD.style.width = styleWidth;
if (styleHeight != null) TD.style.height = styleHeight;

if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
else if (tdIDX > Space && Space < MAX - tdIDX - 1) TD.style.backgroundColor = bgcolor;

if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
TR.appendChild(TD);
}
TBody.appendChild(TR);
}

/*
}}
*/

Table.appendChild(TBody);

// insert table and remove original table
Parent.insertBefore(Table, objTmp);
}


//½ºÅ©·Ñ±¸µ¿
var jajaLEFT   = 0; // ½ºÅ©·Ñ¸Þ´ºÀÇ ÁÂÃø À§Ä¡
var jajaGAP1   = 110; // ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é
var jajaGAP2   = 0; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ
var jajaBASE   = 170; // ½ºÅ©·Ñ¸Þ´º ÃÊ±â ½ÃÀÛÀ§Ä¡ (¾Æ¹«·¸°Ô³ª ÇØµµ »ó°üÀº ¾øÁö¸¸ jajaGAP1°ú ¾à°£ Â÷ÀÌ¸¦ ÁÖ´Â°Ô º¸±â ÁÁÀ½)
var jajaActivateSpeed = 1; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²)
var jajaScrollSpeed  = 1; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)

var jajaTimer;

function setLeft()
{
 if(document.body.clientWidth<55)
 {
  jajaLEFT = 2;
 }
 else
 {
  jajaLEFT = (document.body.clientWidth-55)/1+2;
 }
}

function ReadCookie(name)
{
 var label = name + "=";
 var labelLen = label.length;
 var cLen = document.cookie.length;

 var i = 0;

 while (i < cLen)
 {
  var j = i + labelLen;
  if (document.cookie.substring(i, j) == label)
  {
   var cEnd = document.cookie.indexOf(";", j);

   if (cEnd == -1)
    cEnd = document.cookie.length;

   return unescape(document.cookie.substring(j, cEnd));
  }
  i++;
 }
 return "";
}

function SaveCookie(name, value, expire)
{
 var eDate = new Date();
 eDate.setDate(eDate.getDate() + expire);
 document.cookie = name + "=" + value + "; expires=" + eDate.toGMTString()+ "; path=/";
}

function Refreshpce01()
{
 var jajaStartPoint, jajaEndPoint, jajaRefreshTimer;
 jajaStartPoint = parseInt(pce01.style.top, 10);
 jajaEndPoint = document.body.scrollTop + jajaGAP2;

 if (jajaEndPoint < jajaGAP1)
  jajaEndPoint = jajaGAP1;

 jajaRefreshTimer = jajaActivateSpeed;

 if ( jajaStartPoint != jajaEndPoint )
 {
  jajaScrollAmount = Math.ceil( Math.abs( jajaEndPoint - jajaStartPoint ) / 15 );
  pce01.style.top = parseInt(pce01.style.top, 10) + ( ( jajaEndPoint<jajaStartPoint ) ? -jajaScrollAmount : jajaScrollAmount );
  jajaRefreshTimer = jajaScrollSpeed;
 }

 setLeft();
 pce01.style.left = jajaLEFT;
 jajaTimer = setTimeout ("Refreshpce01();", jajaRefreshTimer);
}

function ani()
{
 if (!mate.checked)
 {
  Refreshpce01();
  SaveCookie("mate", "true", 300);
 }
 else
 {
  clearTimeout(jajaTimer);
  pce01.style.top = jajaGAP1;
  SaveCookie("mate", "false", 300);
 }
}

function by_pce01()
{
 pce01.style.left = jajaLEFT;

 if (ReadCookie("mate") == "false")
 {
  mate.checked = true;
  pce01.style.top = document.body.scrollTop + jajaGAP1;
 }
 else
 {
  mate.checked = false;
  pce01.style.top = document.body.scrollTop + jajaBASE;
  Refreshpce01();
 }
}




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 );
}

