function fixPngIE6(element){
	var ie6=false;
	jQuery.each(jQuery.browser, function(i, val){if(i=="msie" && jQuery.browser.version.substr(0,3)=="6.0")ie6=true;});
	if(ie6==true)
	{
		$(element).each(function(){
			var type='';
			var img=$(this).css("background-image");
			if(img!='none')
				type='css';
			else
			{
				img=$(this).attr("src");
				if(img!='' && img!=undefined)
					type='attr';
				else type='';
			}
			switch(type)
			{
				case 'attr' :
					if(img.substr(img.length-4,4)=='.png')
					{
						img=img.substring(0,img.length-4)+'.gif';
						$(this).attr("src",img);
					}
				break;
				case 'css' :
					img=img.substring(5,img.length-2);
					if(img.substr(img.length-4,4)=='.png')
					{
						img='url("'+img.substring(0,img.length-4)+'.gif")';
						$(this).css("background-image",img);
					}
				break;
				default :
			}//end switch
		});
	}//else if(ie6==true)
}//end fixPngIE6

