
function pngfix() {
  var arVersion = navigator.appVersion.split("MSIE");
  if (arVersion.length==1)  {window.clearInterval(pngfixinterval);return;}
  var version = parseFloat(arVersion[1]);
  if (version<5.5)  {window.clearInterval(pngfixinterval);return;}
  if (version>=7)  {window.clearInterval(pngfixinterval);return;}
  if (!document.body)  return;
  if (!document.body.filters)  {window.clearInterval(pngfixinterval);return;}
  var needed=0;
  for(var i=0; i<document.images.length; i++) {
   var img = document.images[i];
   var imgName = img.src.toUpperCase();
   if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
    needed++;
    if ((img.width==0)&&(img.height==0)) continue;
    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=\"padding:0px;margin:0px;" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
      + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
      + "(src=\'" + img.src + "\');\", sizingMethod='image'><"+"/span>" ;
    img.outerHTML = strNewHTML;
    i = i-1;
   needed--;
   }
  }
  pngfixsteps++;
  if ((pngfixsteps>50)&&(needed==0)) window.clearInterval(pngfixinterval);
  return;
}
var pngfixsteps=0;
var pngfixinterval = window.setInterval("pngfix()",75);


/*<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
 
<!-- Begin
/************************************************************************
Script made by Martial Boissonneault © 2001 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*************************************************************************/
var ie5=(document.getElementById && document.all);
var ns6=(document.getElementById && !document.all);
 
nPlus = 5   //the % of fading for each step
speed = 300  //the speed
pause=5
 
// You don't have to edit below this line
nOpac = 100
function FadeImg(){
    if(document.getElementById){
        document.getElementById('img1').style.visibility="visible";
        imgs = document.getElementById('img2');
	opacity = nOpac+nPlus;
	nOpac = opacity;
	setTimeout('FadeImg()',speed);
    if(opacity>100 || opacity<0){
        nPlus=-nPlus;
    }
    if(ie5){
        imgs.style.filter="alpha(opacity=0)";
	imgs.filters.alpha.opacity = opacity;
    }
    if(ns6){
        imgs.style.MozOpacity = 0 + '%';
	imgs.style.MozOpacity = opacity + '%';
    }
  }
}
onload=FadeImg;
//  End -->

//




