Objects / layer
layer(idLayer)
layer(string idLayer)
layer( )

layer(string idLayer)
Return a layer with id=idLayer and create it, if it is not exist.
Code
<script type="text/javascript">	
	function start_1(idCanvas)
	{
		jc.layer('myLayer_1')
			.animate({translate:{x:100}},2000)
			.draggable()
			.clone('2')
			.animate({translate:{x:100,y:140}},1500);
	}
	function stop_1(idCanvas)
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.rect(10,10,110,120,1)
			.layer('myLayer_1');
		jc.circle(90,80,20,"#FF0000",1)
			.layer('myLayer_1');
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View
layer( )
Return first layer of first canvas on the page.