function PngImage(src, width, height, link, title) {
	this.id = null;
	this.src = src;
	this.width = width;
	this.height = height;
	this.vspace = 0;
	this.hspace = 0;
	this.border = 0;
	this.className = null;
	this.style = null;
	this.link = link;
	this.title = title;

	this.displayMode = null;

	this.init();

	return this;
}

PngImage.prototype = {
	init: function() {
		if (true == browser.isWin32 && (true == browser.isIE55 || true == browser.isIE6up)) this.displayMode = 'alpha';
		else this.displayMode = 'normal';
	},
	display: function() {
		var image = '';
		switch (this.displayMode) {
			case 'alpha':
				image = '<div style="' + (this.width ? 'width: ' + this.width + 'px; ' : '') + (this.height ? 'height: ' + this.height + 'px; ' : '') + 'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + this.src + '\', sizingMethod=\'scale\')"' + (null != this.id ? ' id="' + this.id + '"' : '') + (null != this.className ? ' class="' + this.className + '"' : '') + (null != this.title ? ' title="' + this.title + '"' : (null != this.alt ? ' title="' + this.alt + '"' : '')) + '>' + (this.link ? '<a href="' + this.link + '">' : '') + '<img src="/i/spacer.gif" ' + (this.width ? ' width="' + this.width + '"' : '') + (this.height ? ' height="' + this.height + '"' : '') + ' vspace="0" hspace="0" border="0" alt="' + (this.title ? this.title : '') + '"' + ((this.id) ? ' id="' + this.id + '"' : '') + ' />' + (this.link ? '</a>' : '') + '</div>';
				break;
			case 'normal':
			default:
				image = '<img src="' + this.src + '"' + (this.width ? ' width="' + this.width + '"' : '') + (this.height ? ' height="' + this.height + '"' : '') + ' vspace="' + this.vspace + '" hspace="' + this.hspace + '" border="' + this.border + '" alt="' + (this.title ? this.title : '') + '"' + (null != this.title ? ' title="' + this.title + '"' : '') + ((this.id) ? ' id="' + this.id + '"' : '') + ' />';
				break;
		}
		document.write(image);
	}
}