// Insert the Canvas Object into the div with id #MyDiv 
$(document).ready(function() 
{
	$("#best_buys").backgroundCanvas();
	$("#ask_katie").backgroundCanvas();
	$("#recent_blog").backgroundCanvas();
	$("#recent_media").backgroundCanvas();	
	$("#calculator").backgroundCanvas();	
	$("#find_consultant").backgroundCanvas();	
	$("#why_us").backgroundCanvas();	
	$("#scroller_container").backgroundCanvas();		
	$("#sitemap").backgroundCanvas();		
	
});

// Helper function to draw background for convienience
function DrawBackground() 
{	
    // Paints on the background canvas with the PaintFunction you must provide! 
    $("#best_buys").backgroundCanvasPaint(MyBackgroundPaint40); 
	$("#ask_katie").backgroundCanvasPaint(MyBackgroundPaint40); 
	$("#recent_blog").backgroundCanvasPaint(MyBackgroundPaint40); 
	$("#recent_media").backgroundCanvasPaint(MyBackgroundPaint40); 
	$("#calculator").backgroundCanvasPaint(MyBackgroundPaint40); 
	$("#find_consultant").backgroundCanvasPaint(MyBackgroundPaint40); 
	$("#why_us").backgroundCanvasPaint(MyBackgroundPaint40); 
	$("#scroller_container").backgroundCanvasPaint(MyBackgroundPaint40); 
	$("#sitemap").backgroundCanvasPaint(MyBackgroundPaint30); 

}

// Draw the background  on load and resize
$(window).load(function () { DrawBackground(); });
$(window).resize(function() { DrawBackground(); });


