" ;="" else="" (!$("body.rtl").length)="" xoff="" "px;top:"="" yoff="" "px'="">";
else html += "class='vertical' style='left: 0px;top:" + yoff + "px'>";
html += this.add_button_row(this.ui_icon_download, "call_download", this.i18n.download, this.i18n.all_sizes, horizontal);
html += this.add_button_row(this.ui_icon_web, "call_web", this.i18n.use_this_file_web_short, this.i18n.on_a_website, horizontal);
html += this.add_button_row(this.ui_icon_wiki, "call_wiki", this.i18n.use_this_file_wiki_short, this.i18n.on_a_wiki, horizontal);
html += this.add_button_row(this.ui_icon_email, "send_email", this.i18n.email_link_short, this.i18n.to_this_file, horizontal);
html += this.add_button_row(this.ui_icon_help, "call_help", this.i18n.information, this.i18n.about_reusing, horizontal);
html += '

';
if (this.show_social_bookmarks) html += this.add_social_icons(horizontal);
html += "
";
if ( this.small_horizontal_layout && $("#file").length ) {
$(".mw-filetoc-links").hide();
$("#filetoc").append(html);
} else {
$("#filetoc").after(html);
}
$('#stockphoto_remove').click(function () {
$.cookie('StockPhotoDisabled', true, {
expires: 60,
path: '/'
});
$('#stockphoto_base').remove();
$(".mw-filetoc-links").show();
});
$('#stockphoto_base img').parent().fadeTo(0, 0.7);
$('#stockphoto_base>span').hover(function () {
$(this).find('span:first a').fadeTo('fast', 1);
}, function (evt) {
$(this).find('span:first a').fadeTo('fast', 0.7);
});
},
add_button_row: function (icon_url, fkt, txt, html, horizontal) {
if (this.small_horizontal_layout) {
icon_url = icon_url.replace('/50px-', '/20px-');
}
var imgid = "stockphoto_icon_" + fkt;
var a = "" + this.i18n.download_image_file + ":";
var dl_links = new Array();
$.each(widths, function (i, v) {
if (StockPhoto.isset(StockPhoto.file_icon)) return;
dl_links.push("
" + v + "px");
});
if (this.file_url) dl_links.push("
" + this.i18n.full_resolution + "");
if (dl_links.length) html += dl_links.join(" | ");
else html += "
" + this.i18n.not_available + "";
html += "
";
}
break;
case 2:
dtitle = this.i18n.use_this_file_web;
html += "';
break;
case 3:
dtitle = this.i18n.use_this_file_wiki;
html = this.createDialogRow(this.i18n.thumbnail, this.escapeAttribute("[[File:" + wgTitle + "|thumb|" + this.nicetitle + "]]"));
html += this.createDialogRow(this.i18n.image, this.escapeAttribute("[[File:" + wgTitle + "|" + this.nicetitle + "]]"));
break;
}
$("