jQuery(function($) {
'use strict';
$('.stat-block.online-list').attr('id', 'online-list');
$('.stat-block.birthday-list').attr('id', 'birthday-list');
$('.stat-block.statistics').attr('id', 'statistics');
$('.collapse-box > h2, .stat-block > h3').addClass("open").find('a').contents().unwrap();
$('.collapse-box, .stat-block').collapse({
persist: true,
open: function() {
this.stop(true,true);
this.addClass("open");
this.slideDown(400);
},
close: function() {
this.stop(true,true);
this.slideUp(400);
this.removeClass("open");
}
});
var $videoBG = $('#video-background');
var hasTopBar = $('#top-bar').length;
function resizeVideoBG() {
var height = $(window).height();
$videoBG.css('height', (height - 42) + 'px');
}
if (hasTopBar && $videoBG.length) {
$(window).resize(function() {
resizeVideoBG()
});
resizeVideoBG();
}
});