$(function() { $("body").backgroundCanvas(); });  

function bgPaintCallback()   
{     
	$("body").backgroundCanvasPaint(paintBg);   
}  

$(window).load(function () { bgPaintCallback(); });  
$(window).resize(function() { bgPaintCallback(); });  

function paintBg(context, width, height, canvas, $canvas, $canvasDiv, $content, $element )   
{  
	var options = {x:0, height: height, width: width };  
	var backgroundGradient = context.createLinearGradient(0, 0, 0, height);
	backgroundGradient.addColorStop(0 ,'#F49042');  
	//backgroundGradient.addColorStop(0.5 ,'#fff');  
	backgroundGradient.addColorStop(1, '#FFB377');  
	context.fillStyle = backgroundGradient;   
	$.canvasPaint.roundedRect(context,options);  
}  

