// @charset "EUC-JP";
ca="v"; today=new Date(); h=0; sy=0; sm=0; sd=0; s=""; y=""; m=""; d="";

function dispUpMk() { if ( h<21) del('Up')}
function del(n) {document.getElementById(n).style.display="none"}
function shw(n) {document.getElementById(n).style.display="block"}
function dispCTB(u1,u2) {if (lc.indexOf("#"+u1)<1) {del(u2)} else {h=21} }
function shu() {document.getElementById('Up').style.display="inline"}
function GCOM(id) {
var A="http://pcafe.blog3.fc2.com/".replace( /(http:\/\/)\w+\.(\w+\.fc2\.com\/)/, "<img src='$1$2image\/" );
var B = document.getElementById( id );
C = B.innerHTML.replace(/>(http[-\w\/:.?]+(jpg|png|gif))</gi, "><img src='$1'><")
C=C.replace( />(http[-\w\/%&=:;.?]+)<\/a>「([^」]+)」/gi, "><strong title='$1'>$2</strong><\/a>");
C=C.replace( />(http[-\w\/%&=:;.?]+)</gi, "><strong title='$1'>URL</strong><");
C=C.replace( />URL<\/strong><\/a>「(.+)」/g, ">$1<\/strong><\/a>");
C = C.replace(/\[(emoji:)?([vie])[-]?([0-9]+)\]/g, A+"$2/$3.gif'>");
B.innerHTML =C;
}
function SetMap(u1,u2,u3,u4,u5) {
var w=0; var hg=0;
for(i=u1;i<=u2;i++){if (w>=u3){w=0;hg=hg+u5}
document.write(p1+w+','+hg+','+(w+u4)+','+(hg+u5)+p2+i+p3+i+p4);
w=w+u4; }
document.write('</map>');
}
function clk(n) {
if (n>2){ca="e";if (n<4) ca="i"}
for (i=1;i<=5;i++) {del('m'+i)}
if (n<6) {shw('m'+n)}
}
function WRT(no){document.comment.body.value += '[絵文字:'+ca+'-'+no+']'}
function Emoji() {
sv='<img src="http://blog3.fc2.com/admin/image/'
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('<p>'+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('</p>'+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)">');
}
function sDate(u) {if (u!=d) {document.write(u);d=u;} }
function oDate(u1,u2,u3) {
if (u1!=y) {sy=1;y=u1} else {sy=0}
if (u2!=m) {sm=1;m=u2} else {sm=0}
if (u3!=d) {sd=1;d=u3} else {sd=0}
if (sd+sm+sy>0){ s=u3;
if (sm>0) {s=u2+'/'+s; if (sy>0) {s=u1+'/'+s} }
document.write(s) 
}}
function EMP(id,KW) {
KW=KW.substr(1);
var RE = new RegExp( KW, "g");
var HLT='<span class="kw">'+KW+'</span>';
var C = document.getElementById(id);
C.innerHTML=C.innerHTML.replace(RE,"DMY").replace(/<([^>]*)DMY([^<]*)>/g,"<$1"+KW+"$2>").replace(/DMY/g,HLT);
}
function nw(u1,u2,u3,u4) {
var c=new Date(u1,u2-1,u3,u4); var t=today-c; var mo=0;
if (t<86400000) {mo=4}
if (t<43200000) {mo=3}
if (t<21600000) {mo=2}
if (t<3600000) {mo=1}
if (mo>0) document.write('<span class="new n'+mo+'">*</span>')
}
function GA(){document.writeln('<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>')}
function DA(){_uacct = "UA-4446597-1";urchinTracker();}
window.onload=DA;
function mkLnktl() {
var t=new Array();
t[0]="管理人巡回先";
t[1]="form入力でソース生成！";
t[2]="絢爛たるサムネイル";
t[3]="FC2テンプレーター";
t[4]="条件を指定して共有テンプレートを検索";
t[5]="共有テンプレート新着情報紙";
t[6]="共有プラグインを体験できます";
t[7]="FC2blogシャドーキャビネット？";
t[8]="テンプレータ（プラガー）必携";
t[9]="突破の記録";
t[10]=" 聖 典 ";
t[11]="開発者様直筆";
t[12]="SE index状況";
t[13]="ユーザー相互の助け合い";
t[14]="徳保さん";
var A=document.getElementById('LINK').getElementsByTagName('a');
for ( i = 0; i<A.length; i++ ) {
if (t[i]!=undefined && t[i]!="") A[i].title=t[i]
} }
function OAW(u) {
if(window.confirm("Open Another Window ?")) {
window.open(u,'_blank')} else {location.href=u}
}
function mkTgt(id) {
var A='onclick="OAW(this.href);return false" href='
var B=document.getElementById( id );
B.innerHTML  = B.innerHTML.replace(/href=/g, A);
}
function chgTmp() {
var tn=document.tc.q.value;var tname=tn; var tmode="";
if (tn.indexOf("#",0)>0){ tname=(tn.split('#')[0]); tmode=(tn.split('#')[1]);
 if (tmode == 3) {
  location.href="http://blog7.fc2.com/catablog/file/transit.html#pcafe*3*"+tname; return;
 } }
location.href="./?style"+tmode+"="+tname+"&index";
}
function adBtn(){
document.write('<input type="button" value="CHANGE" onclick="chgTmp()" class="rd" title=" 公式テンプレート名を記入し clickするとそのテンプレートで閲覧出来ます " />')
}
GA();