function UpdateAlphaImages()
{
	if ( document.body.filters && parseFloat(navigator.appVersion.split("MSIE")) <= 6.0 )
		for(var i=0; i<document.images.length; i++)
		{
		  	var img = document.images[i]
			if (img.id.substring(1, 3) == "png")
			{
			   var imgID = (img.id) ? "id='" + img.id + "' " : ""
			   var imgClass = (img.className) ? "class='" + img.className + "' " : ""
					   var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
			   var imgStyle = "display:inline-block;" + img.style.cssText 
					   if (img.align == "left") imgStyle = "float:left;" + imgStyle
			   if (img.align == "right") imgStyle = "float:right;" + imgStyle
				   if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
					   var strNewHTML = "<span " + imgID + imgClass + imgTitle
			   + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
					   + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
			   + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
			   img.outerHTML = strNewHTML
				alert(strNewHTML);
			}
		}
}

function AddImage(align,posX,posY,image_path_alpha,image_path_color)
{
	if ( document.body.filters && parseFloat(navigator.appVersion.split("MSIE")) <= 6.0 )
		if( image_path_color != "")
			document.write('<div align=' + align + '><img src="' + image_path_color + '" border="0" style="position:relative;');
		else 
			return;
	else
		document.write('<div align=' + align + '><img src="' + image_path_alpha + '" border="0" style="position:relative;');
	if(posX>=0)	document.write('left:'  +  posX + 'px;');
	else 		document.write('right:' + -posX + 'px;');
	if(posY>=0)	document.write('top:'  +  posY + 'px;');
	else 		document.write('bottom:' + -posY + 'px;');
	document.write('"></div>');
}
