/**
 * Apply rounded corners to images using swfir. Only needed for Internet Explorer; Firefox and
 * Safari both have support for rounded corners using CSS.
 */
function applyRoundedCorners() {
    var roundedCorners = this;
    this.idCounter = 0;

    return false;

    if ($.browser.msie) {
        // hierbij kan de host anders zijn dan de http-host > problemen met crossdomain-swf-dingetjes
        vinoo_assetsHost = '';

        $('.group-thumb-image,.detail-view-image,.wine-thumb-image,.user-thumb-image').each(function() {
            if (!this.id) {
                roundedCorners.idCounter++;
                this.id = 'swfir' + roundedCorners.idCounter;
            }
            if (this.style.backgroundImage) {
                var image = this.style.backgroundImage.replace('url(', '').replace(new RegExp('[)\'\"]'), '');
            }

            var params = { wmode : 'transparent', menu: false };
            var flashvars = { url : escape(image), borderRadius : 10 };

            var link = '';
            if (this.parentNode.tagName == 'A') {
                link = this.parentNode.href;
            }
            if (this.tagName == 'A') {
                link = this.href;
                if ($(this).hasClass('thickbox')) {
                    link = 'javascript:tb_show("", "' + this.href + '");';
                }
            }
            if (link && link.length) {
                flashvars.link = escape(link);
            }

            width  = (this.clientWidth) ? this.clientWidth : 73;
            height = (this.clientHeight) ? this.clientHeight : 73;

            swfobject.embedSWF(vinoo_assetsHost + "/widgets/swfir.swf", this.id, width, height, "6", '', flashvars, params, { style: 'width: ' + width + 'px; height: ' + height + 'px;' });
        });
    }
};
