$(document).ready(function()
{
	
	document.createElement("m");

	var question = $(".question strong").clone();
	question = $(question).attr("id", "questiontrans");
	$("#header").append(question);
	
	//$(".question").hide();
	$(".coursemenu").hover(function(){
		$(this).parent().hide();
	});
	
	var points = 0;
	pointCells = $("table.assessment td.points")
	for(i=0; i < pointCells.length; i++)
	{	
		pointCell = pointCells[i];
		point = parseInt($(pointCell).text());		
		points += point;
	}
	
	var totalLine = '<tr class="total"><td class="points">' + points + '   </td><td class="requirement">Total</td></tr>';
	$("table.assessment").append(totalLine);
	$('<td class="earned"></td>').insertAfter("td.points");

	// Setup videocontrols
	//$("#videocontrols").append('<input id="counter" value="0:00" type="text">');
		
		


	$("a.login, #breadcrumbs a.close").click(function () {
		$("#loginform").slideToggle("fast");
	  }
	);	
	
	$('a.external').click(function(){
		window.open(this.href);
		return false;
	});

	$("#aside").jScroll({top : 50});
		
	$("ul.resources li a:even, ol.resources li a:even, tr:even").addClass("even");

});


