window.addEvent('domready', function(){

	/* generic code to open all links with rel=_blank in new window, to pass validation in xhtml strict. */
	$$('a').each(function(link,i){
		if(link.get('rel')=='_blank') link.setProperty('target','_blank');
	});	
	/* end link code */

	$$('.imageC img').each(function(el,i){
		if($chk($('imagePane')))
			el.injectInside('imagePane');
	});

	/* Standard function to give mCCWrapper the remaining window height if avoidElements is defined */
	autosize_mCCWrapper();


});

window.addEvent('resize', function(){
	
	/* Standard function to give mCCWrapper the remaining window height if avoidElements is defined */
	autosize_mCCWrapper();
	
});
