
if(navigator.userAgent.toLowerCase().indexOf('msie')>0){ // detect for IE (could be more specific to PC and version, but this works for the test)
	
                is = document.getElementsByTagName('IMG'); // get all images
                for(x=0; x<is.length; x++){ // cycle through those images
                        str = is[x].src.toString();
                        if(str.indexOf('.png')>0){ // only do this to png files
                                w = is[x].offsetWidth;
                                h = is[x].offsetHeight
                                is[x].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+is[x].src+"', sizingMethod='scale')"; // apply the filter stuff that makes IE do it's magic
                                is[x].src = "/images/z.gif"; // replace the image with a clear gif so that the filter can show through
                                is[x].width = w;
                                is[x].height = h;
                                w=0;
                                h=0;
                        }
                }
                
                
                is = document.getElementsByTagName('DIV'); // get all divs
                
                for(x=0; x<is.length; x++){ // cycle through those images
                        str = is[x].currentStyle.backgroundImage;
                        if(str.indexOf('.png')>0){ // only do this to png files
                        	str = str.replace('url(', '');
                        	str = str.replace(')', '');
                        	str = str.replace('"', '');
                        	str = str.replace('"', '');
                        	
                                w = is[x].offsetWidth;
                                h = is[x].offsetHeight
                                is[x].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+str+"', sizingMethod='scale')"; // apply the filter stuff that makes IE do it's magic
                                //is[x].style.backgroundImage = "/images/z.gif"; // replace the image with a clear gif so that the filter can show through
                                is[x].style.backgroundImage = 'none';
                                is[x].width = w;
                                is[x].height = h;
                                w=0;
                                h=0;
                        }
                }
                
                is = document.getElementsByTagName('BUTTON'); // get all divs
                
                for(x=0; x<is.length; x++){ // cycle through those images
                        str = is[x].currentStyle.backgroundImage;
                        if(str.indexOf('.png')>0){ // only do this to png files
                        	str = str.replace('url(', '');
                        	str = str.replace(')', '');
                        	str = str.replace('"', '');
                        	str = str.replace('"', '');
                        	
                                w = is[x].offsetWidth;
                                h = is[x].offsetHeight
                                is[x].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+str+"', sizingMethod='scale')"; // apply the filter stuff that makes IE do it's magic
                                //is[x].style.backgroundImage = "/images/z.gif"; // replace the image with a clear gif so that the filter can show through
                                is[x].style.backgroundImage = 'none';
                                is[x].width = w;
                                is[x].height = h;
                                w=0;
                                h=0;
                        }
                }
        }


        