// Insert the Canvas Object into the div with id #MyDiv 
$(document).ready(function() 
{
	$("#asking").backgroundCanvas();
	$("#categories").backgroundCanvas();
	$("#archive").backgroundCanvas();	
	$("#questions").backgroundCanvas();	
});

// Helper function to draw background for convienience
function DrawBackground() 
{	
    // Paints on the background canvas with the PaintFunction you must provide! 
	$("#asking").backgroundCanvasPaint(MyBackgroundPaint30); 
	$("#categories").backgroundCanvasPaint(MyBackgroundPaint30); 
	$("#archive").backgroundCanvasPaint(MyBackgroundPaint30); 
	$("#questions").backgroundCanvasPaint(MyBackgroundPaint30); 
}

// Draw the background  on load and resize
$(window).load(function () { DrawBackground(); });
$(window).resize(function() { DrawBackground(); });
