// JS to force IE5+/Win to display BG pngs!
// Only called in IExWin (versions less than 7) as otherwise it may cause problems.
if (navigator.appName=="Microsoft Internet Explorer") {
	function alphaBackgrounds(){
		var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
		var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);
		for (i=0; i<document.all.length; i++){
			var bg = document.all[i].currentStyle.backgroundImage;
			if (itsAllGood && bg){
				if (bg.match(/\.png/i) != null){
					var mypng = bg.substring(5,bg.length-2);
					document.all[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+mypng+"', sizingMethod='scale')";
					/* IMPORTANT!: DON"T FORGET TO CHANGE THE PATH TO THE TRANS GIF WHEN YOU MOVE FILES AROUND! */
					document.all[i].style.backgroundImage = "url('images/transGif.gif')";
				}
			}// end of if itsAllGood bit
		}// end of for loop
	}// end of function alphaBackgrounds bit
	
	window.onload=function(){
		alphaBackgrounds();
	}
} else {
	// might be useful sometime to have an else.
}
