var js_nossl_href = "http://www.love-119.com";
var js_ssl_href = "http://www.love-119.com:446";

//È¸¿ø°ü¸®
function f_link_home(){document.location.href=js_nossl_href+"/";}
function f_link_login(){document.location.href=js_nossl_href+"/page/page1-.php";}
function f_link_logout(){document.location.href=js_nossl_href+"/wt_board/member/logout.php";}
function f_link_join(){document.location.href=js_nossl_href+"/page/page2-.php";}
function f_link_member(){document.location.href=js_ssl_href+"/page/page2.php";}
function f_link_sitemap(){document.location.href=js_nossl_href+"/etc/etc1.php";}
function f_link_mypage1(){document.location.href=js_ssl_href+"/page/page2.php";}
function f_link_mypage2(){document.location.href=js_ssl_href+"/page/page2.php";}
function f_link_admin(){document.location.href=js_nossl_href+"/wt_board/admin/index.php";}

// È¸»ç¼Ò°³
function j_link_1(){document.location.href=js_nossl_href+"/soge/soge1.php";}
function j_link1_1(){document.location.href=js_nossl_href+"/soge/soge1.php";}
function j_link1_2(){document.location.href=js_nossl_href+"/soge/soge2.php";}

// ¼­ºñ½º
function j_link_2(){document.location.href=js_nossl_href+"/serv/serv1.php";}
function j_link2_1(){document.location.href=js_nossl_href+"/serv/serv1.php";}
function j_link2_2(){document.location.href=js_nossl_href+"/serv/serv2.php";}
function j_link2_3(){document.location.href=js_nossl_href+"/serv/serv3.php";}

// Æ÷Æ®Æú¸®¿À
function j_link_3(){document.location.href=js_nossl_href+"/memb/memb2.php";}
function j_link3_1(){document.location.href=js_nossl_href+"/memb/memb1.php";}
function j_link3_2(){document.location.href=js_nossl_href+"/memb/memb2.php";}
function j_link3_3(){document.location.href=js_nossl_href+"/memb/memb3.php";}
function j_link3_4(){document.location.href=js_nossl_href+"/memb/memb4.php";}
function j_link3_5(){document.location.href=js_nossl_href+"/memb/memb5.php";}
function j_link3_6(){document.location.href=js_nossl_href+"/memb/memb6.php";}
function j_link3_7(){document.location.href=js_nossl_href+"/memb/memb7.php";}


// °ßÀû¹®ÀÇ
function j_link_4(){document.location.href=js_nossl_href+"/prop/prop1.php";}
function j_link4_1(){document.location.href=js_nossl_href+"/prop/prop1.php";}
function j_link4_2(){document.location.href=js_nossl_href+"/prop/prop3.php";}
function j_link4_3(){document.location.href=js_nossl_href+"/prop/prop4.php";}
function j_link4_4(){document.location.href=js_nossl_href+"/prop/prop4_2.php";}
function j_link4_5(){document.location.href=js_nossl_href+"/prop/prop5.php";}
function j_link4_6(){document.location.href=js_nossl_href+"/prop/prop6.php";}
function j_link4_7(){document.location.href=js_nossl_href+"/prop/prop7.php";}

// Á¤º¸°ø°³¹æ
function j_link_5(){document.location.href=js_nossl_href+"/love/love1.php";}
function j_link5_1(){document.location.href=js_nossl_href+"/love/love1.php";}
function j_link5_2(){document.location.href=js_nossl_href+"/love/love2.php";}
function j_link5_3(){document.location.href=js_nossl_href+"/love/love3.php";}
function j_link5_4(){document.location.href=js_nossl_href+"/love/love4.php";}
function j_link5_5(){document.location.href=js_nossl_href+"/love/love5.php";}
function j_link5_6(){document.location.href=js_nossl_href+"/love/love6.php";}
function j_link5_7(){document.location.href=js_nossl_href+"/love/love7.php";}

// Á¤º¸°ø°³¹æ
function j_link_6(){document.location.href=js_nossl_href+"/comm/comm1.php";}
function j_link6_1(){document.location.href=js_nossl_href+"/comm/comm1.php";}
function j_link6_2(){document.location.href=js_nossl_href+"/comm/comm2.php";}
function j_link6_3(){document.location.href=js_nossl_href+"/comm/comm3.php";}
function j_link6_4(){document.location.href=js_nossl_href+"/comm/comm4.php";}
function j_link6_5(){document.location.href=js_nossl_href+"/comm/comm5.php";}

// °í°´¼¾ÅÍ
function j_link_7(){document.location.href=js_nossl_href+"/cust/cust1.php";}
function j_link7_1(){document.location.href=js_nossl_href+"/cust/cust1.php";}
function j_link7_2(){document.location.href=js_nossl_href+"/cust/cust2.php";}
function j_link7_3(){document.location.href=js_nossl_href+"/cust/cust3.php";}
function j_link7_4(){document.location.href=js_nossl_href+"/cust/cust4.php";}

// ¼­ºê¸Þ´º ½ºÅ©¸³Æ®
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_lblur()
{
   var lo_this = window.event.srcElement;
   lo_this.blur();
}



var gs_tmp_div_id = "";

function f_layer_mem_info(ars_id,ars_pno)
{
   var lo_this = window.event.srcElement;
   var li_x    = fc_get_x(lo_this);
   var li_y    = fc_get_y(lo_this);
   var ls_table = "";

   var ls_pno = ars_pno;
   
   if(gs_tmp_div_id != "")
   {
      document.body.removeChild(document.getElementById(gs_tmp_div_id));
   }

   gs_tmp_div_id = "div_" + ars_id;

   ls_table += "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100\" align=\"center\">";
   ls_table += "   <tr><td height=\"10\"></td></tr>";
   ls_table += "   <tr>";
   ls_table += "      <td height=\"20\">";
   ls_table += "         <img src=\"/images/dot1.gif\" align=\"absmiddle\"> <a href=\"javascript:void(fc_center_win('/wt_board/memo/p_send.php?arg_mode=&txt_to_id=" + ars_id + "','win_memo',400,390))\" onfocus='this.blur()' onclick='f_lm_hide();'>ÂÊÁöº¸³»±â</a>"
   ls_table += "      </td>";
   ls_table += "   </tr>";
   ls_table += "   <tr><td bgcolor=\"#e6e9d6\"></td></tr>";
   ls_table += "   <tr>";
   ls_table += "      <td height=\"20\">";
   ls_table += "         <img src=\"/images/dot1.gif\" align=\"absmiddle\"> <a href='/netpbl/netpbl7.php?arg_pno=" + ls_pno + "&arg_id=" + ars_id + "' onclick='f_lm_hide();'>¾ÆÀÌµð·Î °Ë»ö</a>";
   ls_table += "      </td>";
   ls_table += "   </tr>";
   ls_table += "   <tr><td bgcolor=\"#e6e9d6\"></td></tr>";
   ls_table += "   <tr>";
   ls_table += "      <td height=\"20\">";
   ls_table += "         <img src=\"/images/dot1.gif\" align=\"absmiddle\"> <a href=\"javascript:void(fc_center_win2('/wt_board/formail/mail.php?arg_id=" + ars_id + "','win_mail',660,500))\" onfocus='this.blur()' onclick='f_lm_hide();'>¸ÞÀÏº¸³»±â</a>";
   ls_table += "      </td>";
   ls_table += "   </tr>";
   ls_table += "   <tr><td bgcolor=\"#e6e9d6\"></td></tr>";
   ls_table += "   <tr>";
   ls_table += "      <td height=\"20\">";
   ls_table += "         <img src=\"/images/dot1.gif\" align=\"absmiddle\"> <a href=\"javascript:void(fc_center_win2('/wt_board/member/member_view.php?arg_id=" + ars_id + "','win_mail',620,480))\" onfocus='this.blur()' onclick='f_lm_hide();'>È¸¿øÁ¤º¸</a>";
   ls_table += "      </td>";
   ls_table += "   </tr>";   
   ls_table += "</table>";



   var ls_html = "<div id=\"" + gs_tmp_div_id +"\"  style=\"position:absolute;background-image:url(/wt_board/images/bg_goods.gif);width:110;height:110;display:none;filter:alpha(Opacity=90);\">" + ls_table + "</div>";

   document.body.insertAdjacentHTML("beforeEnd",ls_html);
   var lo_div  = document.getElementById(gs_tmp_div_id);
   
   lo_div.style.left = li_x + 10;
   lo_div.style.top  = li_y + 20;
   lo_div.style.display = "";
   lo_div.focus();
}

function f_lm_hide()
{
   var lo_div  = document.getElementById(gs_tmp_div_id);
   lo_div.style.display = "none";
}

function f_club_go(ars_club_id)
{
   var ls_url  = "";

   ls_url = "/wt_board/club/club_index.php";
   ls_url += "?arg_club_id=" + ars_club_id;

   window.open(ls_url,"win_club","width=930,height=623,left=0,top=0,statusbars=yes");
}