addEvent(window, 'load', function(){
	if(!is_ie) return;
	if(!document.namespaces.v) document.namespaces.add("v", "urn:schemas-microsoft-com:vml");
	var a = new Array('ex', 'related-links-left', 'related-links-right', 's-related-links-left', 's-related-links-right');
	for(j = 0; j < a.length; j++){
		var divek = getElementsByClass(a[j], document, 'div');
		for(i = 0; i < divek.length; i++) borderradius(divek[i]);
	}
});

function borderradius(d){
	var arcSize = Math.min(parseInt(d.currentStyle['-moz-border-radius'] ||
                                d.currentStyle['moz-border-radius'] ||
                                d.currentStyle['border-radius']) /
                       Math.min(d.offsetWidth, d.offsetHeight), 1);
	var strokeColor = d.currentStyle.borderColor; var strokeWeight = d.currentStyle.borderWidth; d.style.border = 'none';
	var fillColor = d.currentStyle.backgroundColor; var fillSrc = d.currentStyle.backgroundImage.replace(/^url\("(.+)"\)$/, '$1'); d.style.background = 'transparent';
	var margin = d.currentStyle.margin; d.style.margin = '0';
	var styleFloat = d.currentStyle.styleFloat; d.style.styleFloat = 'none';
	var clear = d.currentStyle.clear; d.style.clear = 'none';
	var position = d.currentStyle.position; d.style.position = 'static';
	var left = d.currentStyle.left; d.style.left = '0';
	var right = d.currentStyle.right; d.style.right = '0';
	var top = d.currentStyle.top; d.style.top = '0';
	var bottom = d.currentStyle.bottom; d.style.bottom = '0';
	var width = d.currentStyle.width; d.style.width = '100%';
	var height = d.currentStyle.height; d.style.height = '100%';
	d.outerHTML = '<div class="' + d.className + '" style="background: transparent; border: none; padding: 0; margin: ' + margin + '; float: ' + styleFloat + '; clear: ' + clear + '; position: ' + position + '; left: ' + left + '; right: ' + right + '; top: ' + top + '; bottom: ' + bottom + '; width: ' + width + '; height: ' + height + ';"><v:roundrect arcsize="' + arcSize + '" strokecolor="' + strokeColor + '" strokeweight="' + strokeWeight + '" style="behavior: url(#default#VML); display: inline-block; width: 99%; height: 99%; antialias: true; padding: ' + strokeWeight + 'px;"><v:fill color="' + fillColor + '" src="' + fillSrc + '" type="tile" style="behavior: url(#default#VML);" />' + d.outerHTML + '</v:roundrect></div>';
}
