(function() {
var host = (location.host).replace(/\./g,"_2");
if ( !window[host] ) {
window[host] = {};
window[host].counter = 0;
window[host].afpbb_build = function(target) {
var host = (location.host).replace(/\./g,"_2");
var a,b,c,y
try {
// 対象となる先頭の DIV
a = target.getElementsByTagName("DIV")[0];
y = target.getElementsByTagName("DIV");
// その中にある topilogAfpbbRichlink クラスを持つ DIV を取得
b = window[host].jugem_afpbb_get(y,'topilogAfpbbRichlink');
// その中にある afpbbtarget クラスを持つ DIV を取得( 記事内のユーザエリア )
c = window[host].jugem_afpbb_get(y,'afpbbtarget');
// ユーザエリアに移動
c.appendChild(a);
c.appendChild(b);
}catch(e){}
};
window[host].jugem_afpbb_get = function(obj,class_target) {
var target;
for( var i = 0; i
if ( obj[i].className == class_target ) {
target = obj[i];
break;
}
}
return target;
};
}
window[host].counter++;
document.write("");
var str="";
str+=" \n";
str+="window['"+host+"'].afpbb_build(document.getElementById('"+host+window[host].counter+"').parentNode); \n";
str+=""+"script> ";
document.write(str);
})();