 // index
function f_link_index(){document.location.href="/";}
function f_link_index_1(){document.location.href="/";}
function f_link_index_2(){document.location.href="/goods/p_cate.php?arg_cate=1000";}
function f_link_index_3(){document.location.href="/goods/p_cate.php?arg_cate=1100";}
function f_link_index_4(){document.location.href="/goods/p_cate.php?arg_cate=1201";}
function f_link_index_5(){document.location.href="/goods/p_cate.php?arg_cate=1300";}
function f_link_index_6(){document.location.href="/goods/p_cate.php?arg_cate=1201";}//¿¹Æ¼

//index ÀÌ¿¢½º¿ÀÇÇ½º Á¦Ç° Á¤º¸
function f_link_index2_1(){document.location.href="/cust/cust_n.php";}
function f_link_index2_2(){document.location.href="/cust/cust_n.php";}
function f_link_index2_3(){document.location.href="/cust/cust_n.php";}

//index ÀÌ¿¢½º¿À ºê·£µåÁ¤º¸
function f_link_m2_1_1(){document.location.href="/goods/p_cate.php?ars_kind=2&arg_cate=1100";}
function f_link_m2_1_2(){document.location.href="/goods/p_cate.php?ars_kind=2&arg_cate=1000";}
function f_link_m2_1_3(){document.location.href="/goods/p_cate.php?ars_kind=2&arg_cate=1201";}
function f_link_m2_1_4(){document.location.href="/goods/p_cate.php?ars_kind=2&arg_cate=1300";}

//index ÀÌ¿¢½º¿À ºê·£µåÁ¤º¸
function f_link_index1_1(){document.location.href="/goods/p_cate.php?arg_cate=1000&arg_board_no=1000";}
function f_link_index1_2(){document.location.href="/goods/p_cate.php?arg_cate=1001&arg_board_no=1000";}
function f_link_index2(){document.location.href="/goods/p_cate.php?arg_cate=1100&arg_board_no=1100";}
function f_link_index3(){document.location.href="/goods/p_cate.php?arg_cate=1201&arg_board_no=1201";}
function f_link_index4(){document.location.href="/goods/p_cate.php?arg_cate=1300&arg_board_no=1300";}

//Á¦ÀÌ¹Ì½º
function j_link_1(){document.location.href="/goods/p_cate.php?arg_cate=1000&arg_board_no=1000";}
function j_link1_1(){document.location.href="/goods/p_cate.php?arg_cate=1000&arg_board_no=1000";}//MTB
function j_link1_2(){document.location.href="/goods/p_cate.php?arg_cate=1001&arg_board_no=1000";}//ROAD
function j_link1_3(){document.location.href="/goods/p_cate.php?arg_cate=1002&arg_board_no=1000";}//¾Æµ¿¿ë
function j_link1_4(){document.location.href="/goods/p_cate.php?arg_cate=1003&arg_board_no=1000";}//µµ½É¿ë
function j_link1_5(){document.location.href="/goods/p_cate.php?arg_cate=1004&arg_board_no=1000";}//ÇÁ·¹ÀÓ

//´ÏÄÝ¶óÀÌ
function j_link_2(){document.location.href="/goods/p_cate.php?arg_cate=1100&arg_board_no=1100";}

//¿¹Æ¼
function j_link_3(){document.location.href="/goods/p_cate.php?arg_cate=1201&arg_board_no=1201";}

//¸¶±¸¶ó
function j_link_4(){document.location.href="/goods/p_cate.php?arg_cate=1300&arg_board_no=1300";}
function j_link4_1(){document.location.href="/goods/p_cate.php?arg_cate=1300&arg_board_no=1300";}//Æ÷Å©
function j_link4_2(){document.location.href="/goods/p_cate.php?arg_cate=1301&arg_board_no=1300";}//	ºê·¹ÀÌÅ©
function j_link4_3(){document.location.href="/goods/p_cate.php?arg_cate=1302&arg_board_no=1300";}//	ºÎÇ°


//ÀÇ·ù/º¸È£±¸
function j_link_5(){document.location.href="/goods/p_cate.php?arg_cate=1400";}
function j_link5_1(){document.location.href="/goods/p_cate.php?arg_cate=1400";}//¼Øºê¸®¿À
function j_link5_2(){document.location.href="/goods/p_cate.php?arg_cate=1401";}//	µð¸¶Å°
function j_link5_3(){document.location.href="/goods/p_cate.php?arg_cate=1402";}//¿¹Æ¼
function j_link5_4(){document.location.href="/goods/p_cate.php?arg_cate=1403";}//´ÏÄÝ¶óÀÌ
function j_link5_5(){document.location.href="/goods/p_cate.php?arg_cate=1404";}//¸¶±¸¶ó
//function j_link5_6(){document.location.href="/goods/p_cate.php?arg_cate=1405";}//Á¦ÀÌ¹Ì½º
function j_link5_6(){document.location.href="/goods/p_cate.php?arg_cate=1406";}//Å©¶óÅä´Ï

//ºÎÇ°
function j_link_6(){document.location.href="/goods/p_cate.php?arg_cate=1505";}
function j_link6_1(){document.location.href="/goods/p_cate.php?arg_cate=1500";}//USE
function j_link6_2(){document.location.href="/goods/p_cate.php?arg_cate=1502";}//¸¶±¸¶ó ºÎÇ°
function j_link6_3(){document.location.href="/goods/p_cate.php?arg_cate=1506";}//e.13
function j_link6_4(){document.location.href="/goods/p_cate.php?arg_cate=1503";}//NSB
function j_link6_5(){document.location.href="/goods/p_cate.php?arg_cate=1501";}//Æ÷ÀÎÆ®¿ø ·¹ÀÌ½Ì
function j_link6_6(){document.location.href="/goods/p_cate.php?arg_cate=1504";}//½ºÅæ¿§Áö ·¹ÀÌ½Ì
function j_link6_7(){document.location.href="/goods/p_cate.php?arg_cate=1505";}//ÇìÀÌµé¸® Çãºê
function j_link6_8(){document.location.href="/goods/p_cate.php?arg_cate=1507";}//ROHLOFF
function j_link6_9(){document.location.href="/goods/p_cate.php?arg_cate=1508";}//´©Å©ÇÁ·çÇÁ

//¶óÀÌÆ®
function j_link_7(){document.location.href="/goods/p_cate.php?arg_cate=1600";}
function j_link7_1(){document.location.href="/goods/p_cate.php?arg_cate=1600";}//ÀÍ½ºÆ÷Àú

//¿ëÇ°
function j_link_8(){document.location.href="/goods/p_cate.php?arg_cate=1705";}
function j_link8_1(){document.location.href="/goods/p_cate.php?arg_cate=1700";}//¿¹Æ¼ ±×¸³
function j_link8_2(){document.location.href="/goods/p_cate.php?arg_cate=1701";}//¾Æ¿ì¸® ±×¸³
function j_link8_3(){document.location.href="/goods/p_cate.php?arg_cate=1702";}//ÇÒ·Î ¹êµå
function j_link8_4(){document.location.href="/goods/p_cate.php?arg_cate=1703";}//±âÅ¸
function j_link8_5(){document.location.href="/goods/p_cate.php?arg_cate=1704";}//¿À¸® ±×¸³
function j_link8_6(){document.location.href="/goods/p_cate.php?arg_cate=1705";}//SKS
function j_link8_7(){document.location.href="/goods/p_cate.php?arg_cate=1706";}//Æ®·ÎÀÌ¸®µðÀÚÀÎ ±×¸³

//Å¸ÀÌ¾î
function j_link_9(){document.location.href="/goods/p_cate.php?arg_cate=1800";}
function j_link9_1(){document.location.href="/goods/p_cate.php?arg_cate=1800";}//¿ÂÀÚÅ¸ÀÌ¾î


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// ¼­ºê¸Þ´º ½ºÅ©¸³Æ®
function f_menu_left()
{
   try
   {
      var lo_table    = document.getElementById("tbl_left");
      var lo_child    = null;
      var ls_href     = "";
      var lo_split    = null;
      var ls_domain   = "http://" + document.domain;
      var ls_cur_url  = fc_cur_url();
      var lo_img      = null;
      var ls_board_id = fc_querystring("boardid");
      var ls_link     = "";
      var ls_link2    = "";

      var lo_buffer   = new Image();
      
      //alert(lo_table.rows.length);
     
      for(var i=0; i < lo_table.rows.length; i++)
      {
         lo_child = lo_table.rows[i].cells[0].childNodes[0];

         if(lo_child.tagName == "A")
         {            
            ls_href  = lo_child.href;

            if(ls_href.lastIndexOf("?") != -1)
            {
               lo_split = ls_href.split("?");  
               ls_link  = lo_split[0].replace(ls_domain,"");
               ls_link2 = lo_split[1];                  
            }
            else
            {
               ls_link  = ls_href.replace(ls_domain,"");
               ls_link2 = "";
            }
            
            /*
            if(ls_link == ls_cur_url)
            {
               lo_child.style.color = "#4194c8";
               lo_child.style.fontWeight = 'bolder';
               //lo_child.innerHTML = lo_child.innerHTML + "&nbsp;&nbsp;<img src='/images/arw_select.gif' align='absmiddle'>";               
               lo_child.innerHTML = lo_child.innerHTML.replace("_out","_over");
               break;        
            }
            */

            if(ls_board_id != "")
            {
               if(ls_link2.lastIndexOf(ls_board_id) != -1)
               {
                  lo_img = lo_child.childNodes[0];
                  lo_buffer.src = lo_img.src;
                  lo_child.innerHTML = "<img src=\"" + lo_img.src.replace("out","over") + "\">";
                  break;
               }
            }
            else
            {
               if(ls_link == ls_cur_url)
               {
                  lo_img = lo_child.childNodes[0];
                  lo_buffer.src = lo_img.src;
                  lo_child.innerHTML = "<img src=\"" + lo_img.src.replace("out","over") + "\">";
                  break;        
               }
            }
         }
      }
   }
   catch(e)
   {
   }   
}
// ÁÂÃø¸Þ´ºÁ¦¾î
function f_menu_left()
{
   try
   {
      var lo_table    = document.getElementById("tbl_left");
      var lo_child    = null;
      var ls_href     = "";
      var lo_split    = null;
      var ls_domain   = "http://" + document.domain;
      var ls_cur_url  = fc_cur_url();
      var lo_img      = null;
      var ls_board_id = fc_querystring("boardid");
      var ls_link     = "";
      var ls_link2    = "";

     
      for(var i=0; lo_table.rows.length; i++)
      {
         lo_child = lo_table.rows[i].cells[0].childNodes[0];

         if(lo_child.tagName == "A")
         {
            ls_href  = lo_child.href;

            if(ls_href.lastIndexOf("?") != -1)
            {
               lo_split = ls_href.split("?");  
               ls_link  = lo_split[0].replace(ls_domain,"");
               ls_link2 = lo_split[1];                  
            }
            else
            {
               ls_link  = ls_href.replace(ls_domain,"");
               ls_link2 = "";
            }
            

            if(ls_board_id != "")
            {
               if(ls_link2.lastIndexOf(ls_board_id) != -1)
               {
                  lo_img = lo_child.childNodes[0];
                  lo_child.innerHTML = "<img src=\"" + lo_img.src.replace("out","over") + "\">";
                  break;
               }
            }
            else
            {
               if(ls_link == ls_cur_url)
               {
                  lo_img = lo_child.childNodes[0];
                  lo_child.innerHTML = "<img src=\"" + lo_img.src.replace("out","over") + "\">";
                  break;        
               }
            }
         }
      }
   }
   catch(e)
   {
   }   
}

