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 */

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

	/* Standard function to add style=last on last LIs */
	markLastLis();
	centerElement($('menu-hovedmeny'));

});

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