<!-- #include file="include/skin.asp" -->
<%
'****************************************************
' 阳光情缘 2006V3.0      Power by sdsun.com.cn
' Email: 27072320@qq.com  , sdsun163@163.com
' Web: http://www.sdsun.com.cn
' Copyright (C) 2006 sdsun.com.cn All Rights Reserved.
'****************************************************

tit="EM贴图"
call web_head(0,0,4,0,0)
'----------------------------中间 开始----------------------------
call em_main()
'----------------------------中间 结束----------------------------
call web_end(0,4)

sub em_main()
%>
<table cellspacing=1 cellpadding=4 class=table>
<tr><td class=td0>&nbsp;EM贴图</td></tr>
<tr class=bg_td><td align=center>
<div id=em_menu></div><div id=em_body></div></td></tr>
</table>
<script language=javascript>
<!--Power by Joekoe.com
//blur();
self.resizeTo(350,400);
self.moveTo(0,0);

var img_m="<%response.write img_skin("m_")%>";
var i,j,k,k1,n,m1,ems="",em_dim,ntit="",em_frm="",em_word="",n_num=0,n_col=0;
var num_em=16;
var num_emb=13;
var num_emq=80;
var num_emm=67;
var col_em=11;
var col_emb=6;
var col_emq=10;
var col_emm=10;
var emss=document.location.search;
if (emss!="" && emss!=null)
{
  emss=emss.substring(1,emss.length);
  m1=emss.indexOf(",");
  if (m1>0)
  {
    em_dim=emss.split(",");
    em_frm=em_dim[0];
    em_word=em_dim[1];
    ems=em_dim[2];
  }
}

var tmp1="";
tmp1+="  <table border=0>";
//tmp1+="  <tr><td height=5></td></tr>";
tmp1+="  <tr>";
tmp1+="  <td>"+img_m+"<a style=\"cursor: hand;\" onclick=\"javascript:img_body('em');\">小EM贴图</a>&nbsp;</td>";
tmp1+="  <td>"+img_m+"<a style=\"cursor: hand;\" onclick=\"javascript:img_body('emb');\">大EM贴图</a>&nbsp;</td>";
tmp1+="  </tr>";
//tmp1+="  <tr><td height=5></td></tr>";
tmp1+="  <tr>";
tmp1+="  <td>"+img_m+"<a style=\"cursor: hand;\" onclick=\"javascript:img_body('emq');\">EM贴图（QQ）</a>&nbsp;</td>";
tmp1+="  <td>"+img_m+"<a style=\"cursor: hand;\" onclick=\"javascript:img_body('emm');\">EM贴图（MSN）</a>&nbsp;</td>";
tmp1+="  </tr>";
//tmp1+="  <tr><td height=5></td></tr>";
tmp1+="  </table>";
window.em_menu.innerHTML=tmp1;

function img_body(ib_ems)
{
  switch (ib_ems)
  {
  case "emb":
    n_num=num_emb;
    n_col=col_emb;
    ntit="大EM贴图";
    break;
  case "emq":
    n_num=num_emq;
    n_col=col_emq;
    ntit="EM贴图（QQ）";
    break;
  case "emm":
    n_num=num_emm;
    n_col=col_emm;
    ntit="EM贴图（MSN）";
    break;
  default :
    n_num=num_em;
    n_col=col_em;
    ntit="小EM贴图";
    break;
  }
  var tmps="";
  tmps+="  <table border=0 cellspacing=0 cellpadding=3>";
  k=n_num/n_col;
  k1=Math.floor(k);
  if (k>k1) { k++; }
  for (i=1;i<=k;i++)
  {
    tmps+="    <tr height=28>";
    for (j=1;j<=n_col;j++)
    {
      if (((i-1)*n_col+j)>n_num) { break; }
      n=(i-1)*n_col+j;
      tmps+="  <td><img src='images/icon/"+ib_ems+n+".gif' border=0 align=absMiddle onclick=\"javascript:jk_insert_ems('["+ib_ems+n+"]');\" style=\"CURSOR: hand\"></td>";
    }
    tmps+="  </tr>";
  }
  tmps+="  </table>";
  window.em_body.innerHTML=tmps;
}

function img_skin(img_var) { return("<img border=0 src='<%response.write joekoe_cms.web_dir_skin%>small/" + img_var + ".gif' align=absmiddle>&nbsp;"); }

function jk_insert_ems(emvar)
{
  eval("opener.window."+em_frm+"."+em_word+".value+='"+emvar+"'");
}
-->
</script>
<%
  call web_copy()
end sub
'****************************************************
' 阳光情缘 2006V3.0      Power by sdsun.com.cn
' Email: 27072320@qq.com  , sdsun163@163.com
' Web: http://www.sdsun.com.cn
' Copyright (C) 2006 sdsun.com.cn All Rights Reserved.
'****************************************************
%>