/*

Correctly handle PNG transparency in Win IE 5.5 & 6.
http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.

Use in <HEAD> with DEFER keyword wrapped in conditional comments:
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->

*/



function pngFixIE6()
{
	//alert('png fix!');
	/*
	for(var i = 0;i<document.styleSheets.length;i++)
	{
	if (document.all && /MSIE (5\.5|6)/.test(navigator.userAgent) &&
  document.styleSheets && document.styleSheets[i] && document.styleSheets[i].addRule)
	{

		document.styleSheets[i].addRule('img.png', 'behavior: url(/css/iepngfix.htc)');
  	// Feel free to add rules for specific elements only, as above.
  // You have to call this once for each selector, like so:
  //document.styleSheets[0].addRule('img', 'behavior: url(iepngfix.htc)');
  //document.styleSheets[0].addRule('div', 'behavior: url(iepngfix.htc)');
	}
	}

/*
	var arVersion = navigator.appVersion.split("MSIE");
	if(arVersion.length>1)
	{

		var something =arVersion[1].split(';');
		var version = parseFloat(something[0]);
		if ((version >= 5.5))
		{

			if((document.body.filters))
			{
					var imgs  = document.getElementsByTagName('img');
			   for(var i=0; i<imgs.length; i++)
			   {
			      var img = imgs[i];
			      var imgName = img.src.toUpperCase()
			      if (imgName.substring(imgName.length-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
			         i = i-1
			      }
			   }
		   }
		}
	}
	*/
}
