$.yoxview.yoxviewSkins["top_menu"] = { infoButtons: function(options, lang, sprites, yoxviewPanel, yoxviewContent){ var $ = jQuery; //prev/next buttons: if (!options.skinOptions || options.skinOptions.renderButtons !== false) { var prevBtn = $("", { className: "yoxview_ctlButton yoxview_prevBtn", title: lang.PrevImage, href: "#" }); prevBtn.click(function(e){ $.yoxview.prev(); return false; }); var nextBtn = $("", { className: "yoxview_ctlButton yoxview_nextBtn", title: lang.NextImage, href: "#" }); nextBtn.click(function(e){ $.yoxview.next(); return false; }); yoxviewPanel.append(prevBtn, nextBtn); } // menu buttons: var closeBtn = $("", { href: "#", title: lang.Close, click: function(e){ e.preventDefault(); $.yoxview.close(); } }); closeBtn.append(sprites.getSprite("icons", "close")); var playBtn = $("", { href: "#", title: lang.Play, click: function(e){ e.preventDefault(); $.yoxview.play(); } }); playBtn.append(sprites.getSprite("icons", "play")); var rightBtn = $("", { href: "#", title: options.isRTL ? lang.PrevImage : lang.NextImage, click: function(e){ e.preventDefault(); if (options.isRTL) $.yoxview.prev(); else $.yoxview.next(); } }); rightBtn.append(sprites.getSprite("icons", "right")); var leftBtn = $("", { href: "#", title: options.isRTL ? lang.NextImage : lang.PrevImage, click: function(e){ e.preventDefault(); if (options.isRTL) $.yoxview.next(); else $.yoxview.prev(); } }); leftBtn.append(sprites.getSprite("icons", "left")); //yoxviewContent.delegate("div.yoxview_imgPanel", "click.yoxviewZoom", $.yoxview.zoom); return { close: closeBtn, playBtn: playBtn, right: rightBtn, left: leftBtn }; }, options: { renderInfoExternally: true, autoHideInfo: false, popupMargin: "20 80", renderInfoPin: false, renderMenu: false, renderButtons: false } }