﻿@charset='utf-8';

/* ---------------------------------
  リンクに自動でアイコンを付ける
------------------------------------ */

/* 外部リンク  */ 
a[href^="http"] {
    background: url('../img/external.gif') no-repeat 100% 40%;
}   
* html a.external   {
    background : url('../img/external.gif') no-repeat 100% 40%;
}
a[href^="http://www.dmi.med.osaka-u.ac.jp/dcc/redcap-portal/"]  {
    padding: inherit;
    background: transparent;
} 


/* pdf */
a[href$=".pdf"] {
    background: url('../img/pdf.gif') no-repeat 100% 40%;
    padding-right:5%;
    margin-right:10px;
}
* html a.pdf{
	/*width:120%;!important;*/
    background : url('../img/pdf.gif') no-repeat 100% 40%;
    padding-right:5%;
    margin-right:10px;
}

/* Word */  
a[href$=".doc"] {
    background: url('../img/word.gif') no-repeat 100% 40%;
    padding-right:5%;
    margin-right:10px;
}   
* html a.doc    {
    background : url(../img/word.gif) no-repeat 100% 40%;
    padding-right:5%;
    margin-right:10px;
}

/* Excel */  
a[href$=".xls"] {
    background: url('../img/excel.gif') no-repeat 100% 40%;
    padding-right:5%;
    margin-right:10px;
}   
* html a.xls{
    background : url(../img/excel.gif) no-repeat 100% 40%;
    padding-right:5%;
    margin-right:10px;
}

/* IE-6要素 */ 
* html a{   
    behavior: expression(
    this.className += this.getAttribute("href").match(/\.pdf$/) ? " pdf" : "",   
    this.className += this.getAttribute("href").match(/\.doc$/) ? " doc" : "",   
    this.className += this.getAttribute("href").match(/\.xls$/) ? " xls" : "",   
    this.style.behavior = "none"
    );
}  
