/*
 
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]-->

*/

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
function getPngImg(key,id){
    if (key==0){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span id=\"" + id + "\" style=\"width:8px; height:24px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src='images/news_01_1.png', sizingmethod=scale);\" ></span>"         
            return temp;  
        }
        else{
            return '<img id="'+id+'" src="images/news_01_1.png" width="8" height="24">';
        }
    }
    if (key==1){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:8px; height:24px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/news_01_2.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/news_01_2.png" width="8" height="24">';
        }    
    }
    if (key==2){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:9px; height:24px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/news_02_1.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/news_02_1.png" width="9" height="24">';
        }    
    }    
    
    if (key==3){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:9px; height:24px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/news_02_2.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/news_02_2.png" width="9" height="24"> ';
        }    
    }  

    if (key==4){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:101px; height:20px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/news_more.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/news_more.png" border="0" > ';
        }    
    } 
 
     if (key==5){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:278px; height:70px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/banner01.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/banner01.png" width="278" height="70" border="0">  ';
        }    
    } 

     if (key==6){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:111px; height:80px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/left_banner01.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/left_banner01.png" width="111" height="80" border="0">';
        }    
    } 

     if (key==7){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:111px; height:61px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/left_banner02.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/left_banner02.png" width="111" height="61" border="0">';
        }    
    } 
    
     if (key==8){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:111px; height:61px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/left_banner03.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/left_banner03.png" width="111" height="61" border="0">';
        }    
    } 
    
     if (key==9){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:224px; height:33px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/item01_01.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/item01_01.png" border="0" >';
        }    
    }           

     if (key==10){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:224px; height:29px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/item02_01.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/item02_01.png" border="0" >';
        }    
    } 
     if (key==11){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:413px; height:26px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/item03_01.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/item03_01.png" width="413" height="26" border="0" >';
        }    
    } 
    
      if (key==12){
        if ((version >= 5.5) && (document.body.filters)) 
        {
         var temp = "<span " + id + " style=\"width:130px; height:61px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'images/copyright_logo.png', sizingmethod=scale);\"></span>"         
            return temp;  
        }
        else{
            return '<img src="images/copyright_logo.png" width="130" height="61">';
        }    
    }    
    
   
}


//if ((version >= 5.5) && (document.body.filters)) 
//{
//   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
//      }
//   }
//   
//}

