/**
* Template handler library
* Megaweb Ltd, Hungary	
*
* This library automatically and dinamically resizes the layout
* @author: tkovacs
* @version: 0.1 
*/

/**
* Normalizes the template column widths 
*/

function layoutNormailzer(){
	
	var countClasses = [
	                    'containerHeader',
	                    'containerColumns',
	                    'containerLayoutBoxes',
	                    'containerFooter',
	                    'columnLeft',
	                    'columnContent',
	                    'columnRight'
	                   ];
	for( var i=0; i<countClasses.length; i++ )
	{
		var c = dojo.query('.'+countClasses[i]);
		console.log(countClasses[i] + ': ' + c.length );
	}
	
/*	containerDiv = document.getElementById('containerRow');
	contentDiv = document.getElementById('containerCenter');
	leftDiv = document.getElementById('containerLeftColumn');
	rightDiv = document.getElementById('containerRightColumn');
	
	leftColor = document.getElementById('leftColor');
	contentColor = document.getElementById('contentColor');
	rightColor = document.getElementById('rightColor');
	
	contentWidth = containerDiv.offsetWidth;
	if(leftDiv) contentWidth=contentWidth-leftDiv.offsetWidth;		
	if(rightDiv) contentWidth=contentWidth-rightDiv.offsetWidth;		
	contentDiv.style.width = contentWidth+'px';	
	contentColor.style.width = (contentWidth+leftDiv.offsetWidth)+"px";	
	leftColor.style.width = (leftDiv.offsetWidth)+"px";
	contentDiv.style.left= (leftDiv.offsetWidth)+"px";*/
	/*rightDiv.style.left= (contentWidth+leftDiv.offsetWidth)+"px";		
	contentDiv.style.top="-"+contentDiv.offsetTop+"px";
	rightDiv.style.top="-"+rightDiv.offsetTop+"px";*/
	
	
}
