/*自動アイコン*/

.dl{
    padding:4px 1.5em 4px 0;
    margin-right: 10px;
}
 
.dl[href$=".pdf"], .dlpdf{background:url(img/pdf.gif) no-repeat 100% 50%; background-size: 16px;}/*モダンブラウザ*/
* html a.pdf{ background:url(img/pdf.gif) no-repeat 100% 50%; background-size: 16px;}/*IE*/
 
.dl[href$=".docx"], .dl[href$=".doc"], .dldoc{background:url(img/doc.gif) no-repeat 100% 50%; background-size: 16px;}
* html a.doc{ background:url(img/doc.gif) no-repeat 100% 50%; background-size: 16px;}
 
.dl[href$=".xlsx"], .dl[href$=".xls"], .dlxls{background:url(img/xls.gif) no-repeat 100% 50%; background-size: 16px;}
* html a.xls{ background:url(img/xls.gif) no-repeat 100% 50%; background-size: 16px;}
 
.dl[href$=".zip"], .dlzip{background:url(img/zip.gif) no-repeat 100% 50%; background-size: 16px;}
* html a.zip{ background:url(img/zip.gif) no-repeat 100% 50%; background-size: 16px;}
 
a[href^="https://shizuoka-sports.or.jp"]{	/*自サイトのURLを記述*/
    padding:inherit;
    background:transparent;
}
 
* html a{ /* IEのみ */
    behavior: expression(
    this.className += this.getAttribute("href").match(/\.pdf$/) ? " pdf" : '',
    this.className += this.getAttribute("href").match(/\.doc$/) ? " doc" : '',
    this.className += this.getAttribute("href").match(/\.docx$/) ? " doc" : '',
    this.className += this.getAttribute("href").match(/\.xls$/) ? " xls" : '',
    this.className += this.getAttribute("href").match(/\.xlsx$/) ? " xls" : '',
    this.className += this.getAttribute("href").match(/\.zip$/) ? " zip" : '',
    this.style.behavior = "none"
    );
}



