function processOnloadTasks(){
	sub_nav_width = 0;
	$A($$('#top_menu_2 div.sub_menu a')).each(function(el,index){sub_nav_width +=el.getDimensions().width});
	
	dx = $('active_l1_nav_element').offsetLeft - $('top_menu_2').offsetLeft;
	//alert(dx);
	if (sub_nav_width+dx > 987-70){
		dx -= (sub_nav_width+dx-987)+70; 
	}
	//alert(dx);
		 
	$('top_menu_2').style.paddingLeft= dx + "px";
	$('top_menu_2').style.width= (987-dx)+ "px";

	$('additional_l2_div').show();	

	additional_width = $('top_menu_1').offsetLeft + $('top_menu_1').getDimensions().width - $('additional_l2_a_tag').offsetLeft - $('additional_l2_a_tag').getDimensions().width;  
	additional_width-=63;
			
		

	$('additional_l2_a_tag').style.display = 'block';
	$('additional_l2_a_tag').style.width= additional_width+"px";	

	
	
	//usedHeight = $(document.body).getHeight() //does not work anymopre because of lightbox
	usedHeight = $('last_div').cumulativeOffset()[1];
		
	maxHeight = window.innerHeight || (window.document.documentElement.clientHeight || window.document.body.clientHeight);


	//extend the main wrapper to the max height of the available viewport
	if (usedHeight< maxHeight){		
		$('main_wrapper').style.height = maxHeight+"px";		
		//alert(usedHeight);
	}	

	if (!(typeof(context_image_right_1) == "undefined")){
		if ($('right_content_top').getHeight()<context_image_right_1_height-36){
			$('right_content_top').style.height = (context_image_right_1_height-36) + "px";
		}
		$('right_context_img_wrapper').style.left = ($('right_content_top').cumulativeOffset()[0] -25) + "px";
		$('right_context_img_wrapper').style.top = ($('right_content_top').cumulativeOffset()[1]-26) + "px";		
		$('right_context_img_wrapper').show();
	}

	if (!(typeof(context_image_right_2) == "undefined")){		
		if ($('right_content_wrapper').getHeight()<context_image_right_2_height-36){			
			$('right_content_wrapper').style.height = (context_image_right_2_height-36) + "px";
		}
		$('right_context_img_wrapper_2').style.left = ($('right_content_wrapper').cumulativeOffset()[0]+11) + "px";
		$('right_context_img_wrapper_2').style.top = ($('right_content_wrapper').cumulativeOffset()[1]-10) + "px";		
		$('right_context_img_wrapper_2').show();
	}	
}