var c= 0;
function resizeColumns() 
{
	
	if ( c > 10 )
		return;
	c++;	

	var containerDivHeight  = $( document ).height();
	
	var headerHeight = $("#header").height();

	//colLeft resize
	var restHeight = containerDivHeight - headerHeight;
	
	if ( restHeight > $( '#colleft' ).height() )
		$ ( '#colleft' ).height( restHeight );

	//colrightResize
	var rightCombiHeight = parseInt( $( '#rightTopWrapper' ).height() ) + parseInt( $( '#rightBottomWrapper' ).height() );
	
	if ( restHeight - rightCombiHeight > $( '#rightMidWrapper' ).height()  )
		$( '#rightMidWrapper' ).height( restHeight - rightCombiHeight );

	if ( !$E ( 'indexContentwrapper' ) )
	{
		var breadcrumbsHeight = $("#breadCrumbs").height();
		var restHeight = containerDivHeight - headerHeight - breadcrumbsHeight;

		if ( restHeight > $( '#contentwrapper' ).height() )
			$( '#contentwrapper' ).height( restHeight );	
				
	}
	else
	{
		var restHeight = containerDivHeight - headerHeight - $( '#indexTopvisual' ).height();
		
		if ( restHeight > $( '#indexContentwrapper' ).height() )
			$( '#indexContentwrapper' ).height( restHeight );	
			
		if ( restHeight > $( '#contentSubwrapper' ).height() )
			$( '#contentSubwrapper' ).height( restHeight );	
	}
}



