var Player_chapter = Player_subtype.extend({
initialize_sections: function() {
this._super();
// chapter-specific stuff here
},
initialize2: function() {
this._super();
// chapter-specific stuff here
$('option').each(function() {
var $option = $(this)
var option_txt = $option.text();
if (match = option_txt.match(/(Upanishads)/)) {
$option.html('' + match[1] + '');
}
else if (match = option_txt.match(/(Code of Manu)/)) {
$option.html('' + match[1] + '');
}
else if (match = option_txt.match(/(Vedic Age; flourishing of Aryan civilization; )(Rigveda)/)) {
$option.html(match[1] + '' + match[2] + '');
}
});
}
});
player = new Player_chapter();