36
| <![CDATA[<script>
jQuery(function($) {
SqueezeBox.initialize({});
SqueezeBox.assign($('a.pg-modal-button').get(), {
parse: 'rel'
});
});
window.jModalClose = function () {
SqueezeBox.close();
};
// Add extra modal close functionality for tinyMCE-based editors
document.onreadystatechange = function () {
if (document.readyState == 'interactive' && typeof tinyMCE != 'undefined' && tinyMCE)
{
if (typeof window.jModalClose_no_tinyMCE === 'undefined')
{
window.jModalClose_no_tinyMCE = typeof(jModalClose) == 'function' ? jModalClose : false;
jModalClose = function () {
if (window.jModalClose_no_tinyMCE) window.jModalClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
if (typeof window.SqueezeBoxClose_no_tinyMCE === 'undefined')
{
if (typeof(SqueezeBox) == 'undefined') SqueezeBox = {};
window.SqueezeBoxClose_no_tinyMCE = typeof(SqueezeBox.close) == 'function' ? SqueezeBox.close : false;
SqueezeBox.close = function () {
if (window.SqueezeBoxClose_no_tinyMCE) window.SqueezeBoxClose_no_tinyMCE.apply(this, arguments);
tinyMCE.activeEditor.windowManager.close();
};
}
}
};
window.addEvent("domready", function () {
new boxplus($$("a.phocagallerycboxplus"),{"theme":"lightsquare","autocenter":1,"autofit":1,"slideshow":0,"loop":0,"captions":"bottom","thumbs":"inside","width":680,"height":560,"duration":250,"transition":"linear","contextmenu":1, phocamethod:1});
new boxplus($$("a.phocagallerycboxplusi"),{"theme":"lightsquare","autocenter":1,"autofit":1,"slideshow":0,"loop":0,"captions":"bottom","thumbs":"hide","width":680,"height":560,"duration":250,"transition":"linear","contextmenu":1, phocamethod:1});
new boxplus($$("a.phocagallerycboxpluso"),{"theme":"lightsquare","autocenter":1,"autofit": false,"slideshow": false,"loop":false,"captions":"none","thumbs":"hide","width":680,"height":560,"duration":0,"transition":"linear","contextmenu":false, phocamethod:2});
});
JCEMediaBox.init({popup:{width:1000,height:700,legacy:0,lightbox:0,shadowbox:0,resize:1,icons:0,overlay:1,overlayopacity:0.8,overlaycolor:"#000000",fadespeed:500,scalespeed:500,hideobjects:0,scrolling:"fixed",close:2,labels:{'close':'Fechar','next':'Próximo','previous':'Anterior','cancel':'Cancelar','numbers':'{$current} de {$total}'},cookie_expiry:"",google_viewer:0},tooltip:{className:"tooltip",opacity:0.8,speed:150,position:"br",offsets:{x: 16, y: 16}},base:"/",imgpath:"plugins/system/jcemediabox/img",theme:"standard",themecustom:"",themepath:"plugins/system/jcemediabox/themes",mediafallback:0,mediaselector:"audio,video"});
jQuery(function($){ initTooltips(); $("body").on("subform-row-add", initTooltips); function initTooltips (event, container) { container = container || document;$(container).find(".hasTooltip").tooltip({"html": true,"container": "body"});} });
</script>]]>
|