function reportProblem(url, id) {
	var params = {id:id};
	jQuery("#report-problem").load(url, params);
}

jQuery(function() {
    //make all external links open in a new window (page 57)
    jQuery("a[href^=http://]").attr("target","_blank");

    //make all links to PDFs open a new window (p23 and 57)
    jQuery("a[href$=.pdf]").attr("target","_blank");
    jQuery("a[href$=.PDF]").attr("target","_blank");
    jQuery("a[href$=.doc]").attr("target","_blank");
    jQuery("a[href$=.DOC]").attr("target","_blank");

    //zebra-strip the 'even' rows in all tables
    jQuery("table tr:nth-child(even)").addClass("even");
    jQuery("table tr:nth-child(odd)").addClass("odd");

    //add the 'first' and 'last' CSS classes to the first and last list item in each list (p67)
    jQuery("li:first").addClass("first");
    jQuery("li:last").addClass("last");

});


$(document).ready(function(){
  	// To keep the footer from overlapping longer content
	var newHeith = $('#maincontent-wide').height() + 30;
	$('#bodycontainerLong').css('height', newHeith + 'px');
});