var isIE5 = (navigator.userAgent.indexOf("MSIE 5.5") > 0) ? true : false;

DOMAssistant.DOMReady(function()
{
	if (!isIE5) 
	{
		$('#center').equalHeight('.box .textualcontent');
		$('#center .box .textualcontent').each(function()
		{
			var text = $(this).cssSelect('.text')[0];
			var textbottomPos = text.offsetTop+text.offsetHeight;
			
			var bottom = $(this).cssSelect('.actions')[0];
			var bottomTopPos = bottom.offsetTop;
			
			if (bottomTopPos>textbottomPos)
			{
				text.style.height=text.offsetHeight+(bottomTopPos-textbottomPos-36)+'px';
			}
		});
		
		var height = $('#center .box .textualcontent')[0].offsetHeight;
		
		var tinyboxes = $('#three-links .innerbox');
		
		var onebox = (height+36)/tinyboxes.length;
		tinyboxes.pop();
		tinyboxes.each(function()
		{
			var toaffect = Math.abs(this.offsetHeight-onebox);
			this.style.marginBottom=toaffect+'px';
		});
	}
	
	/*@cc_on
	$('.box a.textualcontent .actions').setStyle('position','relative');
	$('.box a.textualcontent .actions').setStyle('position','absolute');
	@*/
	
	var target = $('.taux')[0];
	var toappend = $(target.parentNode).create('span', {className:'taux-shadow'},false,target.innerHTML);
	target.parentNode.insertBefore(toappend,target);
});
