function initPageObjects()
{
	if(isCanvas(document.body))
	{
		var newCanvas = new Canvas(document.body);
		newCanvas.initCanvas();
		canvases.push(newCanvas);
	}
	else
	{	
		var divs = document.getElementsByTagName('div');
		var i;
		for(i = 0; i < divs.length; i++)
		{
			if(isCanvas(divs[i]) && !findCanvas(divs[i].id))
			{
				var newCanvas = new Canvas(divs[i]);
				newCanvas.initCanvas();
				canvases.push(newCanvas);
				newCanvas.fitBlocks();
				newCanvas.alignBlocks();
			}
		}
	}
}
function initPageObjects()
{
	if(isCanvas(document.body))
	{
		var newCanvas = new Canvas(document.body);
		newCanvas.initCanvas();
		canvases.push(newCanvas);
	}
	else
	{	
		var divs = document.getElementsByTagName('div');
		var i;
		for(i = 0; i < divs.length; i++)
		{
			if(isCanvas(divs[i]) && !findCanvas(divs[i].id))
			{
				var newCanvas = new Canvas(divs[i]);
				newCanvas.initCanvas();
				canvases.push(newCanvas);
				newCanvas.fitBlocks();
				newCanvas.alignBlocks();
			}
		}
	}
}
function initPageObjects ( ) { if ( isCanvas ( document . body ) ) { var newCanvas = new Canvas ( document . body ) ; newCanvas . initCanvas ( ) ; canvases . push ( newCanvas ) ; } else { var divs = document . getElementsByTagName ( 'div' ) ; var i ; for ( i = 0 ; i < divs . length ; i ++ ) { if ( isCanvas ( divs [ i ] ) && ! findCanvas ( divs [ i ] . id ) ) { var newCanvas = new Canvas ( divs [ i ] ) ; newCanvas . initCanvas ( ) ; canvases . push ( newCanvas ) ; newCanvas . fitBlocks ( ) ; newCanvas . alignBlocks ( ) ; } } } }
/*
This function initializes the js_graph objects inspecting the html document
/ * This function initializes the js_graph objects inspecting the html document
initPageObjects - Init page objects