function correctPNG()
{
   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")
   {
   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
   };
   };
};

if(navigator.userAgent.indexOf("MSIE")>-1)
{
window.attachEvent("onload", correctPNG);
};

if(navigator.appVersion.charAt(0)>=4 && (navigator.appVersion).indexOf("MSIE")!=-1) isIE4 = true;
else isIE4 = false;

function f400(id,n) {
el = document.all.item(id,n);
charColor = el.getAttribute("SET_COLOR");
cur = el.getAttribute("CURRENT_CHAR");
if(cur=="") cur = 0;

getHTML= el.getAttribute("SET_TEXT"); 
if(getHTML == "") {
getHTML = el.innerText;
el.setAttribute("SET_TEXT",getHTML);
}

bef_t = getHTML.substring(0,cur); ;

aft_t = getHTML.substring(eval(cur)+1,getHTML.length);
cur_t = getHTML.substr(cur,1);

//cur_t = cur_t.fontcolor(charColor);
el.innerHTML =   "</div><div class='left' style='font-family:Arial Black;'>"+bef_t +"</div><div class='left' style='font-family:Arial Black;'><font style='color:"+charColor+";font-family:Arial Black;font-size:25px'>" +cur_t+"</font></div><div class='left' style='font-family:Arial Black;'>" + aft_t  ;
 
cur++;
if(cur > getHTML.length) cur=0;
el.setAttribute("CURRENT_CHAR",cur);
getT = el.getAttribute("SET_TIME"); 
if(getT=="") getT = 100;
setTimeout("f400('"+id+"',"+n+")",eval(getT));
}

if(isIE4) {
window.onload = init;
}


function init() {
id = "f400"; 
len = document.all.item(id).length;
if(!len) len=1;
for(var i=0;i<len;i++) {
f400(id,i);
}
}

 function padd(){
   document.write("<img   src='images/pad"+(Math.floor( Math.random() * 2)+1)+".jpg'/>");
 }