var widget_prefix = 'bccks_widget_';
var widget_id = widget_prefix + '_d43acea9f3c7c8f3489d6e8b534a500e';
document.write('
');
(function() {
// Localize jQuery variable
var jQuery;
if (window.jQuery === undefined || window.jQuery.fn.jquery !== '1.6.2') {
var script_tag = document.createElement('script');
script_tag.setAttribute("type","text/javascript");
script_tag.setAttribute("src","//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js");
script_tag.onload = scriptLoadHandler;
script_tag.onreadystatechange = function ()
{ // Same thing but for IE
if (this.readyState == 'complete' || this.readyState == 'loaded') {
scriptLoadHandler();
}
};
(document.getElementsByTagName("head")[0] || document.documentElement).appendChild(script_tag);
} else {
jQuery = window.jQuery;
main();
}
//
function scriptLoadHandler()
{
jQuery = window.jQuery.noConflict(true);
showBccksWidget();
}
//
function showBccksWidget()
{
var widget_id = widget_prefix + '_d43acea9f3c7c8f3489d6e8b534a500e';
jQuery(document).ready(function($) {
var hostname = 'bccks.jp';
var backgroundColor = 'FFF';
var foregroundColor = '333';
$('').attr('id', 'bccks_widget_container_d43acea9f3c7c8f3489d6e8b534a500e').css({'width':'100%','background':'#' + backgroundColor }).appendTo('#' + widget_id);
$('').attr('id', 'bccks_widget_box_d43acea9f3c7c8f3489d6e8b534a500e').css({'text-align':'center','padding':'8px', 'font':'normal 12px sans-serif'}).appendTo('#bccks_widget_container_d43acea9f3c7c8f3489d6e8b534a500e');
$('').attr('id', 'bccks_widget_tn_anchor_d43acea9f3c7c8f3489d6e8b534a500e').attr('href', 'https://' + hostname + '/bcck/121755/info').attr('target', 'bccks').css({'border':'0'}).appendTo('#bccks_widget_box_d43acea9f3c7c8f3489d6e8b534a500e');
$('
').attr('id', 'bccks_widget_thumbnail_d43acea9f3c7c8f3489d6e8b534a500e').attr('src', '//' + hostname + '/global/data/bccks/0012/1755/jacket_160.jpg').attr('alt', '\u72ac\u306b\u306f\u9396\u9aa8\u304c\u306a\u3044\u304b\u3089\uff5c\u72ac\u306e\u80b2\u3066\u65b9').css({'margin':'4px'}).appendTo('#bccks_widget_tn_anchor_d43acea9f3c7c8f3489d6e8b534a500e');
$('').attr('id', 'bccks_widget_title_d43acea9f3c7c8f3489d6e8b534a500e').attr('href', 'https://' + hostname + '/bcck/121755/info').attr('target', 'bccks').html('『犬には鎖骨がないから|犬の育て方』').css({'text-decoration':'none', 'line-height':'110% !important', 'margin-bottom':'2px', 'display':'block', 'font':'bold 14px serif', 'color':'#' + foregroundColor + ' !important'}).appendTo('#bccks_widget_box_d43acea9f3c7c8f3489d6e8b534a500e');
$('').attr('id', 'bccks_widget_author_d43acea9f3c7c8f3489d6e8b534a500e').html('ARATA HOUSE著').css({'margin':'0', 'padding':'0', 'font':'normal 12px sans-serif', 'line-height':'1.2em', 'color':'#' + foregroundColor + ' !important'}).appendTo('#bccks_widget_box_d43acea9f3c7c8f3489d6e8b534a500e');
$('').attr('id', 'bccks_widget_genre_d43acea9f3c7c8f3489d6e8b534a500e').html('動物・植物・自然全般').css({'margin':'0 0 4px 0', 'padding':'0','font':'noraml 12px sans-serif', 'line-height':'1.2em', 'color':'#' + foregroundColor + ' !important'}).appendTo('#bccks_widget_box_d43acea9f3c7c8f3489d6e8b534a500e');
$('').attr('id', 'bccks_widget_publish_d43acea9f3c7c8f3489d6e8b534a500e').html('2014.05.06 ARATA書店発行').css({'margin':'0', 'padding':'0', 'font':'normal 12px sans-serif', 'line-height':'1.2em', 'color':'#' + foregroundColor + ' !important'}).appendTo('#bccks_widget_box_d43acea9f3c7c8f3489d6e8b534a500e');
$('').attr('id', 'bccks_widget_info_d43acea9f3c7c8f3489d6e8b534a500e').html('無料 18ベース頁 1.2MB').css({'margin':'0', 'padding':'0', 'font':'normal 12px sans-serif', 'line-height':'1.2em', 'color':'#' + foregroundColor + ' !important'}).appendTo('#bccks_widget_box_d43acea9f3c7c8f3489d6e8b534a500e');
$('#' + widget_id).find('a').click(function() {
var win = window.open(null,widget_id,'width=816,height=680,menubar=no,toolbar=no,scrollbars=no');
var userCode = 0;
if (win) {
win.document.open();
win.document.charset = "UTF-8";
win.document.write("入手処理中...");
win.document.close();
}
win.location.href = 'https://' + hostname + '/viewer/121755';
return false;
});
});
}
})();