var ca="v"; lc=""+self.frames.location;

function del(n){document.getElementById(n).style.display="none"}
function shw(n){document.getElementById(n).style.display="block"}
function SetMap(u1,u2,u3,u4,u5) {
w=0; h=0; for(i=u1;i<=u2;i++){ if (w>=u3){w=0;h=h+u5}
document.write(p1+w+','+h+','+(w+u4)+','+(h+u5)+p2+i+p3+i+p4);
w=w+u4; }
document.write('</map>');
}
function clk(n) {
ca="v";if (n>2){ca="e";if (n<4) ca="i"}
for (i=1;i<=6;i++) {del('m'+i)}
shw('m'+n);
}
function WRT(no){
document.comment_form.comment.value += '[絵文字:'+ca+'-'+no+']';
}
function Emoji() {
n=(lc.split('.fc2.com')[0]).split('blog')[1];
if(n.indexOf('blog')>0) {n=n.split('blog')[1]}
sv='<img src="http://blog'+n+'.fc2.com/admin/image/' ;
sv2=sv.replace( /admin\//,"");
p1='<area shape="rect" coords="';
p2='" href="javascript:WRT(';
p3=')" title=" ';
p4=' ">';
p5='icon.gif" title=" ';
p6='" border="0" onclick="clk(';
p7='.gif" border="0" usemap="#m';
p8='" id="m';
p9='"><map name="m';
document.write(sv+'v'+p7+'1'+p8+'1'+p9+'1">');
SetMap(1,275,225,15,15);
document.write(sv+'v2'+p7+'2'+p8+'2'+p9+'2">');
SetMap(276,545,225,15,15);
document.write(sv+'i'+p7+'3'+p8+'3'+p9+'3">');
SetMap(1,282,240,12,12);
document.write(sv+'e'+p7+'4'+p8+'4'+p9+'4">');
SetMap(1,260,210,14,15);
document.write(sv+'e2'+p7+'5'+p8+'5'+p9+'5">');
SetMap(261,518,210,14,15);
document.write('<span id="m6">.</span>');
document.write(sv+'v'+p5+'V 絵文字 1'+p6+'1)">');
document.write(sv+'v'+p5+'V 絵文字 2'+p6+'2)">');
document.write(sv+'i'+p5+'I 絵文字'+p6+'3)">');
document.write(sv+'e'+p5+'E 絵文字 1'+p6+'4)">');
document.write(sv+'e'+p5+'E 絵文字 2'+p6+'5)">');
document.write(sv2+'e/61.gif'+p6+'6)">');
}
Emoji();clk(6);
