$("[id^=streamtitle]").on('click', function () {
$("[id^=stream]:not([id^=streamtitle])").hide();
var num = $(this).attr('id').replace('streamtitle','');
$("#stream"+num).show();
});
...but I still say that a common class is the way to go.