I don't think JavaScript has a method for getting the week number, so your first problem would be to find a way of calculating it. I would start by having a look at the code here
Following that, you should look into HTML id values. Just using an integer is not valid, so you should figure out a way of incorporating the number somewhere after a string.
Your next place to look would be at CSS selectors. Conditionals for a less than in a selector is not valid, so you would probably have to iterate through each one (check out jQuery each) here.
I came up with a quick soluiton to your problem here: http://jsfiddle.net/vpgNL/
HTML:
<div class="week" id="week_2">Week 2</div>
<div class="week" id="week_5">Week 5</div>
<div class="week" id="week_11">Week 11</div>
JavaScript:
$(function(){
var today = new Date();
var weekno = 10;
$(".week").each(function() {
n = $(this).attr("id").split("_")[1];
if(n < weekno) {
$(this).hide();
}
});
});
Hope this helps.