/* @author		JOOFORGE.com
 * @copyright	Copyright(C) 2010 Jooforge
 * @licence		GNU/GPL http://www.gnu.org/copyleft/gpl.html */

window.addEvent('domready', function () {
	$$('div.gbLastGames').each(function (b) {
		new Accordion(b.getElements('div.head'), b.getElements('div.evidence'), {
			onActive: function (a) {
				a.addClass('active');
				if($defined('Cufon')) {
					Cufon.replace(a)
				}
			}, onBackground: function (a) {
				a.removeClass('active');
				if($defined('Cufon')) {
					Cufon.replace(a)
				}
			}
		})
	})
});