1
| <![CDATA[<script type="text/javascript">
window.addEvent('domready', function() {
SqueezeBox.initialize({"handler": "image"});
SqueezeBox.assign($$('a.thumbnail'), {
parse: 'rel'
});
});
window.addEvent('domready', function(){
$$('.docman-download').addEvent('click', function(e) {
var el = this;
if (typeof _gaq !== 'undefined') {
if (_gat._getTrackers().length) {
_gaq.push(function() {
var tracker = _gat._getTrackers()[0];
tracker._trackEvent('DOCman', 'Download', el.get('data-title'), parseInt(el.get('data-id'), 10));
});
}
}
});
});
jQuery(function($){
var $buttons = $('.docman-btn-group-download'),
width = $buttons.css('display', 'inline-block').width(),
$well = $('.docman-document-details > .well'),
widthFix = function(){
if(width > $well.outerWidth()) {
$buttons.addClass('btn-group-vertical').removeClass('btn-group-split');
} else {
$buttons.removeClass('btn-group-vertical').addClass('btn-group-split');
}
};
$buttons.css('display', '').addClass('btn-block')
.find('.btn').addClass('btn-block');
widthFix();
$(window).resize(widthFix);
});
window.addEvent('domready', function() {
SqueezeBox.initialize({});
SqueezeBox.assign($$('a.modal'), {
parse: 'rel'
});
});
function keepAlive() { var myAjax = new Request({method: "get", url: "index.php"}).send();} window.addEvent("domready", function(){ keepAlive.periodical(840000); });
</script>]]>
|