function setPNGforIE_bg(idStr,imgUrl) {
	if (br.ie5) var obj = document.getElementById(idStr)
	else return
	if (!obj.runtimeStyle) return		// is the browser capable of managing runtimeStyle - tai palaiko tik IE?
	obj.style.backgroundImage = 'none'
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imgUrl+"',sizingMethod='scale')"
}

function setPNGbg(obj,imgUrl,type)
{
	if (typeof(obj)=='string') obj = findObj(obj)
	if (obj.runtimeStyle)
	{
		obj.style.backgroundImage = 'none'
		if (!type) type='crop'
		else
		{
			type = (type==1) ? 'scale' : (type==2) ? 'image' : '';
		}
		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imgUrl+"',sizingMethod='"+type+"')"
	}
	else
	{
		obj.style.backgroundImage = 'url('+imgUrl+')'
	}
}


function pngIE_class()
{
	this.spacer = 'images/spacer.gif'
	this.pngs = new Array()
	this.support
	
	this.set = function(obj)
	{
		if (this.support==undefined) this.support = (document.getElementById && obj.runtimeStyle) ? 1 : 0
		if (this.support)
		{
			for (var i=0; i<this.pngs.length; i++)
			{
				if (this.pngs[i]===obj) return
			}
			this.pngs[this.pngs.length] = obj
			this.load(this.pngs[this.pngs.length-1])
		}
		else
		{
			obj.style.visibility = 'visible'
			return
		}
	}
	
	this.load = function(obj)
	{
		var realSrc = obj.src
		obj.src = this.spacer
		obj.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + realSrc + "',sizingMethod='scale')"
		obj.style.visibility = 'visible'
	}

}