22
| <![CDATA[<script type="text/javascript">
jQuery(window).on('load', function() {
new JCaption('img.caption');
});
JCEMediaBox.init({popup:{width:"",height:"",legacy:0,lightbox:0,shadowbox:0,resize:1,icons:1,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"});
kQuery(function($) {
$('.docman_track_download').on('click', function() {
var el = $(this);
if (typeof _gaq !== 'undefined') {
if (_gat._getTrackers().length) {
_gaq.push(function() {
var tracker = _gat._getTrackers()[0];
tracker._trackEvent('DOCman', 'Download', el.data('title'), parseInt(el.data('id'), 10));
});
}
} else if ('ga' in window && window.ga !== undefined && typeof window.ga === 'function' ) {
window.ga('send', 'event', 'DOCman', 'Download', el.data('title'), parseInt(el.data('id'), 10));
}
});
});
window.setInterval(function(){var r;try{r=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}if(r){r.open("GET","/index.php?option=com_ajax&format=json",true);r.send(null)}},840000);
jQuery(function($){ $(".hasTooltip").tooltip({"html": true,"container": "body"}); });
</script>]]>
|